智慧保安后台管理-验收版本
Administrator
2021-09-18 dae145fda8a0102c8cb396acce37d6219cf6be88
src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -45,6 +45,7 @@
        <result column="my_picture" property="myPicture"/>
        <result column="soil" property="soil"/>
        <result column="healstats" property="healstats"/>
        <result column="holdv" property="holdv"/>
    </resultMap>
@@ -92,7 +93,8 @@
    </resultMap>
    <select id="selectUserPage" resultMap="userResultMap">
        select * from blade_user where is_deleted = 0
        select * from blade_user
        where is_deleted = 0
        <if test="user.tenantId!=null and user.tenantId != ''">
            and tenant_id = #{user.tenantId}
        </if>
@@ -200,12 +202,19 @@
        blade_dept bd
        on
        bu.dept_id = bd.id
        left join
        blade_role br
        on
        br.id = bu.role_id
        where
        bu.is_deleted = 0
        and
        bd.dept_category = 1
        br.role_alias = '安保人员'
        and
        bu.status = 1
        and bd.parent_id!=1425365577303621633
        and bd.id != 1425365577303621633
        and bd.id != 1432625856013971457
        <if test="user.cardid!=null and user.cardid != ''">
            and bu.cardid like concat(concat('%', #{user.cardid}),'%')
        </if>
@@ -275,7 +284,7 @@
    <update id="updateUser">
        update blade_user
        set hold=#{hold}
        set hold=#{hold},holdv=#{holdv},holdvtime=#{time}
        where cardid = #{cardid}
    </update>
@@ -308,4 +317,11 @@
        where securitynumber = #{securityNumber}
    </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>