|
|
@ -46,6 +46,8 @@ public class LaKaLaLedgerService { |
|
|
|
private BsMerAttachService merAttachService; |
|
|
|
private BsMerAttachService merAttachService; |
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private BsMerPlatformNoService merPlatformNoService; |
|
|
|
private BsMerPlatformNoService merPlatformNoService; |
|
|
|
|
|
|
|
@Resource |
|
|
|
|
|
|
|
private CommonService commonService; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 商户分账业务开通申请 |
|
|
|
* 商户分账业务开通申请 |
|
|
@ -63,7 +65,10 @@ public class LaKaLaLedgerService { |
|
|
|
if (mer == null) { |
|
|
|
if (mer == null) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到商户"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到商户"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
SecDictionary org = commonService.mappingSysCode("ORG_NO", mer.getOrgNo()); |
|
|
|
|
|
|
|
if (org == null) { |
|
|
|
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的机构"); |
|
|
|
|
|
|
|
} |
|
|
|
Map<String, Object> commonParam = new HashMap<>(); |
|
|
|
Map<String, Object> commonParam = new HashMap<>(); |
|
|
|
commonParam.put("reqTime", DateUtil.format(new Date(), "yyyyMMddHHmmss")); |
|
|
|
commonParam.put("reqTime", DateUtil.format(new Date(), "yyyyMMddHHmmss")); |
|
|
|
commonParam.put("version", "1.0.0"); |
|
|
|
commonParam.put("version", "1.0.0"); |
|
|
@ -73,7 +78,7 @@ public class LaKaLaLedgerService { |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("version", "1.0"); |
|
|
|
map.put("version", "1.0"); |
|
|
|
map.put("orderNo", orderNo); |
|
|
|
map.put("orderNo", orderNo); |
|
|
|
map.put("orgCode", mer.getOrgNo()); |
|
|
|
map.put("orgCode", org.getExt1()); |
|
|
|
map.put("merCupNo", merLedger.getCupNo()); |
|
|
|
map.put("merCupNo", merLedger.getCupNo()); |
|
|
|
map.put("contactMobile", mer.getRegPhone()); |
|
|
|
map.put("contactMobile", mer.getRegPhone()); |
|
|
|
map.put("splitLowestRatio", merLedger.getSplitLowestRatio()); |
|
|
|
map.put("splitLowestRatio", merLedger.getSplitLowestRatio()); |
|
|
@ -124,6 +129,11 @@ public class LaKaLaLedgerService { |
|
|
|
if (mer == null) { |
|
|
|
if (mer == null) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到商户"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到商户"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
SecDictionary org = commonService.mappingSysCode("ORG_NO", mer.getOrgNo()); |
|
|
|
|
|
|
|
if (org == null) { |
|
|
|
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的机构"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Map<String, Object> commonParam = new HashMap<>(); |
|
|
|
Map<String, Object> commonParam = new HashMap<>(); |
|
|
|
commonParam.put("reqTime", DateUtil.format(new Date(), "yyyyMMddHHmmss")); |
|
|
|
commonParam.put("reqTime", DateUtil.format(new Date(), "yyyyMMddHHmmss")); |
|
|
|
commonParam.put("version", "1.0.0"); |
|
|
|
commonParam.put("version", "1.0.0"); |
|
|
@ -133,7 +143,7 @@ public class LaKaLaLedgerService { |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("version", "1.0"); |
|
|
|
map.put("version", "1.0"); |
|
|
|
map.put("orderNo", orderNo); |
|
|
|
map.put("orderNo", orderNo); |
|
|
|
map.put("orgCode", mer.getOrgNo()); |
|
|
|
map.put("orgCode", org.getExt1()); |
|
|
|
map.put("receiverNo", merLedger.getReceiverNo()); |
|
|
|
map.put("receiverNo", merLedger.getReceiverNo()); |
|
|
|
map.put("merCupNo", merLedger.getCupNo()); |
|
|
|
map.put("merCupNo", merLedger.getCupNo()); |
|
|
|
map.put("contactMobile", mer.getRegPhone()); |
|
|
|
map.put("contactMobile", mer.getRegPhone()); |
|
|
@ -188,7 +198,10 @@ public class LaKaLaLedgerService { |
|
|
|
if (mer == null) { |
|
|
|
if (mer == null) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到商户"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到商户"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
SecDictionary org = commonService.mappingSysCode("ORG_NO", mer.getOrgNo()); |
|
|
|
|
|
|
|
if (org == null) { |
|
|
|
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的机构"); |
|
|
|
|
|
|
|
} |
|
|
|
Map<String, Object> commonParam = new HashMap<>(); |
|
|
|
Map<String, Object> commonParam = new HashMap<>(); |
|
|
|
commonParam.put("reqTime", DateUtil.format(new Date(), "yyyyMMddHHmmss")); |
|
|
|
commonParam.put("reqTime", DateUtil.format(new Date(), "yyyyMMddHHmmss")); |
|
|
|
commonParam.put("version", "1.0.0"); |
|
|
|
commonParam.put("version", "1.0.0"); |
|
|
@ -198,7 +211,7 @@ public class LaKaLaLedgerService { |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("version", "1.0"); |
|
|
|
map.put("version", "1.0"); |
|
|
|
map.put("orderNo", orderNo); |
|
|
|
map.put("orderNo", orderNo); |
|
|
|
map.put("orgCode", mer.getOrgNo()); |
|
|
|
map.put("orgCode", org.getExt1()); |
|
|
|
map.put("merCupNo", merLedger.getCupNo()); |
|
|
|
map.put("merCupNo", merLedger.getCupNo()); |
|
|
|
map.put("contactMobile", mer.getRegPhone()); |
|
|
|
map.put("contactMobile", mer.getRegPhone()); |
|
|
|
map.put("splitLowestRatio", merLedger.getSplitLowestRatio()); |
|
|
|
map.put("splitLowestRatio", merLedger.getSplitLowestRatio()); |
|
|
@ -254,6 +267,10 @@ public class LaKaLaLedgerService { |
|
|
|
if (mer == null) { |
|
|
|
if (mer == null) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到商户"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到商户"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
SecDictionary org = commonService.mappingSysCode("ORG_NO", mer.getOrgNo()); |
|
|
|
|
|
|
|
if (org == null) { |
|
|
|
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的机构"); |
|
|
|
|
|
|
|
} |
|
|
|
Map<String, Object> commonParam = new HashMap<>(); |
|
|
|
Map<String, Object> commonParam = new HashMap<>(); |
|
|
|
commonParam.put("reqTime", DateUtil.format(new Date(), "yyyyMMddHHmmss")); |
|
|
|
commonParam.put("reqTime", DateUtil.format(new Date(), "yyyyMMddHHmmss")); |
|
|
|
commonParam.put("version", "1.0.0"); |
|
|
|
commonParam.put("version", "1.0.0"); |
|
|
@ -263,7 +280,7 @@ public class LaKaLaLedgerService { |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("version", "1.0"); |
|
|
|
map.put("version", "1.0"); |
|
|
|
map.put("orderNo", orderNo); |
|
|
|
map.put("orderNo", orderNo); |
|
|
|
map.put("orgCode", mer.getOrgNo()); |
|
|
|
map.put("orgCode", org.getExt1()); |
|
|
|
map.put("merCupNo", merCupNo); |
|
|
|
map.put("merCupNo", merCupNo); |
|
|
|
commonParam.put("reqData", map); |
|
|
|
commonParam.put("reqData", map); |
|
|
|
|
|
|
|
|
|
|
@ -292,6 +309,10 @@ public class LaKaLaLedgerService { |
|
|
|
if (merDetail == null) { |
|
|
|
if (merDetail == null) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到商户"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到商户"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
SecDictionary org = commonService.mappingSysCode("ORG_NO", merDetail.getOrgNo()); |
|
|
|
|
|
|
|
if (org == null) { |
|
|
|
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的机构"); |
|
|
|
|
|
|
|
} |
|
|
|
Map<String, Object> commonParam = new HashMap<>(); |
|
|
|
Map<String, Object> commonParam = new HashMap<>(); |
|
|
|
commonParam.put("reqTime", DateUtil.format(new Date(), "yyyyMMddHHmmss")); |
|
|
|
commonParam.put("reqTime", DateUtil.format(new Date(), "yyyyMMddHHmmss")); |
|
|
|
commonParam.put("version", "1.0.0"); |
|
|
|
commonParam.put("version", "1.0.0"); |
|
|
@ -300,7 +321,7 @@ public class LaKaLaLedgerService { |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("version", "1.0"); |
|
|
|
map.put("version", "1.0"); |
|
|
|
map.put("orderNo", System.currentTimeMillis()+""); |
|
|
|
map.put("orderNo", System.currentTimeMillis()+""); |
|
|
|
map.put("orgCode", merDetail.getOrgNo()); |
|
|
|
map.put("orgCode", org.getExt1()); |
|
|
|
map.put("receiverName", merDetail.getMerName()); |
|
|
|
map.put("receiverName", merDetail.getMerName()); |
|
|
|
map.put("contactMobile", merDetail.getRegPhone()); |
|
|
|
map.put("contactMobile", merDetail.getRegPhone()); |
|
|
|
map.put("acctTypeCode", merDetail.getMerSettleAcct().getSettleType().equals(MerSettleType.status1.getNumber())?57:58);// 57:对公 58:对私
|
|
|
|
map.put("acctTypeCode", merDetail.getMerSettleAcct().getSettleType().equals(MerSettleType.status1.getNumber())?57:58);// 57:对公 58:对私
|
|
|
@ -373,6 +394,10 @@ public class LaKaLaLedgerService { |
|
|
|
if (merDetail == null) { |
|
|
|
if (merDetail == null) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到商户"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到商户"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
SecDictionary org = commonService.mappingSysCode("ORG_NO", merDetail.getOrgNo()); |
|
|
|
|
|
|
|
if (org == null) { |
|
|
|
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的机构"); |
|
|
|
|
|
|
|
} |
|
|
|
Map<String, Object> commonParam = new HashMap<>(); |
|
|
|
Map<String, Object> commonParam = new HashMap<>(); |
|
|
|
commonParam.put("reqTime", DateUtil.format(new Date(), "yyyyMMddHHmmss")); |
|
|
|
commonParam.put("reqTime", DateUtil.format(new Date(), "yyyyMMddHHmmss")); |
|
|
|
commonParam.put("version", "1.0.0"); |
|
|
|
commonParam.put("version", "1.0.0"); |
|
|
@ -381,7 +406,7 @@ public class LaKaLaLedgerService { |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("version", "1.0"); |
|
|
|
map.put("version", "1.0"); |
|
|
|
map.put("orderNo", System.currentTimeMillis()+""); |
|
|
|
map.put("orderNo", System.currentTimeMillis()+""); |
|
|
|
map.put("orgCode", merDetail.getOrgNo()); |
|
|
|
map.put("orgCode", org.getExt1()); |
|
|
|
map.put("receiverNo", "1"); |
|
|
|
map.put("receiverNo", "1"); |
|
|
|
map.put("receiverName", merDetail.getMerName()); |
|
|
|
map.put("receiverName", merDetail.getMerName()); |
|
|
|
map.put("contactMobile", merDetail.getRegPhone()); |
|
|
|
map.put("contactMobile", merDetail.getRegPhone()); |
|
|
@ -447,6 +472,10 @@ public class LaKaLaLedgerService { |
|
|
|
if (mer == null) { |
|
|
|
if (mer == null) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到商户"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到商户"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
SecDictionary org = commonService.mappingSysCode("ORG_NO", merDetail.getOrgNo()); |
|
|
|
|
|
|
|
if (org == null) { |
|
|
|
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的机构"); |
|
|
|
|
|
|
|
} |
|
|
|
Map<String, Object> commonParam = new HashMap<>(); |
|
|
|
Map<String, Object> commonParam = new HashMap<>(); |
|
|
|
commonParam.put("reqTime", DateUtil.format(new Date(), "yyyyMMddHHmmss")); |
|
|
|
commonParam.put("reqTime", DateUtil.format(new Date(), "yyyyMMddHHmmss")); |
|
|
|
commonParam.put("version", "1.0.0"); |
|
|
|
commonParam.put("version", "1.0.0"); |
|
|
@ -455,7 +484,7 @@ public class LaKaLaLedgerService { |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("version", "1.0"); |
|
|
|
map.put("version", "1.0"); |
|
|
|
map.put("orderNo", System.currentTimeMillis()+""); |
|
|
|
map.put("orderNo", System.currentTimeMillis()+""); |
|
|
|
map.put("orgCode", mer.getOrgNo()); |
|
|
|
map.put("orgCode", org.getExt1()); |
|
|
|
map.put("merCupNo", merLedgerReceiver.getCupNo()); |
|
|
|
map.put("merCupNo", merLedgerReceiver.getCupNo()); |
|
|
|
map.put("receiverNo", merLedgerReceiver.getReceiverNo()); |
|
|
|
map.put("receiverNo", merLedgerReceiver.getReceiverNo()); |
|
|
|
|
|
|
|
|
|
|
@ -508,6 +537,10 @@ public class LaKaLaLedgerService { |
|
|
|
if (mer == null) { |
|
|
|
if (mer == null) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到商户"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到商户"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
SecDictionary org = commonService.mappingSysCode("ORG_NO", mer.getOrgNo()); |
|
|
|
|
|
|
|
if (org == null) { |
|
|
|
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的机构"); |
|
|
|
|
|
|
|
} |
|
|
|
Map<String, Object> commonParam = new HashMap<>(); |
|
|
|
Map<String, Object> commonParam = new HashMap<>(); |
|
|
|
commonParam.put("reqTime", DateUtil.format(new Date(), "yyyyMMddHHmmss")); |
|
|
|
commonParam.put("reqTime", DateUtil.format(new Date(), "yyyyMMddHHmmss")); |
|
|
|
commonParam.put("version", "1.0.0"); |
|
|
|
commonParam.put("version", "1.0.0"); |
|
|
@ -516,7 +549,7 @@ public class LaKaLaLedgerService { |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
map.put("version", "1.0"); |
|
|
|
map.put("version", "1.0"); |
|
|
|
map.put("orderNo", System.currentTimeMillis()+""); |
|
|
|
map.put("orderNo", System.currentTimeMillis()+""); |
|
|
|
map.put("orgCode", mer.getOrgNo()); |
|
|
|
map.put("orgCode", org.getExt1()); |
|
|
|
map.put("merCupNo", merLedgerReceiver.getCupNo()); |
|
|
|
map.put("merCupNo", merLedgerReceiver.getCupNo()); |
|
|
|
map.put("receiverNo", merLedgerReceiver.getReceiverNo()); |
|
|
|
map.put("receiverNo", merLedgerReceiver.getReceiverNo()); |
|
|
|
String base64ImgUrl = ImageUtils.getBase64ByImgUrl(CommonSysConst.getSysConfig().getObs_url() + merLedgerReceiver.getRelieveEntrustFilePath()); |
|
|
|
String base64ImgUrl = ImageUtils.getBase64ByImgUrl(CommonSysConst.getSysConfig().getObs_url() + merLedgerReceiver.getRelieveEntrustFilePath()); |
|
|
|