Procházet zdrojové kódy

商品同步bug修复

hu před 1 rokem
rodič
revize
6c1a82c80e

+ 2 - 2
src/custom/restcontroller/webmanage/lsak3/item/item.java

@@ -161,8 +161,8 @@ public class item extends Controller {
                         sqlFactory.addParameter("status",customitemRows.get(0).getString("status"));
                         sqlFactory.addParameter("isonsale",customitemRows.get(0).getString("isonsale"));
                     }else {
-                        sqlFactory.addParameter("status","审核");
-                        sqlFactory.addParameter("isonsale",0);
+                        sqlFactory.addParameter("status",customitemRows.get(0).getString("status"));
+                        sqlFactory.addParameter("isonsale",customitemRows.get(0).getString("isonsale"));
                         Rows rowscount = dbConnect.runSqlQuery("select count(1) count from sa_itemgroupmx where sa_itemgroupid in(select t1.sa_itemgroupid from sa_itemgroupmx t1 inner join sa_itemgroup t2 on t1.sa_itemgroupid=t2.sa_itemgroupid and t1.siteid=t2.siteid  where itemid="+itemid+")");
                         if(rowscount.isNotEmpty()){
                             if(rowscount.get(0).getInteger("count")>1){