From e423d56d730db1baed24f3f7dbbc4141038776b6 Mon Sep 17 00:00:00 2001
From: 935090232@qq.com <ak473600000>
Date: Fri, 18 Jun 2021 22:12:03 +0800
Subject: [PATCH] 修复每日业绩bug和优化赠送业绩计算方式
---
zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopProductDao.xml | 38 +++++++++++++++++++-------------------
1 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopProductDao.xml b/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopProductDao.xml
index 405abca..91c105d 100644
--- a/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopProductDao.xml
+++ b/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopProductDao.xml
@@ -42,7 +42,7 @@
<result property="couponId" column="couponId"></result>
<result property="serviceTime" column="service_time"></result>
<result property="companyId" column="company_id"/>
- <result property="mallType" column="mall_type"/>
+ <result property="ableScorePay" column="able_score_pay"/>
<result property="ableSales" column="able_sales"/>
<result property="scoreCategoryId" column="score_category_id"/>
@@ -84,7 +84,7 @@
<result property="couponId" column="couponId"></result>
<result property="serviceTime" column="service_time"></result>
<result property="companyId" column="company_id"/>
- <result property="mallType" column="mall_type"/>
+ <result property="ableScorePay" column="able_score_pay"/>
<result property="ableSales" column="able_sales"/>
<result property="scoreCategoryId" column="score_category_id"/>
</resultMap>
@@ -121,7 +121,7 @@
service_time,
shop_ids,
company_id,
- mall_type,
+ able_score_pay,
able_sales,
score_category_id
@@ -160,7 +160,7 @@
#{item.serviceTime},
#{item.shopIds},
#{item.companyId},
- #{item.mallType},
+ #{item.ableScorePay},
#{item.ableSales},
#{item.scoreCategoryId}
@@ -252,8 +252,8 @@
and a.company_id = #{record.companyId}
</if>
- <if test="record.mallType != null and record.mallType !='' ">
- and a.mall_type = #{record.mallType}
+ <if test="record.ableScorePay != null and record.ableScorePay !='' ">
+ and a.able_score_pay = #{record.ableScorePay}
</if>
<if test="record.ableSales != null and record.ableSales !='' ">
and a.able_sales = #{record.ableSales}
@@ -336,8 +336,8 @@
and b.attr_full_path like concat('%/',#{record.attrs},'/%')
</if>
- <if test="record.mallType != null and record.mallType !='' ">
- and a.mall_type = #{record.mallType}
+ <if test="record.ableScorePay != null and record.ableScorePay !='' ">
+ and a.able_score_pay = #{record.ableScorePay}
</if>
<if test="record.ableSales != null and record.ableSales !='' ">
and a.able_sales = #{record.ableSales}
@@ -459,8 +459,8 @@
<if test="_parameter.containsKey('ableSales')">
able_sales = #{ableSales},
</if>
- <if test="_parameter.containsKey('mallType')">
- mall_type = #{mallType},
+ <if test="_parameter.containsKey('ableScorePay')">
+ able_score_pay = #{ableScorePay},
</if>
@@ -545,8 +545,8 @@
shop_ids = #{record.shopIds},
</if>
- <if test="record.mallType != null and record.mallType !='' ">
- mall_type = #{record.mallType},
+ <if test="record.ableScorePay != null and record.ableScorePay !='' ">
+ able_score_pay = #{record.ableScorePay},
</if>
<if test="record.ableSales != null and record.ableSales !='' ">
able_sales = #{record.ableSales},
@@ -642,7 +642,7 @@
a.marked_price,
b.attr_full_path,
a.couponId,
- a.mall_type,
+ a.able_score_pay,
a.able_sales,
a.score_category_id,
(SELECT ROUND(SUM(ss.stock),2) from shop_sku ss where ss.p_id = a.id) as stockNum,
@@ -685,7 +685,7 @@
a.marked_price,
a.service_time,
a.couponId,
- a.mall_type,
+ a.able_score_pay,
a.able_sales,
a.score_category_id,
(SELECT ROUND(SUM(ss.stock),2) from shop_sku ss where ss.p_id = a.id) as stockNum
@@ -725,7 +725,7 @@
a.marked_price,
b.attr_full_path,
a.couponId,
- a.mall_type,
+ a.able_score_pay,
a.able_sales,
a.score_category_id,
a.service_time,
@@ -793,7 +793,7 @@
b.attr_full_path,
a.service_time,
a.couponId,
- a.mall_type,
+ a.able_score_pay,
a.able_sales,
a.score_category_id,
(SELECT ROUND(SUM(s.stock),2) from shop_sku s where s.p_id = a.id) as stockNum,
@@ -838,8 +838,8 @@
and find_in_set(#{record.shopIds}, a.shop_ids)
</if>
- <if test="record.mallType != null and record.mallType !='' ">
- and a.mall_type = #{record.mallType}
+ <if test="record.ableScorePay != null and record.ableScorePay !='' ">
+ and a.able_score_pay = #{record.ableScorePay}
</if>
<if test="record.ableSales != null and record.ableSales !='' ">
and a.able_sales = #{record.ableSales}
@@ -906,7 +906,7 @@
is_special_price,
marked_price,
couponId,
- a.mall_type,
+ a.able_score_pay,
a.able_sales,
a.score_category_id,
(SELECT SUM(s.stock) from shop_sku s where s.p_id = a.id) as stockNum,
--
Gitblit v1.9.1