智慧保安后台管理-外网项目备份
zhongrj
2023-11-14 2d7fc00f4c1b39f45ab4eb1d42582c45d6cad921
src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -1137,7 +1137,7 @@
    <!--根据手机号获取用户信息-->
    <select id="getUserByPhone" resultType="org.springblade.modules.system.entity.User">
        select * from blade_user where is_deleted = 0 and status = 1
        and tenant_id = #{tenantId} and phone = #{phone}
        and tenant_id = #{tenantId} and phone = #{phone} limit 1
    </select>
    <!--按天查询 day 天未登录的人员ids集合信息-->
@@ -1183,5 +1183,13 @@
        </choose>
    </update>
    <!--判断是否报名-->
    <select id="getUserIsApply" resultType="org.springblade.modules.system.entity.User">
        select bu.* from blade_user bu
        left join blade_role br on br.id = bu.role_id
        where bu.is_deleted = 0 and bu.status = 1 and bu.id = #{id}
        and br.role_alias = '保安'
    </select>
</mapper>