|
|
@@ -42,6 +42,7 @@ public class itemgroup extends Controller {
|
|
|
String groupname = content.getString("groupname");
|
|
|
String itemno = content.getString("itemno");
|
|
|
String tradefield = content.getStringValue("tradefield");
|
|
|
+ long sa_customschemeid=content.getLong("sa_customschemeid");
|
|
|
Long sequence = content.getLongValue("sequence");
|
|
|
JSONArray tagArray = content.getJSONArray("tag");
|
|
|
ArrayList<String> list = (ArrayList<String>) JSONObject.parseArray(tagArray.toJSONString(), String.class);
|
|
|
@@ -72,6 +73,7 @@ public class itemgroup extends Controller {
|
|
|
sqlAddFactory.addParameter("groupnum", billcode);
|
|
|
sqlAddFactory.addParameter("tradefield", tradefield);
|
|
|
sqlAddFactory.addParameter("sa_brandid", sa_brandid);
|
|
|
+ sqlAddFactory.addParameter("sa_customschemeid", sa_customschemeid);
|
|
|
sqlAddFactory.addParameter("sequence", sequence);
|
|
|
content.put("sa_itemgroupid", sa_itemgroupid);
|
|
|
|
|
|
@@ -96,6 +98,7 @@ public class itemgroup extends Controller {
|
|
|
sqlUpdateFactory.addParameter("groupname", groupname);
|
|
|
sqlUpdateFactory.addParameter("itemno", itemno);
|
|
|
sqlUpdateFactory.addParameter("tradefield", tradefield);
|
|
|
+ sqlUpdateFactory.addParameter("sa_customschemeid", sa_customschemeid);
|
|
|
sqlUpdateFactory.addParameter("sequence", sequence);
|
|
|
sqlUpdateFactory.addParameter("username", username);
|
|
|
|
|
|
@@ -373,11 +376,17 @@ public class itemgroup extends Controller {
|
|
|
+ " or t1.itemno like '%" + whereObject.getString("condition") + "%')";
|
|
|
|
|
|
}
|
|
|
- if (whereObject.containsKey("brandname") && !"".equals(whereObject.getString("brandname"))) {
|
|
|
- where = where + " and t5.brandname ='" + whereObject.getString("brandname") + "'";
|
|
|
- }
|
|
|
}
|
|
|
Long sa_itemgroupid = content.getLong("sa_itemgroupid");
|
|
|
+ long sa_customschemeid=0;
|
|
|
+ Rows rowscount = dbConnect.runSqlQuery(
|
|
|
+ "select sa_customschemeid from sa_itemgroup where siteid='"+siteid+"' and sa_itemgroupid=" + sa_itemgroupid);
|
|
|
+ if(rowscount.isNotEmpty()){
|
|
|
+ sa_customschemeid=rowscount.get(0).getLong("sa_customschemeid");
|
|
|
+ }
|
|
|
+ if(sa_customschemeid!=0){
|
|
|
+ where = where + " and t1.sa_customschemeid ='" + sa_customschemeid + "'";
|
|
|
+ }
|
|
|
// String hrid = content.getString("hrid");
|
|
|
SQLFactory sqlFactory = new SQLFactory(this, "商品查询", pageSize, pageNumber, pageSorting);
|
|
|
sqlFactory.addParameter_SQL("where", where);
|