| | |
| | | <!--派遣公司分页信息--> |
| | | <select id="selectDispatcherUnitPage" resultType="org.springblade.modules.dispatcher.vo.DispatcherUnitVO"> |
| | | select |
| | | sdu.*,bt.dept_name tenantName |
| | | sdu.*,bt.dept_name deptName,sj.dept_name jurisdictionName |
| | | from |
| | | sys_dispatcher_unit sdu |
| | | sys_dispatcher_unit sdu |
| | | LEFT JOIN |
| | | blade_dept bt |
| | | blade_dept bt |
| | | ON |
| | | sdu.dept_id = bt.id |
| | | sdu.dept_id = bt.id |
| | | left join |
| | | sys_jurisdiction sj |
| | | on |
| | | sj.id = sdu.jurisdiction |
| | | WHERE |
| | | 1=1 |
| | | 1=1 |
| | | <if test="dispatcherUnit.tenantName!=null and dispatcherUnit.tenantName!=''"> |
| | | and bt.dept_name like concat('%', #{dispatcherUnit.tenantName},'%') |
| | | </if> |
| | |
| | | <if test="dispatcherUnit.district!=null"> |
| | | and sdu.district = #{dispatcherUnit.district} |
| | | </if> |
| | | <if test="dispatcherUnit.isExpire==1"> |
| | | and sdu.start_time <= now() |
| | | and sdu.end_time > now() |
| | | </if> |
| | | <if test="dispatcherUnit.isExpire==2"> |
| | | and sdu.end_time <= now() |
| | | </if> |
| | | </select> |
| | | |
| | | <!--自定义树--> |