| | |
| | | <!--派遣公司分页信息--> |
| | | <select id="selectDispatcherUnitPage" resultType="org.springblade.modules.dispatcher.vo.DispatcherUnitVO"> |
| | | select |
| | | sdu.*,bt.tenant_name tenantName |
| | | sdu.*,bt.dept_name tenantName |
| | | from |
| | | sys_dispatcher_unit sdu |
| | | sys_dispatcher_unit sdu |
| | | LEFT JOIN |
| | | blade_tenant bt |
| | | blade_dept bt |
| | | ON |
| | | sdu.tenant_id = bt.tenant_id |
| | | sdu.dept_id = bt.id |
| | | WHERE |
| | | 1=1 |
| | | 1=1 |
| | | <if test="dispatcherUnit.tenantName!=null and dispatcherUnit.tenantName!=''"> |
| | | and bt.tenant_name like concat('%', #{dispatcherUnit.tenantName},'%') |
| | | and bt.dept_name like concat('%', #{dispatcherUnit.tenantName},'%') |
| | | </if> |
| | | <if test="dispatcherUnit.name!=null and dispatcherUnit.name!=''"> |
| | | and sdu.name like concat('%', #{dispatcherUnit.name},'%') |
| | |
| | | <if test="dispatcherUnit.city!=null"> |
| | | and sdu.city = #{dispatcherUnit.city} |
| | | </if> |
| | | <if test="dispatcherUnit.jurisdiction!=null"> |
| | | and sdu.jurisdiction = #{dispatcherUnit.jurisdiction} |
| | | </if> |
| | | <if test="dispatcherUnit.district!=null"> |
| | | and sdu.district = #{dispatcherUnit.district} |
| | | </if> |
| | |
| | | <!--派遣公司详细信息--> |
| | | <select id="selectDispatcherUnitInfo" resultType="org.springblade.modules.dispatcher.vo.DispatcherUnitVO"> |
| | | select |
| | | sdu.*,bt.tenant_name tenantName |
| | | sdu.*,bt.dept_name tenantName |
| | | from |
| | | sys_dispatcher_unit sdu |
| | | sys_dispatcher_unit sdu |
| | | LEFT JOIN |
| | | blade_tenant bt |
| | | blade_dept bt |
| | | ON |
| | | sdu.tenant_id = bt.tenant_id |
| | | WHERE |
| | | 1=1 |
| | | sdu.dept_id = bt.id |
| | | where |
| | | 1=1 |
| | | <if test="dispatcherUnit.id!=null"> |
| | | and sdu.id = #{dispatcherUnit.id} |
| | | </if> |