@@ -46,7 +46,7 @@ public class item extends Controller {
@Param(paramname = "itemids", fieldtype = FieldType.JSON, remarks = "货品档案表ID,[1,2,3]", isrequired = true)})
public String sys_enterprise_item_addfromsite() throws YosException {
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();
}