2021与蓝度共同重构项目,服务端
liuhaonan
2022-10-21 0a30812acaa26ebe654340f7e749a6801b63b194
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?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.sandu.ximon.dao.mapper.ClientMapper">
 
    <resultMap id="BaseResultMap" type="com.sandu.ximon.dao.domain.Client">
        <id property="id" column="id" jdbcType="BIGINT"/>
        <result property="clientName" column="client_name" jdbcType="VARCHAR"/>
        <result property="clientSuperior" column="client_superior" jdbcType="VARCHAR"/>
        <result property="linkMan" column="linkman" jdbcType="VARCHAR"/>
        <result property="mobile" column="mobile" jdbcType="VARCHAR"/>
        <result property="icon" column="icon" jdbcType="VARCHAR"/>
        <result property="password" column="password" jdbcType="VARCHAR"/>
        <result property="userKey" column="user_key" jdbcType="VARCHAR"/>
        <result property="countLight" column="count_light" jdbcType="INTEGER"/>
        <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
        <result property="loginTime" column="login_time" jdbcType="TIMESTAMP"/>
    </resultMap>
    <select id="clientList" resultType="com.sandu.ximon.dao.domain.Client">
        select *
        from client
        where superiorId = #{userId}
 
    </select>
    <select id="findClientIdByName" resultType="java.lang.Long">
        select id
        from client
        where client_name = #{belongsClient}
    </select>
 
 
</mapper>