|
@@ -28,7 +28,6 @@ public class Itemgroup extends BaseClass {
|
|
|
public static ArrayList<String> createItemGroupSql(Controller controller, long itemid, String itemname, String itemno, JSONArray tradefields, long sa_brandid) throws YosException {
|
|
public static ArrayList<String> createItemGroupSql(Controller controller, long itemid, String itemname, String itemno, JSONArray tradefields, long sa_brandid) throws YosException {
|
|
|
|
|
|
|
|
ArrayList<String> sqlList = new ArrayList<>();
|
|
ArrayList<String> sqlList = new ArrayList<>();
|
|
|
- String billcode = controller.createBillCode("itemgroup");
|
|
|
|
|
long sa_itemgroupid = controller.createTableID("sa_itemgroup");
|
|
long sa_itemgroupid = controller.createTableID("sa_itemgroup");
|
|
|
String tradefield="";
|
|
String tradefield="";
|
|
|
if(tradefields!=null && !tradefields.isEmpty()){
|
|
if(tradefields!=null && !tradefields.isEmpty()){
|
|
@@ -46,7 +45,7 @@ public class Itemgroup extends BaseClass {
|
|
|
sqlAddFactory.addParameter("groupname", itemname);
|
|
sqlAddFactory.addParameter("groupname", itemname);
|
|
|
sqlAddFactory.addParameter("itemno", itemno);
|
|
sqlAddFactory.addParameter("itemno", itemno);
|
|
|
sqlAddFactory.addParameter("username", controller.username);
|
|
sqlAddFactory.addParameter("username", controller.username);
|
|
|
- sqlAddFactory.addParameter("groupnum", billcode);
|
|
|
|
|
|
|
+ sqlAddFactory.addParameter("groupnum", itemno);
|
|
|
sqlAddFactory.addParameter("tradefield", tradefield);
|
|
sqlAddFactory.addParameter("tradefield", tradefield);
|
|
|
sqlAddFactory.addParameter("sa_brandid", sa_brandid);
|
|
sqlAddFactory.addParameter("sa_brandid", sa_brandid);
|
|
|
sqlAddFactory.addParameter("sequence", 1);
|
|
sqlAddFactory.addParameter("sequence", 1);
|