| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?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.ydtech.modules.admin.dao.SysPartnerMapper">
- <resultMap type="com.ydtech.modules.admin.model.SysPartner" id="SysPartnerMap">
- <result property="id" column="id" jdbcType="INTEGER"/>
- <result property="userId" column="user_id" jdbcType="VARCHAR"/>
- <result property="userName" column="user_name" jdbcType="VARCHAR"/>
- <result property="proportional" column="proportional" jdbcType="VARCHAR"/>
- <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
- <result property="createBy" column="create_by" jdbcType="VARCHAR"/>
- <result property="delFlag" column="del_flag" jdbcType="INTEGER"/>
- </resultMap>
- <select id="queryPage" resultType="com.ydtech.modules.admin.model.dto.SysPartnerConsoleDto">
- select *
- from sys_partner sp
- <where>
- 1=1
- and sp.del_flag ='1'
- <if test="vo.userIdList !=null and vo.userIdList!='' and vo.userIdList.size() >0">
- and sp.user_id IN
- <foreach item="item" index="index" collection="vo.userIdList" open="(" separator="," close=")">
- #{item}
- </foreach>
- </if>
- </where>
- </select>
- <select id="getTreeDeptUser" resultType="com.ydtech.modules.admin.model.dto.SysPartnerConsoleDto">
- select sal.user_id as "userId",
- sal.user_name as "userName"
- from sys_partner sal
- where sal.del_flag = '1'
- and sal.suggest_id is null
- </select>
- </mapper>
|