|
|
|
@@ -155,7 +155,7 @@ public class WxThirdPartyOrdersServiceImpl implements WxThirdPartyOrdersService |
|
|
|
creditHistory.setMerchantId(record.getMerchantId()); |
|
|
|
creditHistory.setCreditType(EnumScoreType.CONSUMPTION.getCode()); |
|
|
|
creditHistory.setSpend(record.getPayAmount()); |
|
|
|
creditHistory.setChangePurpose("第三方消费:消费商户["+record.getShopName()+"] ("+record.getPayAmountStr()+"元) "); |
|
|
|
creditHistory.setChangePurpose(record.getSourceAppName()+"消费:商户["+record.getShopName()+"] ("+record.getPayAmountStr()+"元) "); |
|
|
|
creditHistory = wxCreditHistoryService.saveOrUpdate(creditHistory,record.getTenantId()); |
|
|
|
Integer creditNum = 0; |
|
|
|
if (creditHistory.getCreditNum() != null) { |
|
|
|
@@ -229,6 +229,8 @@ public class WxThirdPartyOrdersServiceImpl implements WxThirdPartyOrdersService |
|
|
|
record.setCreateTime(now); |
|
|
|
record.setUpdateTime(now); |
|
|
|
|
|
|
|
record.setSourceType(EnumThirdOrderType.RMB_PAY.getCode()); |
|
|
|
|
|
|
|
record.setShopName(order.getShopName()); |
|
|
|
record.setShopNumber(order.getShopNumber()); |
|
|
|
record.setUserPhone(order.getUserPhone()); |
|
|
|
@@ -269,7 +271,7 @@ public class WxThirdPartyOrdersServiceImpl implements WxThirdPartyOrdersService |
|
|
|
|
|
|
|
creditHistory.setCreditNum(points); |
|
|
|
creditHistory.setSpend(0-record.getRefundAmount()); |
|
|
|
creditHistory.setChangePurpose("第三方消费退款:商户["+record.getShopName()+"] ("+record.getRefundAmountStr()+"元) "); |
|
|
|
creditHistory.setChangePurpose(record.getSourceAppName()+"消费退款:商户["+record.getShopName()+"] ("+record.getRefundAmountStr()+"元) "); |
|
|
|
creditHistory = wxCreditHistoryService.saveOrUpdate(creditHistory,record.getTenantId()); |
|
|
|
Integer creditNum = 0; |
|
|
|
if (creditHistory.getCreditNum() != null) { |
|
|
|
@@ -359,7 +361,7 @@ public class WxThirdPartyOrdersServiceImpl implements WxThirdPartyOrdersService |
|
|
|
wxCreditHistory.setOperatorType(EnumUserType.THIRD_CIRCLE.getCode()); |
|
|
|
wxCreditHistory.setCreditNum(record.getAmount()); |
|
|
|
wxCreditHistory.setCreditType(EnumScoreType.CHANGE_CREDIT.getCode()); |
|
|
|
wxCreditHistory.setChangePurpose("第三方积分抵扣{}"+record.getSummary()); |
|
|
|
wxCreditHistory.setChangePurpose(record.getSourceAppName()+"积分抵扣{}"+record.getSummary()); |
|
|
|
wxCreditHistory.setCouponId(record.getId()); |
|
|
|
wxCreditHistoryService.saveOrUpdate(wxCreditHistory,record.getTenantId()); |
|
|
|
|
|
|
|
|