| | |
| | | blade_user bu |
| | | on |
| | | bu.id = sd.user_ids |
| | | left join |
| | | sys_jurisdiction sj |
| | | on |
| | | sj.id = sdu.jurisdiction |
| | | where 1=1 |
| | | <if test="dispatcher.jurisdiction!=null and dispatcher.jurisdiction!=''"> |
| | | and (sj.id = #{dispatcher.jurisdiction} or sj.parent_id = #{dispatcher.jurisdiction}) |
| | | </if> |
| | | <if test="dispatcher.dispatcherUnitId!=null"> |
| | | and sd.dispatcher_unit_id = #{dispatcher.dispatcherUnitId} |
| | | </if> |
| | |
| | | <if test="dispatcher.name!=null and dispatcher.name!=''"> |
| | | and sd.name like concat('%', #{dispatcher.name},'%') |
| | | </if> |
| | | <if test="dispatcher.securityName!=null and dispatcher.securityName!=''"> |
| | | and bu.real_name like concat('%', #{dispatcher.securityName},'%') |
| | | </if> |
| | | <if test="dispatcher.cardid!=null and dispatcher.cardid!=''"> |
| | | and sd.cardid like concat('%', #{dispatcher.cardid},'%') |
| | | </if> |