Explorar el Código

美大CRM_经销商_企业商品添加错误修复

shenjingwei hace 2 semanas
padre
commit
db4ef3187f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/custom/restcontroller/crm/agent/item/item.java

+ 1 - 1
src/custom/restcontroller/crm/agent/item/item.java

@@ -46,7 +46,7 @@ public class item extends Controller {
             @Param(paramname = "itemids", fieldtype = FieldType.JSON, remarks = "货品档案表ID,[1,2,3]", isrequired = true)})
             @Param(paramname = "itemids", fieldtype = FieldType.JSON, remarks = "货品档案表ID,[1,2,3]", isrequired = true)})
     public String sys_enterprise_item_addfromsite() throws YosException {
     public String sys_enterprise_item_addfromsite() throws YosException {
         JSONArray itemids = content.getJSONArray("itemids");// 货品档案表ID
         JSONArray itemids = content.getJSONArray("itemids");// 货品档案表ID
-        Enterprise.addSiteItems(dbConnect, siteid, sys_enterpriseid, itemids.toArray(new Long[0]));
+        Enterprise.addSiteItems(dbConnect, siteid, sys_enterpriseid, itemids.to(Long[].class));
         return getSucReturnObject().toString();
         return getSucReturnObject().toString();
     }
     }