智慧保安后台管理-外网项目备份
tangzy
2021-08-19 2cf76c21aa27bef90017ecfaa14abf066d5f28bc
src/main/java/org/springblade/modules/information/mapper/InformationMapper.xml
@@ -30,6 +30,11 @@
    </resultMap>
    <insert id="insertIn" useGeneratedKeys="true" keyProperty="id">
        insert into sys_information (creditcode) values (#{information.creditcode})
    </insert>
    <select id="selectInformationPage" resultMap="informationResultMap">
        select * from sys_information where 1=1
        <if test="information.enterprisename!=null and information.enterprisename!=''">
@@ -124,6 +129,8 @@
        ) B ON A.dept_id = B.dept_id
        WHERE A.dept_id = #{deptid}
    </select>
    <!--保安员持证和未持证数量-->
    <select id="selectHold" resultType="java.util.HashMap">
        SELECT IFNULL(A.thisnum, 0) AS cz,
@@ -175,20 +182,13 @@
            blade_dept bd
        on
            si.departmentid = bd.id
        left join
            sys_train_exam ste
        on
            ste.dept_id = bd.id
        where 1=1
        and ste.audit_status = 1
        and bd.dept_category = 3
        <if test="information.deptName!=null and information.deptName!=''">
            and bd.dept_name like concat(concat('%', #{information.deptName}),'%')
        </if>
        <if test="information.representative!=null and information.representative!=''">
            and representative like concat(concat('%', #{information.representative}),'%')
        </if>
        <if test="information.stats!=null and information.stats!=''">
            and stats=#{stats}
        </if>
        <if test="information.jurisdiction!=null and information.jurisdiction!=''">
            and si.jurisdiction=#{jurisdiction}