hu 2 anni fa
parent
commit
0edff5d243

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