|
|
@@ -107,7 +107,12 @@ public class WechatMchServiceImpl implements WechatMchService { |
|
|
|
totalAmount = new BigDecimal("0"); |
|
|
|
totalRefundFee = new BigDecimal("0"); |
|
|
|
totalServiceFee = new BigDecimal("0"); |
|
|
|
statisticsVo.setType(amountCategory.getCategory()); |
|
|
|
//替换 |
|
|
|
statisticsVo.setType(formatFeeDescription(amountCategory.getCategory())); |
|
|
|
//设置渠道编号 名称 |
|
|
|
statisticsVo.setAgencyId(amountCategory.getAgencyId()); |
|
|
|
statisticsVo.setAgencyName(amountCategory.getAgencyName()); |
|
|
|
|
|
|
|
// |
|
|
|
final String[] split = amountCategory.getOutTradeNoPrefix().split("[,,]"); |
|
|
|
final boolean channelCondition = amountCategory.getAgencyId().contains("52010188930") || amountCategory.getAgencyId().contains("52010188999"); |
|
|
@@ -212,6 +217,13 @@ public class WechatMchServiceImpl implements WechatMchService { |
|
|
|
return wechatStatisticsVos; |
|
|
|
} |
|
|
|
|
|
|
|
public String formatFeeDescription(String desc) { |
|
|
|
if (desc.equals("其他")) return desc; |
|
|
|
if (desc.contains("服务费")) return "服务费"; |
|
|
|
if (desc.contains("通行费")) return "通行费"; |
|
|
|
return desc; |
|
|
|
} |
|
|
|
|
|
|
|
private boolean verifyOutTradeNo(String[] prefix, String outTradeNo) { |
|
|
|
for (String pre : prefix) { |
|
|
|
if (outTradeNo.startsWith(pre)) { |