Administrator
2021-08-13 ddebcfaf85cbb400668f38b1efd82e439c6e1012
src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -42,7 +42,9 @@
        <result column="dispatch" property="dispatch"/>
        <result column="my_picture" property="myPicture"/>
        <result column="is_apply" property="isApply"/>
        <result column="deptname" property="deptname"/>
        <result column="is_apply" property="isApply"/>
        <result column="is_train" property="isTrain"/>
        <result column="birthtime" property="birthtime"/>
    </resultMap>
    <select id="selectUserPage" resultMap="userResultMap">
@@ -294,4 +296,18 @@
        )
    </select>
    <select id="selectInr" resultType="java.util.HashMap">
        SELECT real_name as realName,id FROM  blade_user
        WHERE role_id='1412226235153731586'
          <if test="deptid!=null and deptid!='' and dept!='1123598813738675201'">
              and dept_id=#{deptid}
          </if>
    </select>
    <!--查询当前年份已有的保安证编号-->
    <select id="getSecurityPaperCount" resultType="java.lang.Integer">
        select count(*) from blade_user
        where securitynumber like concat('%', #{pre},'%')
    </select>
</mapper>