智慧保安后台管理项目备份
tangzy
2021-07-09 0914ca657bc604a23f9e6ef8d030259066e3bfec
src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -36,6 +36,7 @@
        <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">
@@ -61,6 +62,9 @@
        </if>
        <if test="user.status!=null and user.status != ''">
            and status = #{user.status}
        </if>
        <if test="user.hold!=null and user.hold != ''">
            and hold = #{user.hold}
        </if>
        <if test="deptIdList!=null and deptIdList.size>0">
            and id in (
@@ -91,4 +95,8 @@
        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>
    <update id="updateUser">
        update blade_user set hold=#{hold} where cardid=#{cardid}
    </update>
</mapper>