Browse Source

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

hu 3 tháng trước cách đây
mục cha
commit
f731e39bda

+ 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 + "' )";
 			}
 		}