Administrator
2021-07-16 269031cf8e6d1e4643e1be2b822bbfebcf87ea4b
src/main/java/org/springblade/modules/dispatcher/mapper/DispatcherMapper.xml
@@ -10,13 +10,7 @@
        <result column="dispatcher" property="dispatcher"/>
        <result column="dispatcherTime" property="dispatchertime"/>
        <result column="dispatcherAddress" property="dispatcheraddress"/>
        <result column="dispatchercompany" property="dispatchercompany"/>
    </resultMap>
<!--    <select id="selectDispatcherPage" resultMap="dispatcherResultMap">-->
<!--        select * from sys_dispatcher where is_deleted = 0-->
<!--    </select>-->
    <!--派遣记录分页数据-->
    <select id="selectDispatcherPage" resultType="org.springblade.modules.dispatcher.vo.DispatcherVO">
@@ -29,6 +23,12 @@
        on
            sdu.id = sd.dispatcher_unit_id
        where 1=1
        <if test="dispatcher.dispatcherUnitId!=null">
            and sd.dispatcher_unit_id = #{dispatcher.dispatcherUnitId}
        </if>
        <if test="dispatcher.deptId!=null">
            and sd.dept_id = #{dispatcher.deptId}
        </if>
        <if test="dispatcher.name!=null and  dispatcher.name!=''">
            and sd.name like concat('%', #{dispatcher.name},'%')
        </if>