|
|
@@ -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){
|