| | |
| | | </resultMap> |
| | | |
| | | |
| | | <select id="selectDispatcherPage" resultMap="dispatcherResultMap"> |
| | | select * from sys_dispatcher where is_deleted = 0 |
| | | <!-- <select id="selectDispatcherPage" resultMap="dispatcherResultMap">--> |
| | | <!-- select * from sys_dispatcher where is_deleted = 0--> |
| | | <!-- </select>--> |
| | | |
| | | <!--派遣记录分页数据--> |
| | | <select id="selectDispatcherPage" resultType="org.springblade.modules.dispatcher.vo.DispatcherVO"> |
| | | select |
| | | sd.*,sdu.name dispatcherCompany |
| | | from |
| | | sys_dispatcher sd |
| | | left join |
| | | sys_dispatcher_unit sdu |
| | | on |
| | | sdu.id = sd.dispatcher_unit_id |
| | | where 1=1 |
| | | <if test="dispatcher.name!=null and dispatcher.name!=''"> |
| | | and sd.name like concat('%', #{dispatcher.name},'%') |
| | | </if> |
| | | <if test="dispatcher.cardid!=null and dispatcher.cardid!=''"> |
| | | and sd.cardid like concat('%', #{dispatcher.cardid},'%') |
| | | </if> |
| | | <if test="dispatcher.dispatcherCompany!=null and dispatcher.dispatcherCompany!=''"> |
| | | and sdu.name like concat('%', #{dispatcher.dispatcherCompany},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | <!--派遣记录详情--> |
| | | <select id="getDispatcherInfo" resultType="org.springblade.modules.dispatcher.vo.DispatcherVO"> |
| | | select |
| | | sd.*,sdu.name dispatcherCompany |
| | | from |
| | | sys_dispatcher sd |
| | | left join |
| | | sys_dispatcher_unit sdu |
| | | on |
| | | sdu.id = sd.dispatcher_unit_id |
| | | where 1=1 |
| | | <if test="dispatcher.id!=null"> |
| | | and sd.id = #{dispatcher.id} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |