Browse Source

k3商品同步添加下架日志

hu 2 years ago
parent
commit
92deb4816a
1 changed files with 13 additions and 0 deletions
  1. 13 0
      src/custom/restcontroller/webmanage/lsak3/item/item.java

+ 13 - 0
src/custom/restcontroller/webmanage/lsak3/item/item.java

@@ -163,6 +163,19 @@ public class item extends Controller {
                     }else {
                         logger.info("new:"+flong+":"+fcolour+":"+fbx+":"+fbk);
                         logger.info("old:"+customitemRows.get(0).getString("spec")+":"+customitemRows.get(0).getString("color")+":"+customitemRows.get(0).getString("material")+":"+customitemRows.get(0).getString("cheek"));
+                        if(customitemRows.get(0).getBoolean("isonsale")){
+                            InsertSQL insertSQL = SQLFactory.createInsertSQL(this, "sys_contrllog");
+                            insertSQL.setValue("sys_contrllogid", this.createTableID("sys_contrllog"));
+                            insertSQL.setValue("ownertable", "plm_item");
+                            insertSQL.setValue("ownerid", itemid);
+                            insertSQL.setValue("action", "商品自动下架");
+                            insertSQL.setValue("remarks", "商品自动下架成功");
+                            insertSQL.setValue("actionuserid",1);
+                            insertSQL.setValue("actionby","admin");
+                            insertSQL.setValue("siteid", "lsa");
+                            insertSQL.setDateValue("actiondate");
+                            sqllist.add(insertSQL.getSQL());
+                        }
                         sqlFactory.addParameter("status","新建");
                         sqlFactory.addParameter("isonsale",0);
                         if(customitemRows.get(0).getLong("sa_customschemeid")==0){