|
@@ -0,0 +1,99 @@
|
|
|
+<?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.BusinessMapper">
|
|
|
+
|
|
|
+ <resultMap id="BaseResultMap" type="com.kexun.entity.BusinessInfo">
|
|
|
+ <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="QueryToDoList" resultType="com.kexun.entity.BusinessInfo">
|
|
|
+ SELECT DISTINCT
|
|
|
+ report_info.business_num,
|
|
|
+ report_info.customer_name,
|
|
|
+ report_info.create_time,
|
|
|
+ report_info.certificate_num,
|
|
|
+ report_info.coop_business_num,
|
|
|
+ report_info.product_num,
|
|
|
+ cooperator_info.cooperator_name,
|
|
|
+ prd_product.product_name
|
|
|
+ FROM
|
|
|
+ report_info
|
|
|
+ LEFT JOIN cooperator_info ON cooperator_info.cooperator_num = report_info.coop_business_num
|
|
|
+ LEFT JOIN prd_product ON prd_product.product_num = report_info.product_num
|
|
|
+ WHERE
|
|
|
+ report_info.status = 1;
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="QueryAnalysisList" resultType="com.kexun.entity.BusinessInfo">
|
|
|
+ SELECT DISTINCT
|
|
|
+ report_info.business_num,
|
|
|
+ report_info.customer_name,
|
|
|
+ report_info.create_time,
|
|
|
+ report_info.certificate_num,
|
|
|
+ report_info.coop_business_num,
|
|
|
+ report_info.product_num,
|
|
|
+ cooperator_info.cooperator_name,
|
|
|
+ prd_product.product_name
|
|
|
+ FROM
|
|
|
+ report_info
|
|
|
+ LEFT JOIN cooperator_info ON cooperator_info.cooperator_num = report_info.coop_business_num
|
|
|
+ LEFT JOIN prd_product ON prd_product.product_num = report_info.product_num
|
|
|
+ WHERE
|
|
|
+ report_info.status = 2;
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="QueryFailList" resultType="com.kexun.entity.BusinessInfo">
|
|
|
+ SELECT DISTINCT
|
|
|
+ report_info.business_num,
|
|
|
+ report_info.customer_name,
|
|
|
+ report_info.create_time,
|
|
|
+ report_info.certificate_num,
|
|
|
+ report_info.coop_business_num,
|
|
|
+ report_info.product_num,
|
|
|
+ cooperator_info.cooperator_name,
|
|
|
+ prd_product.product_name
|
|
|
+ FROM
|
|
|
+ report_info
|
|
|
+ LEFT JOIN cooperator_info ON cooperator_info.cooperator_num = report_info.coop_business_num
|
|
|
+ LEFT JOIN prd_product ON prd_product.product_num = report_info.product_num
|
|
|
+ WHERE
|
|
|
+ report_info.status = 3;
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="queryBusinessInfoByNum" resultType="com.kexun.entity.BusinessInfo">
|
|
|
+ SELECT DISTINCT
|
|
|
+ report_info.business_num,
|
|
|
+ report_info.customer_name,
|
|
|
+ report_info.create_time,
|
|
|
+ report_info.certificate_num,
|
|
|
+ report_info.coop_business_num,
|
|
|
+ report_info.product_num,
|
|
|
+ cooperator_info.cooperator_name,
|
|
|
+ prd_product.product_name
|
|
|
+ FROM
|
|
|
+ report_info
|
|
|
+ LEFT JOIN cooperator_info ON cooperator_info.cooperator_num = report_info.coop_business_num
|
|
|
+ LEFT JOIN prd_product ON prd_product.product_num = report_info.product_num
|
|
|
+ WHERE
|
|
|
+ report_info.business_num = #{businessNum};
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+</mapper>
|