Просмотр исходного кода

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

hu 4 лет назад
Родитель
Сommit
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")) {
 		 if (content.containsKey("where")) {
 	            JSONObject whereObject = content.getJSONObject("where");
 	            JSONObject whereObject = content.getJSONObject("where");
 	            if (whereObject.containsKey("fsonum") && !"".equals(whereObject.getString("fsonum"))) {
 	            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") + "%') ";
 	            }
 	            }
 		 }
 		 }
 	        /**
 	        /**