tangzy
2021-07-13 065db937d74b59caaad98698dafeeba91b2f5bf6
src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -25,6 +25,18 @@
        <result column="role_id" property="roleId"/>
        <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"/>
        <result column="hold" property="hold"/>
    </resultMap>
    <select id="selectUserPage" resultMap="userResultMap">
@@ -38,8 +50,14 @@
        <if test="user.account!=null and user.account != ''">
            and account = #{user.account}
        </if>
        <if test="user.deptId!=null and user.deptId != ''">
            and dept_id = #{user.deptId}
        </if>
        <if test="user.status!=null and user.status != ''">
            and status = #{user.status}
        </if>
        <if test="user.realName!=null and user.realName != ''">
            and real_name = #{user.realName}
            and real_name like concat('%', #{user.realName},'%')
        </if>
        <if test="user.userType!=null and user.userType != ''">
            and user_type = #{user.userType}