智慧保安后台管理-外网项目备份
钟日健
2021-10-22 f63fff71fcd7a62ad73b0b9eda614f3b1fa3badf
src/main/java/org/springblade/modules/equipage/mapper/CarMapper.xml
@@ -12,8 +12,19 @@
            blade_dept bt
        ON
            sc.dept_id = bt.id
        left join
            sys_information si
        on
            si.departmentid = bt.id
        left join
            sys_jurisdiction sj
        on
            sj.id = si.jurisdiction
        WHERE
            1=1
        <if test="car.jurisdiction!=null and car.jurisdiction!='' and car.jurisdiction!='1372091709474910209'">
            and (sj.id = #{car.jurisdiction} or sj.parent_id = #{car.jurisdiction})
        </if>
        <if test="car.tenantName!=null and  car.tenantName!=''">
            and bt.dept_name like concat('%', #{car.tenantName},'%')
        </if>