| | |
| | | sys_jurisdiction sj |
| | | on |
| | | sj.id = sdu.jurisdiction |
| | | LEFT JOIN blade_dict_biz bdb ON bdb.dict_key = sdu.profession and bdb.is_deleted = 0 |
| | | WHERE |
| | | 1=1 |
| | | and bdb.code = 'dispatchProfession' |
| | | <if test="dispatcherUnit.profession != null and dispatcherUnit.profession !=''"> |
| | | and sdu.profession in |
| | | <foreach collection="dispatcherUnit.profession.split(',')" index="index" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="dispatcherUnit.deptName!=null and dispatcherUnit.deptName!=''"> |
| | | and bt.dept_name like concat('%', #{dispatcherUnit.deptName},'%') |
| | | </if> |
| | |
| | | |
| | | <select id="getAll" resultType="org.springblade.modules.dispatcher.vo.DispatcherUnitVO"> |
| | | select |
| | | sdu.*,bt.dept_name deptName,sj.dept_name jurisdictionName |
| | | sdu.*,bt.dept_name deptName,sj.dept_name jurisdictionName,bdb.dict_value as professionName |
| | | from |
| | | sys_dispatcher_unit sdu |
| | | LEFT JOIN |
| | |
| | | sys_jurisdiction sj |
| | | on |
| | | sj.id = sdu.jurisdiction |
| | | LEFT JOIN blade_dict_biz bdb ON bdb.dict_key = sdu.profession and bdb.is_deleted = 0 |
| | | WHERE |
| | | 1=1 |
| | | and bdb.code = 'dispatchProfession' |
| | | <if test="dispatcherUnit.profession != null and dispatcherUnit.profession !=''"> |
| | | and sdu.profession in |
| | | <foreach collection="dispatcherUnit.profession.split(',')" index="index" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="dispatcherUnit.deptName!=null and dispatcherUnit.deptName!=''"> |
| | | and bt.dept_name like concat('%', #{dispatcherUnit.deptName},'%') |
| | | </if> |