| | |
| | | left join (select id,app_user_id, max(check_time) as lastInspectionTime from t_sys_inspection limit 1) tsi on tsi.app_user_id = tsau.id |
| | | <where> |
| | | <if test="query.phone != null and query.phone != ''"> |
| | | and tsau.phone = #{query.phone} |
| | | and tsau.phone like concat('%',#{query.phone},'%') |
| | | </if> |
| | | <if test="query.nickName != null and query.nickName != ''"> |
| | | and tsau.nick_name like concat('%',#{query.nickName},'%') |
| | |
| | | left join (select id,app_user_id, max(check_time) as lastInspectionTime from t_sys_inspection limit 1) tsi on tsi.app_user_id = tsau.id |
| | | <where> |
| | | <if test="query.phone != null and query.phone != ''"> |
| | | and tsau.phone = #{query.phone} |
| | | and tsau.phone like concat('%',#{query.phone},'%') |
| | | </if> |
| | | <if test="query.nickName != null and query.nickName != ''"> |
| | | and tsau.nick_name like concat('%',#{query.nickName},'%') |