|
@@ -6,8 +6,6 @@
|
|
|
<resultMap id="BaseResultMap" type="com.fire.dto.CustomerProduct">
|
|
|
<id column="customer_product_id" property="customerProductId"/>
|
|
|
<result column="customer_id" property="customerId"/>
|
|
|
- <result column="product_id" property="productId"/>
|
|
|
- <result column="product_id" property="productId"/>
|
|
|
<result column="package_id" property="packageId"/>
|
|
|
<result column="type" property="type"/>
|
|
|
<result column="price" property="price"/>
|
|
@@ -18,11 +16,8 @@
|
|
|
|
|
|
<resultMap id="ResultMap" type="com.fire.admin.vo.CustomerProductInfoVo">
|
|
|
<result column="customer_id" property="customerId"/>
|
|
|
- <result column="product_id" property="productId"/>
|
|
|
<result column="package_id" property="packageId"/>
|
|
|
- <result column="product_code" property="productCode"/>
|
|
|
<result column="product_name" property="productName"/>
|
|
|
- <result column="product_desc" property="productDesc"/>
|
|
|
<result column="type" property="type"/>
|
|
|
<result column="price" property="price"/>
|
|
|
<result column="face_price" property="facePrice"/>
|
|
@@ -33,11 +28,8 @@
|
|
|
|
|
|
<sql id="selectCustomerProductByCustomerId" >
|
|
|
cp.customer_id,
|
|
|
- p.product_id,
|
|
|
p.package_id,
|
|
|
- p.product_code,
|
|
|
p.product_name,
|
|
|
- p.product_desc,
|
|
|
cp.type,
|
|
|
cp.price,
|
|
|
cp.face_price,
|
|
@@ -51,7 +43,7 @@
|
|
|
<include refid="selectCustomerProductByCustomerId"/>
|
|
|
FROM
|
|
|
flow_product_info AS p
|
|
|
- LEFT JOIN customer_product cp ON p.product_id = cp.product_id
|
|
|
+ LEFT JOIN customer_product cp ON p.package_id = cp.package_id
|
|
|
<where>
|
|
|
<if test="type !=null and type !=''">
|
|
|
AND cp.type=#{type}
|