瀏覽代碼

和曹永创交互接口 模糊查询改成直接查询

王苗苗 1 月之前
父節點
當前提交
e82a9f633b

+ 2 - 1
slibra-system/src/main/resources/mapper/business/TCutOffWaterMapper.xml

@@ -153,7 +153,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         AND b.del_flag = 0
         INNER JOIN t_neighborhood c ON c.id = b.neighborhood_id
         AND c.del_flag = 0
-        WHERE c.`name` LIKE concat('%', #{asrText}, '%')
+        <!-- WHERE c.`name` LIKE concat('%', #{asrText}, '%') -->
+        WHERE c.`name` = #{asrText}
         AND NOW() &gt;= time_begin AND (time_end is NULL or NOW() &lt;= time_end)
     </select>
     

+ 2 - 1
slibra-system/src/main/resources/mapper/business/TUserInfoMapper.xml

@@ -207,7 +207,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         FROM
             t_user_info
         WHERE
-            neighbourhood_name like concat('%', #{asrText}, '%') and del_flag = 0
+            <!-- neighbourhood_name like concat('%', #{asrText}, '%') and del_flag = 0 -->
+        neighbourhood_name = #{asrText} and del_flag = 0
     </select>
 
     <update id="updateUserPhoneByNo">