| | |
| | | <if test="deptid != null and deptid != 0"> |
| | | and (deptid = #{deptid} or deptid in ( select id from sys_dept where pids like CONCAT('%[', #{deptid}, ']%') )) |
| | | </if> |
| | | <if test="beginTime != null and beginTime != '' and endTime != null and endTime != ''"> |
| | | <if test="beginTime != null and endTime != null"> |
| | | and (createTime between CONCAT(#{beginTime},' 00:00:00') and CONCAT(#{endTime},' 23:59:59')) |
| | | </if> |
| | | </select> |
| | |
| | | LEFT JOIN sys_dept sd on us.deptid = sd.id |
| | | <where> |
| | | us.status != 3 |
| | | <if test="null != account and '' != account"> |
| | | and us.account like CONCAT('%', #{account}, '%') |
| | | <if test="null != phone and '' != phone"> |
| | | and us.phone like CONCAT('%', #{phone}, '%') |
| | | </if> |
| | | <if test="null != name and '' != name"> |
| | | and us.name like CONCAT('%', #{name}, '%') |
| | | </if> |
| | | <if test="null != deptName and '' != deptName"> |
| | | and sd.simplename like CONCAT('%', #{deptName}, '%') |
| | | </if> |
| | | </where> |
| | | |
| | | |
| | | order by us.createtime desc |
| | | </select> |
| | | </mapper> |