Просмотр исходного кода

[分账][修复]:分账接收者数据库字段访问问题

release_toaliyun_real
hupeng 7 лет назад
Родитель
Сommit
ba4ee008ec
2 измененных файлов: 8 добавлений и 3 удалений
  1. +1
    -0
      mallinkService/src/main/java/com/iformall/domain/po/WxProfitSharingReceiver.java
  2. +7
    -3
      mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml

+ 1
- 0
mallinkService/src/main/java/com/iformall/domain/po/WxProfitSharingReceiver.java Просмотреть файл

@@ -81,6 +81,7 @@ public class WxProfitSharingReceiver implements Serializable {
private String parameter; private String parameter;


/*分账金额**/ /*分账金额**/
@Transient
private Integer sharingAmount; private Integer sharingAmount;






+ 7
- 3
mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml Просмотреть файл

@@ -393,7 +393,8 @@
from wx_coupon_merchant cm, from wx_coupon_merchant cm,
(select tco.id as tcoid, (select tco.id as tcoid,
(select count(*) from wx_coupon_merchant tcm (select count(*) from wx_coupon_merchant tcm
where tcm.product_id = tco.coupon_id) as mc
where tcm.product_id = tco.coupon_id
and tcm.status = 0) as mc
from wx_coupon_order tco) com, from wx_coupon_order tco) com,
wx_coupon c, wx_coupon c,
wx_c_user cu, wx_c_user cu,
@@ -429,7 +430,8 @@
from wx_coupon_order co,wx_coupon c,wx_c_user cu,wx_coupon_merchant cm, from wx_coupon_order co,wx_coupon c,wx_c_user cu,wx_coupon_merchant cm,
(select tco.id as tcoid, (select tco.id as tcoid,
(select count(*) from wx_coupon_merchant tcm (select count(*) from wx_coupon_merchant tcm
where tcm.product_id = tco.coupon_id) as mc
where tcm.product_id = tco.coupon_id
and tcm.status = 0) as mc
from wx_coupon_order tco) com from wx_coupon_order tco) com
where com.mc = 1 where com.mc = 1
and com.tcoid = co.id and com.tcoid = co.id
@@ -474,11 +476,13 @@
from wx_coupon_order co,wx_coupon_merchant cm, from wx_coupon_order co,wx_coupon_merchant cm,
(select tco.id as tcoid, (select tco.id as tcoid,
(select count(*) from wx_coupon_merchant tcm (select count(*) from wx_coupon_merchant tcm
where tcm.product_id = tco.coupon_id)
where tcm.product_id = tco.coupon_id and
and tcm.status = 0)
as mc as mc
from wx_coupon_order tco) com from wx_coupon_order tco) com
where com.mc = 1 where com.mc = 1
and com.tcoid = co.id and com.tcoid = co.id
and cm.status = 0
and cm.merchant_id = #{merchantId} and cm.merchant_id = #{merchantId}
and cm.product_id = co.coupon_id and cm.product_id = co.coupon_id
<if test="startDate != null"> <if test="startDate != null">


Загрузка…
Отмена
Сохранить