Bläddra i källkod

feat:优化会员管理查询

caoliqin 1 vecka sedan
förälder
incheckning
c157d20e88
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4 4
      fs-service-system/src/main/resources/mapper/store/FsUserMapper.xml

+ 4 - 4
fs-service-system/src/main/resources/mapper/store/FsUserMapper.xml

@@ -270,15 +270,15 @@
             AND u.nickname LIKE CONCAT("%",#{maps.nickname},"%")
         </if >
         <if test = "maps.phone != null   and  maps.phone !='' " >
-        AND u.phone = #{maps.phone}
+        AND u.phone LIKE CONCAT("%",#{maps.phone},"%")
         </if >
-        <if test = "maps.registerDate != null and  maps.registerDate !=''" >
-        AND DATE_FORMAT( u.register_date, "%Y-%m-%d" ) = DATE_FORMAT(#{maps.registerDate}, "%Y-%m-%d")
+        <if test = "maps.createTime != null" >
+        AND DATE_FORMAT( u.create_time, "%Y-%m-%d" ) = DATE_FORMAT(#{maps.createTime}, "%Y-%m-%d")
         </if >
         <if test = "maps.registerCode != null  and  maps.registerCode !=''  " >
         AND u.register_code = #{maps.registerCode}
         </if >
-        <if test = "maps.status != null  and  maps.status !=''" >
+        <if test = "maps.status != null" >
         AND u.STATUS = #{maps.status}
         </if >
         <if test = "maps.level != null  and  maps.level !=''" >