|
@@ -0,0 +1,38 @@
|
|
|
+<?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.kexun.mapper.CooperatorProductMapper">
|
|
|
+
|
|
|
+ <resultMap id="BaseResultMap" type="com.kexun.entity.CooperatorInfo">
|
|
|
+ <result property="partnerName" column="partner_name" jdbcType="VARCHAR"/>
|
|
|
+ <result property="contactName" column="contact_name" jdbcType="VARCHAR"/>
|
|
|
+ <result property="mobileNo" column="mobile_no" jdbcType="VARCHAR"/>
|
|
|
+ <result property="rate1" column="rate_1" jdbcType="VARCHAR"/>
|
|
|
+ <result property="queryNumber1" column="query_number1" jdbcType="VARCHAR"/>
|
|
|
+ <result property="rate2" column="rate_2" jdbcType="VARCHAR"/>
|
|
|
+ <result property="queryNumber2" column="query_number2" jdbcType="VARCHAR"/>
|
|
|
+ <result property="rate3" column="rate_3" jdbcType="VARCHAR"/>
|
|
|
+ <result property="queryNumber3" column="query_number3" jdbcType="VARCHAR"/>
|
|
|
+ <result property="createTime" column="create_time" jdbcType="VARCHAR"/>
|
|
|
+ <result property="isEnable" column="is_enable" jdbcType="VARCHAR"/>
|
|
|
+
|
|
|
+
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="Query" resultType="com.kexun.entity.CooperatorProduct">
|
|
|
+ SELECT DISTINCT
|
|
|
+ prd_product.product_num,
|
|
|
+ prd_product.product_name,
|
|
|
+ prd_product.product_status,
|
|
|
+ prd_product.cooperator_name,
|
|
|
+ prd_product.create_time,
|
|
|
+ model.model_name as modelName
|
|
|
+ FROM
|
|
|
+ prd_product
|
|
|
+ LEFT JOIN model ON model.model_no = prd_product.model_id
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+</mapper>
|