2021与蓝度共同重构项目,服务端
liuhaonan
2022-11-04 e55c8b0a92eb9715edd90c31dfd4de51a47b588b
dao/src/main/resources/mapper/ClientMapper.xml
@@ -10,14 +10,24 @@
        <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="updateTime" column="update_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 *
        from client
        where superiorId = #{userId}
    </select>
    <select id="findClientIdByName" resultType="java.lang.Long">
        select id
        from client
        where client_name = #{belongsClient}
    </select>
</mapper>