Commit b777b22b by 叶立庆

Merge branch 'v5.8.2.4' into 'master'

上线合并

See merge request !11
2 parents 81801610 07f5f414
......@@ -228,9 +228,9 @@
resultType="cn.com.glsx.dj.peanalysis.dto.analysis.StrategyOrderStatisticsRespDTO">
select
count(distinct t1.order_code) orderCount,
sum(ifnull(t1.total_price, 0)) totalPrice,
sum(ifnull(t1.final_price, 0)) finalPrice,
sum(ifnull(t1.total_price, 0) - ifnull(t1.final_price, 0)) as discountPrice
sum(ifnull(t2.total_price, 0)) totalPrice,
sum(ifnull(t2.final_price, 0)) finalPrice,
sum(ifnull(t2.total_price, 0) - ifnull(t2.final_price, 0)) as discountPrice
from dj_car_life_goods_order t1
inner join dj_car_life_goods_sub_order t2 on t1.order_code = t2.order_code
where t1.deleted_flag = 'N' and t2.deleted_flag = 'N' and t1.status = '4'
......@@ -248,7 +248,7 @@
and ((t2.upgrade_goods_type = #{goodsTypeExtendedInsurance}) or
(t2.supplier_code = #{supplierThirdPartyId} and t2.upgrade_goods_type = #{goodsTypeEquityType}))
</when>
<when test="'3'.toString().equals(status)">
<when test="'3'.toString().equals(businessType)">
and ((t2.supplier_code = #{supplierGlzyId} and t2.upgrade_goods_type = #{goodsTypeEquityType}))
</when>
</choose>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!