tangzy
2021-07-08 11d2e2cbc4f12a7bb85408f3676e9f5e2dcf359d
src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -26,6 +26,16 @@
        <result column="dept_id" property="deptId"/>
        <result column="post_id" property="postId"/>
        <result column="cardid" property="cardid"/>
        <result column="nativeplace" property="nativeplace"/>
        <result column="nation" property="nation"/>
        <result column="education" property="education"/>
        <result column="politicaloutlook" property="politicaloutlook"/>
        <result column="height" property="height"/>
        <result column="cell" property="cell"/>
        <result column="emails" property="emails"/>
        <result column="address" property="address"/>
        <result column="registered" property="registered"/>
        <result column="rtime" property="rtime"/>
    </resultMap>
    <select id="selectUserPage" resultMap="userResultMap">
@@ -35,14 +45,23 @@
            and tenant_id = #{user.tenantId}
        </if>
        <if test="user.account!=null and user.account != ''">
            and account = #{user.account}
            and account != #{user.account}
        </if>
        <if test="user.realName!=null and user.realName != ''">
            and real_name = #{user.realName}
            and real_name like concat(concat('%', #{user.realName}),'%')
        </if>
        <if test="user.userType!=null and user.userType != ''">
            and user_type = #{user.userType}
        </if>
        <if test="user.nativeplace!=null and user.nativeplace != ''">
            and nativeplace = #{user.nativeplace}
        </if>
        <if test="user.sex!=null and user.sex != ''">
            and sex = #{user.sex}
        </if>
        <if test="user.status!=null and user.status != ''">
            and status = #{user.status}
        </if>
        <if test="deptIdList!=null and deptIdList.size>0">
            and id in (
                SELECT