Преглед изворни кода

经销商授权商品查询逻辑优化

hu пре 3 месеци
родитељ
комит
f731e39bda
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/custom/restcontroller/webmanage/sale/itemclass/itemclass.java

+ 1 - 1
src/custom/restcontroller/webmanage/sale/itemclass/itemclass.java

@@ -320,7 +320,7 @@ public class itemclass extends Controller {
 		}
 		if (content.containsKey("sys_enterpriseid")) {
 			if(content.getLong("sys_enterpriseid")>0){
-				where = where + " and t1.itemclassid not in (SELECT itemclassid from sys_enterprise_saleclass WHERE sys_enterpriseid = " +
+				where = where + " and t1.itemclassid not in (SELECT ifnull(itemclassid,0) from sys_enterprise_saleclass WHERE sys_enterpriseid = " +
 						content.getLong("sys_enterpriseid") + " and siteid='" + siteid + "' )";
 			}
 		}