#
luxiaotao1123
2024-02-20 88ef94ea106bd3e39c4895f07988be89e974a8b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zy.asrs.wcs.system.mapper.UserMapper">
 
    <!-- 根据账号查询 -->
    <select id="selectByUsername" resultType="com.zy.asrs.wcs.system.entity.User">
        select * from sys_user
        where 1=1
        and deleted = 0
        and username = #{username}
        <if test="hostId != null">
            AND host_id = #{hostId}
        </if>
    </select>
 
</mapper>