提交代码

yy_dev
胡锐 1 year ago
commit f81fc16dc4
  1. 2
      cweb/src/main/java/com/cweb/controller/BsMerLedgerController.java
  2. 3
      service/src/main/java/com/hfkj/channel/saas/SaasMerService.java
  3. 1
      service/src/main/java/com/hfkj/service/impl/BsMerServiceImpl.java

@ -1,5 +1,6 @@
package com.cweb.controller; package com.cweb.controller;
import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.hfkj.common.exception.ErrorCode; import com.hfkj.common.exception.ErrorCode;
@ -51,6 +52,7 @@ public class BsMerLedgerController {
@ApiOperation(value = "商户分账功能申请") @ApiOperation(value = "商户分账功能申请")
public ResponseData merLedgerApply(@RequestBody BsMerLedger body) { public ResponseData merLedgerApply(@RequestBody BsMerLedger body) {
try { try {
System.out.println("请求参数:" + JSONObject.toJSONString(body));
if (body.getMerId() == null || body.getPlatformType() == null) { if (body.getMerId() == null || body.getPlatformType() == null) {
log.error("BsDeviceOrderPayController -> payOrder error!","参数校验失败"); log.error("BsDeviceOrderPayController -> payOrder error!","参数校验失败");
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, "");

@ -191,6 +191,9 @@ public class SaasMerService {
feesMap = new HashMap<>(); feesMap = new HashMap<>();
feesMap.put("feeCode", rate.getRateSaasTypeCode()); feesMap.put("feeCode", rate.getRateSaasTypeCode());
feesMap.put("feeValue", rate.getRatePct()); feesMap.put("feeValue", rate.getRatePct());
if (StringUtils.isNotBlank(rate.getExt1())) {
feesMap.put("topFee", rate.getExt1());
}
feesMapList.add(feesMap); feesMapList.add(feesMap);
} }
bizContent.put("fees", feesMapList); bizContent.put("fees", feesMapList);

@ -243,6 +243,7 @@ public class BsMerServiceImpl implements BsMerService {
SecDictionary platformNoRate = commonService.mappingSysCode("MER_PLATFORM_NO_RATE", merRate.getRateTypeCode().toString()); SecDictionary platformNoRate = commonService.mappingSysCode("MER_PLATFORM_NO_RATE", merRate.getRateTypeCode().toString());
merRate.setRateTypeName(platformNoRate.getCodeName()); merRate.setRateTypeName(platformNoRate.getCodeName());
merRate.setRateSaasTypeCode(platformNoRate.getExt2()); merRate.setRateSaasTypeCode(platformNoRate.getExt2());
merRate.setExt1(platformNoRate.getExt3());
merRateService.editMerRate(merRate); merRateService.editMerRate(merRate);
} }
} }

Loading…
Cancel
Save