Browse Source

用户预警BUG

lin 4 years ago
parent
commit
0e0e5019f1

+ 4 - 2
smart-city-platform/src/main/java/com/bz/smart_city/controller/common/TestController.java

@@ -494,7 +494,7 @@ public class TestController {
     }
 
     @ResponseBody
-    @PostMapping("/addDemoWarningLog")
+    @GetMapping("/addDemoWarningLog")
     @ApiOperation(value = "添加演示告警记录", notes = "添加演示告警记录")
     public String addDemoWarningLog(
             @ApiParam(value = "openId", required = true) @RequestParam String openId,
@@ -518,7 +518,9 @@ public class TestController {
 
 
         String content = "";
-        if(type==3)content="单日用水量0.01吨";
+        if(type==1)content="较上日用水量激增30%";
+        if(type==2)content="连续无用水量数据7天";
+        if(type==3)content="单日用水量少于0.01吨";
         if(type==4)content="单日用水量超过2吨";
 
         WarningMessage warningMessageNew = new WarningMessage();

+ 1 - 1
smart-city-platform/src/main/resources/mapper/WarningLogMapper.xml

@@ -166,7 +166,7 @@
     )</if>
     <if test="warningType != null"> and swl.warning_type = #{warningType}</if>
     <if test="clientName != null and clientName != ''"> and (
-      pba.name LIKE concat('%',#{clientName},'%') or pba.mobilephone LIKE concat('%',#{clientName},'%') or pba.accountnumber LIKE concat('%',#{clientName},'%')
+      sgm.customer_name LIKE concat('%',#{clientName},'%') or sgm.customer_phone LIKE concat('%',#{clientName},'%') or sgm.customer_no LIKE concat('%',#{clientName},'%')
     )</if>
     <if test="feedbackStatus != null"> and swl.feedback_status = #{feedbackStatus}</if>
     <if test="provinceId != null"> and sb.province = #{provinceId}</if>