| | |
| | | left join blade_user bu on bu.id = shl.user_id |
| | | left join blade_dept bd on shl.dept_id = bd.id |
| | | where 1=1 |
| | | <if test="handlerLog.deptName!=null and handlerLog.deptName!''"> |
| | | bd.dept_name like concat('%',#{handlerLog.deptName},'%') |
| | | <if test="handlerLog.deptName!=null and handlerLog.deptName!=''"> |
| | | and bd.dept_name like concat('%',#{handlerLog.deptName},'%') |
| | | </if> |
| | | <if test="handlerLog.deptId!=null and handlerLog.deptId!''"> |
| | | shl.dept_id = #{handlerLog.deptId} |
| | | <if test="handlerLog.deptId!=null and handlerLog.deptId!=''"> |
| | | and shl.dept_id = #{handlerLog.deptId} |
| | | </if> |
| | | <if test="handlerLog.type!=null"> |
| | | and shl.type = #{handlerLog.type} |
| | | </if> |
| | | order by shl.id desc |
| | | </select> |