|
@@ -1850,14 +1850,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
LEFT JOIN company_user ON company_user.user_id = ucu.company_user_id
|
|
|
LEFT JOIN company on company.company_id = company_user.company_id
|
|
|
<where>
|
|
|
- 1 = 1
|
|
|
- AND (u.nickname IS NOT NULL or u.nick_name IS NOT NULL)
|
|
|
+ 1 = 1 and u.nick_name is not null
|
|
|
+ and u.is_del = 0
|
|
|
<if test = "maps.nickname != null and maps.nickname !='' " >
|
|
|
- AND (
|
|
|
- u.nickname LIKE CONCAT("%",#{maps.nickname},"%")
|
|
|
- or
|
|
|
- u.nick_name LIKE CONCAT("%",#{maps.nickname},"%")
|
|
|
- )
|
|
|
+ AND u.nick_name LIKE CONCAT("%",#{maps.nickname},"%")
|
|
|
</if >
|
|
|
<if test = "maps.userId != null and maps.userId !='' " >
|
|
|
AND u.user_id = #{maps.userId}
|
|
@@ -1866,15 +1862,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
AND u.phone LIKE CONCAT("%",#{maps.phone},"%")
|
|
|
</if >
|
|
|
<if test = "maps.startCreateTime != null and maps.endCreateTime != null" >
|
|
|
- AND (DATE_FORMAT( u.create_time, "%Y-%m-%d" ) >= DATE_FORMAT(#{maps.startCreateTime}, "%Y-%m-%d")
|
|
|
- and DATE_FORMAT( u.create_time, "%Y-%m-%d" ) <= DATE_FORMAT(#{maps.endCreateTime}, "%Y-%m-%d")
|
|
|
+ AND (DATE_FORMAT( ucu.create_time, "%Y-%m-%d" ) >= DATE_FORMAT(#{maps.startCreateTime}, "%Y-%m-%d")
|
|
|
+ and DATE_FORMAT( ucu.create_time, "%Y-%m-%d" ) <= DATE_FORMAT(#{maps.endCreateTime}, "%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 u.STATUS = #{maps.status}
|
|
|
+ AND ucu.status = #{maps.status}
|
|
|
</if >
|
|
|
<if test = "maps.companyId != null and maps.companyId != '' " >
|
|
|
AND company.company_id = #{maps.companyId}
|