hu 2 سال پیش
والد
کامیت
0edff5d243
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/custom/restcontroller/webmanage/sale/itemclass/itemclass.java

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

@@ -200,7 +200,7 @@ public class itemclass extends Controller {
 			JSONObject whereObject = content.getJSONObject("where");
 
 			if (whereObject.containsKey("istool") && !"".equals(whereObject.getString("istool"))) {
-				where = where + " and (t1.istool ='" + whereObject.getString("istool") + "') ";
+				where = where + " and (ifnull(t1.istool,0) ='" + whereObject.getString("istool") + "') ";
 			}
 		}
 		/*