Browse Source

//third

release_toaliyun_real
xhxu 3 years ago
parent
commit
7fcf66b76b
2 changed files with 6 additions and 6 deletions
  1. +3
    -3
      mallinkPublicApi/src/main/java/com/iformall/utils/AppTest.java
  2. +3
    -3
      mallinkService/src/main/java/com/iformall/service/impl/WxThirdPartyOrdersServiceImpl.java

+ 3
- 3
mallinkPublicApi/src/main/java/com/iformall/utils/AppTest.java View File

@@ -101,9 +101,9 @@ public class AppTest {
paramMap.put("transactionId",String.valueOf(idWorker.nextId()));//***订单Id
// paramMap.put("userNumber","551612907794915328");//***会员Id546907706202185728
paramMap.put("userPhone","18872592633");//会员手机号
paramMap.put("timeEnd","2022-09-20 16:54:00");//***积分抵扣时间
paramMap.put("amount",-99);//***积分
paramMap.put("summary","加积分");//
paramMap.put("timeEnd","2022-09-20 17:24:00");//***积分抵扣时间
paramMap.put("amount",-10000);//***积分
paramMap.put("summary","再再扣你一万");//

/**
* 参数加密并封装


+ 3
- 3
mallinkService/src/main/java/com/iformall/service/impl/WxThirdPartyOrdersServiceImpl.java View File

@@ -428,7 +428,7 @@ public class WxThirdPartyOrdersServiceImpl implements WxThirdPartyOrdersService
creditHistory.setOperatorType(EnumUserType.THIRD_CIRCLE.getCode());
creditHistory.setCreditNum(record.getPayAmount());
creditHistory.setCreditType(EnumScoreType.CHANGE_CREDIT.getCode());
creditHistory.setChangePurpose(record.getSourceAppName()+"·积分抵扣-"+record.getPayAmount()+"{"+record.getSummary()+"}");
creditHistory.setChangePurpose(record.getSourceAppName()+"·积分抵扣-"+record.getPayAmount()+"("+record.getSummary()+")");
creditHistory.setCouponId(record.getId());
creditHistory = wxCreditHistoryService.saveOrUpdate(creditHistory, record.getTenantId());
Integer creditNum = 0;
@@ -599,9 +599,9 @@ public class WxThirdPartyOrdersServiceImpl implements WxThirdPartyOrdersService
creditHistory.setCreditNum(record.getPayAmount());
creditHistory.setCreditType(EnumScoreType.POINT_CHANGE.getCode());
if(creditHistory.getCreditNum() > 0){
creditHistory.setChangePurpose(record.getSourceAppName()+"·积分新增"+record.getPayAmount()+"{"+record.getSummary()+"}");
creditHistory.setChangePurpose(record.getSourceAppName()+"·积分新增"+record.getPayAmount()+"("+record.getSummary()+")");
}else if(creditHistory.getCreditNum() < 0){
creditHistory.setChangePurpose(record.getSourceAppName()+"·积分扣减-"+record.getPayAmount()+"{"+record.getSummary()+"}");
creditHistory.setChangePurpose(record.getSourceAppName()+"·积分扣减"+record.getPayAmount()+"("+record.getSummary()+")");
}

creditHistory.setCouponId(record.getId());


Loading…
Cancel
Save