| | |
| | | update_time |
| | | from work_registration |
| | | where del_flag = 0 |
| | | <if test="query.dept != null and query.dept = ''"> |
| | | <if test="query.dept != null and query.dept != ''"> |
| | | and dept like concat('%', #{query.dept}, '%') |
| | | </if> |
| | | <if test="query.name != null and query.name = ''"> |
| | | <if test="query.name != null and query.name != ''"> |
| | | and name like concat('%', #{query.name}, '%') |
| | | </if> |
| | | <if test="query.idCard != null and query.idCard = ''"> |
| | | <if test="query.idCard != null and query.idCard != ''"> |
| | | and id_card like concat('%', #{query.idCard}, '%') |
| | | </if> |
| | | <if test="query.operateTypeId != null and query.operateTypeId != 0"> |
| | | and (operate_type_id = #{query.operateTypeId} OR operate_type_id IN ( SELECT t.id FROM sys_operate_type t WHERE find_in_set(#{query.operateTypeId}, ancestors))) |
| | | </if> |
| | | order by create_time desc |
| | | |
| | | </select> |
| | | |
| | | </mapper> |