|
|
@@ -423,25 +423,6 @@ public class HlwPaymentServiceImpl extends ServiceImpl<HlwPaymentMapper, HlwPaym
|
|
|
|
|
|
//服务商信息
|
|
|
HlwSubcontractor hlwSubcontractor = hlwSubcontractorService.getById(hlwPayment.getSubcontractorId());
|
|
|
- /**
|
|
|
- * 生成明细交易序号并保存,用于明细对账单匹配
|
|
|
- */
|
|
|
- for (int i = 0; i < hlwPaymentDetailList.size(); i++) {
|
|
|
- //交易序号
|
|
|
- //为8位纯数字,格式为:00000001、00000002...
|
|
|
- int numLength = 8;
|
|
|
- String trxseq = Stream.iterate(i + 1, item -> item + 1).limit(1)
|
|
|
- .map(item -> String.valueOf(item))
|
|
|
- .map(item -> {
|
|
|
- while (item.length() < numLength) {
|
|
|
- item = "0" + item;
|
|
|
- }
|
|
|
- return item;
|
|
|
- }).iterator().next();
|
|
|
- HlwPaymentDetail hlwPaymentDetail = hlwPaymentDetailList.get(i);
|
|
|
- hlwPaymentDetail.setTrxSeq(trxseq);
|
|
|
- hlwPaymentDetailService.updateById(hlwPaymentDetail);
|
|
|
- }
|
|
|
//银行业务接口(代发工资)
|
|
|
JSONObject jsonObjectBody = PayRsaCommon.NTAGCAPY(hlwPaymentDetailList, totalPaymenStr, hlwSubcontractor);
|
|
|
if (jsonObjectBody != null) {
|
|
|
@@ -712,25 +693,6 @@ public class HlwPaymentServiceImpl extends ServiceImpl<HlwPaymentMapper, HlwPaym
|
|
|
|
|
|
//服务商信息
|
|
|
HlwSubcontractor hlwSubcontractor = hlwSubcontractorService.getById(hlwPayment.getSubcontractorId());
|
|
|
- /**
|
|
|
- * 生成明细交易序号并保存,用于明细对账单匹配
|
|
|
- */
|
|
|
- for (int i = 0; i < hlwPaymentDetailList.size(); i++) {
|
|
|
- //交易序号
|
|
|
- //为8位纯数字,格式为:00000001、00000002...
|
|
|
- int numLength = 8;
|
|
|
- String trxseq = Stream.iterate(i + 1, item -> item + 1).limit(1)
|
|
|
- .map(item -> String.valueOf(item))
|
|
|
- .map(item -> {
|
|
|
- while (item.length() < numLength) {
|
|
|
- item = "0" + item;
|
|
|
- }
|
|
|
- return item;
|
|
|
- }).iterator().next();
|
|
|
- HlwPaymentDetail hlwPaymentDetail = hlwPaymentDetailList.get(i);
|
|
|
- hlwPaymentDetail.setTrxSeq(trxseq);
|
|
|
- hlwPaymentDetailService.updateById(hlwPaymentDetail);
|
|
|
- }
|
|
|
//银行业务接口(代发工资)
|
|
|
JSONObject jsonObjectBody = PayRsaCommon.NTAGCAPY(hlwPaymentDetailList, totalPaymenStr, hlwSubcontractor);
|
|
|
if (jsonObjectBody != null) {
|