|
@@ -242,5 +242,17 @@ public class item extends Controller {
|
|
|
return getSucReturnObject().toString();
|
|
return getSucReturnObject().toString();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @API(title = "美大CRM_经销商_商品选择总部商品", type = API.Type.PageQuery, apiversion = R.ID2026033013211201.v1.class)
|
|
|
|
|
+ public String item_selectlist() throws YosException {
|
|
|
|
|
+ QuerySQL querySQL = SQLFactory.createQuerySQL(this, "plm_item").setTableAlias("t1");
|
|
|
|
|
+ querySQL.addQueryFields("itemid", "itemno", "itemname", "model", "spec", "isonsale", "topclassnum", "packageqty");
|
|
|
|
|
+ querySQL.setSiteid(siteid);
|
|
|
|
|
+ querySQL.setPage(pageSize, pageNumber);
|
|
|
|
|
+ querySQL.setWhere("status", "审核");
|
|
|
|
|
+ querySQL.setWhere("not exists(select* from sys_enterprise_item t2 where siteid='" + siteid + "' and sys_enterpriseid=" + sys_enterpriseid + " and t1.itemid=t2.itemid)");
|
|
|
|
|
+ Rows rows = querySQL.query();
|
|
|
|
|
+ return getSucReturnObject().setData(rows).toString();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
}
|
|
}
|