| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?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.SysChannelGroupMapper">
- <resultMap id="BaseResultMap" type="com.ydtech.modules.admin.model.po.SysChannelGroup">
- <id property="id" column="id" jdbcType="BIGINT"/>
- <result property="name" column="name" jdbcType="VARCHAR"/>
- <result property="enabled" column="enabled" jdbcType="INTEGER"/>
- <result property="remark" column="remark" jdbcType="VARCHAR"/>
- <result property="createBy" column="create_by" jdbcType="VARCHAR"/>
- <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
- <result property="updateBy" column="update_by" jdbcType="VARCHAR"/>
- <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
- <result property="startTime" column="start_time" jdbcType="TIMESTAMP"/>
- <result property="endTime" column="end_time" jdbcType="TIMESTAMP"/>
- </resultMap>
- <sql id="Base_Column_List">
- id,name,remark,
- create_by,create_time,update_by,
- update_time
- </sql>
- <select id="getProductList" resultType="com.ydtech.modules.admin.model.po.SysChannelGroup">
- SELECT
- b.id,
- b.costs_description as costsDescription,
- c.agreement_name as agreementName
- FROM sys_channel_cost_relation AS a
- LEFT JOIN ptl_agreement_product_costs_new AS b on a.cost_id = b.id
- LEFT JOIN ptl_agreement as c on b.agreement_id = c.id
- <where>
- <if test="id != null">
- a.channel_id = #{id}
- </if>
- </where>
- ORDER BY c.insurance_company_id, b.agreement_id DESC
- </select>
- </mapper>
|