|
|
@@ -54,6 +54,7 @@ public class Item extends Controller {
|
|
|
SQLFactory sqlFactory = new SQLFactory(this, "货品档案新增");
|
|
|
if (itemid <= 0) {
|
|
|
itemid = createTableID("plm_item");
|
|
|
+ sqlList.add(DataContrlLog.createLog(this,"plm_item",itemid,"新增","新增商品"+content.getString("itemname")).getSQL());
|
|
|
} else {
|
|
|
if (dbConnect.runSqlQuery("SELECT 1 from plm_item WHERE itemid=" + itemid + " and siteid ='" + siteid + "'")
|
|
|
.isEmpty()) {
|
|
|
@@ -62,6 +63,7 @@ public class Item extends Controller {
|
|
|
Rows itemRows = dbConnect.runSqlQuery("SELECT t1.*,t2.material from plm_item t1 left join plm_itemextend t2 on t1.itemid=t2.itemid and t1.siteid=t2.siteid WHERE t1.itemid=" + itemid + " and t1.siteid ='" + siteid + "'");
|
|
|
|
|
|
sqlFactory = new SQLFactory(this, "货品档案更新");
|
|
|
+ sqlList.add(DataContrlLog.createLog(this,"plm_item",itemid,"编辑","编辑商品"+content.getString("itemname")).getSQL());
|
|
|
if (content.getLongValue("sa_customschemeid") > 0) {
|
|
|
Rows customschemeRows = dbConnect.runSqlQuery("SELECT t1.*,t2.schemename from sa_customscheme_items t1 left join sa_customscheme t2 on t1.sa_customschemeid=t2.sa_customschemeid and t1.siteid=t2.siteid WHERE t1.sa_customschemeid=" + content.getLongValue("sa_customschemeid") + " and t1.siteid ='" + siteid + "'");
|
|
|
String where = " and 1=1 and t1.itemid != " + itemid + " and sa_customschemeid=" + content.getLongValue("sa_customschemeid");
|
|
|
@@ -768,7 +770,11 @@ public class Item extends Controller {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ sqlList.add(DataContrlLog.createLog(this,"plm_item",id,"反审核","反审核失败").getSQL());
|
|
|
+ }else{
|
|
|
+ sqlList.add(DataContrlLog.createLog(this,"plm_item",id,"审核","审核成功").getSQL());
|
|
|
}
|
|
|
+
|
|
|
sqlList.add(sqlFactory.getSQL());
|
|
|
}
|
|
|
|
|
|
@@ -842,9 +848,9 @@ public class Item extends Controller {
|
|
|
sqlFactory.addParameter("isonsale", isonsale);
|
|
|
sqlList.add(sqlFactory.getSQL(false));
|
|
|
if (isonsale.equals("1")) {
|
|
|
- sqlList.add(DataContrlLog.createLog(this, "plm_item", id, "商品上架", "商品上架成功").getSQL());
|
|
|
+ sqlList.add(DataContrlLog.createLog(this, "plm_item", id, "上架", "上架成功").getSQL());
|
|
|
} else {
|
|
|
- sqlList.add(DataContrlLog.createLog(this, "plm_item", id, "商品下架", "商品下架成功").getSQL());
|
|
|
+ sqlList.add(DataContrlLog.createLog(this, "plm_item", id, "下架", "下架成功").getSQL());
|
|
|
}
|
|
|
|
|
|
//审核商品时,自动添加至商品组中
|