智慧保安后台管理-外网
Administrator
2021-07-16 269031cf8e6d1e4643e1be2b822bbfebcf87ea4b
src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -37,6 +37,8 @@
        <result column="registered" property="registered"/>
        <result column="rtime" property="rtime"/>
        <result column="hold" property="hold"/>
        <result column="jurisdiction" property="jurisdiction"/>
        <result column="securitynumber" property="securitynumber"/>
    </resultMap>
    <select id="selectUserPage" resultMap="userResultMap">
@@ -75,6 +77,9 @@
        <if test="user.userType!=null and user.userType != ''">
            and bu.user_type = #{user.userType}
        </if>
          <if test="user.securitynumber!=null and user.securitynumber != ''">
            and bu.securitynumber = #{user.securitynumber}
        </if>
        <if test="deptIdList!=null and deptIdList.size>0">
            and bu.id in (
                SELECT
@@ -104,4 +109,12 @@
        SELECT id, tenant_id, user_type, account, name, real_name, email, phone, birthday, role_id, dept_id, post_id FROM blade_user ${ew.customSqlSegment}
    </select>
    <!--通过 身份证号查询用户信息-->
    <select id="getUserInfoByIdCardNo" resultType="org.springblade.modules.system.entity.User">
        SELECT id, name, real_name RealName
            FROM
        blade_user
        where cardid = #{param1}
    </select>
</mapper>