智慧保安后台管理项目备份
zhongrj
2024-05-24 b5960d1968e007b91d4d33dd7cbb74f1b566f2c1
src/main/java/org/springblade/modules/dispatcher/mapper/DispatcherUnitMapper.xml
@@ -5,15 +5,19 @@
    <!--派遣公司分页信息-->
    <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>
@@ -41,6 +45,13 @@
        <if test="dispatcherUnit.district!=null">
            and sdu.district = #{dispatcherUnit.district}
        </if>
        <if test="dispatcherUnit.isExpire==1">
            and sdu.start_time &lt;= now()
            and sdu.end_time &gt; now()
        </if>
        <if test="dispatcherUnit.isExpire==2">
            and sdu.end_time &lt;= now()
        </if>
    </select>
    <!--自定义树-->