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

海盐订单统计2021年12月4日14:03:51

hu пре 4 година
родитељ
комит
12adbe3eae
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/rest/openapi/restcontroller/wechatapp/orderform/orderform.java

+ 2 - 1
src/rest/openapi/restcontroller/wechatapp/orderform/orderform.java

@@ -261,7 +261,8 @@ public class orderform extends Controller {
 		 if (content.containsKey("where")) {
 	            JSONObject whereObject = content.getJSONObject("where");
 	            if (whereObject.containsKey("fsonum") && !"".equals(whereObject.getString("fsonum"))) {
-	                where = where + " and t1.fsonum like'%" + whereObject.getString("fsonum") + "%'";
+	                where = where + " and (t1.fsonum like'%" + whereObject.getString("fsonum") + "%' "
+	                                +"or pp_hr.displayname like'%" + whereObject.getString("fsonum") + "%') ";
 	            }
 		 }
 	        /**