|
|
@ -256,18 +256,21 @@ public class Merchant { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
BsMerPlatformNo merPlatform = merPlatformNoService.getPlatformNo(mer.getId(), PlatformTypeEnum.type1); |
|
|
|
BsMerPlatformNo merPlatform = merPlatformNoService.getPlatformNo(mer.getId(), PlatformTypeEnum.type1); |
|
|
|
BsMerLedger merLedger = new BsMerLedger(); |
|
|
|
|
|
|
|
merLedger.setMerId(mer.getId()); |
|
|
|
|
|
|
|
merLedger.setMerName(mer.getMerName()); |
|
|
|
|
|
|
|
merLedger.setPlatformType(merPlatform.getPlatformType()); |
|
|
|
|
|
|
|
merLedger.setPlatformNo(merPlatform.getPlatformNo()); |
|
|
|
|
|
|
|
merLedger.setCupNo(merPlatform.getCupNo()); |
|
|
|
|
|
|
|
merLedger.setStatus(MerLedgerStatusEnum.status2.getNumber()); |
|
|
|
|
|
|
|
merLedger.setReceiverStatus(false); |
|
|
|
|
|
|
|
merLedgerService.editMerLedger(merLedger); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
laKaLaLedgerService.applyLedgerReceiver(merLedger.getMerId()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BsMerLedger merLedger = merLedgerService.getMerLedger(mer.getId(), PlatformTypeEnum.type1); |
|
|
|
|
|
|
|
if (merLedger == null) { |
|
|
|
|
|
|
|
merLedger = new BsMerLedger(); |
|
|
|
|
|
|
|
merLedger.setMerId(mer.getId()); |
|
|
|
|
|
|
|
merLedger.setMerName(mer.getMerName()); |
|
|
|
|
|
|
|
merLedger.setPlatformType(merPlatform.getPlatformType()); |
|
|
|
|
|
|
|
merLedger.setPlatformNo(merPlatform.getPlatformNo()); |
|
|
|
|
|
|
|
merLedger.setCupNo(merPlatform.getCupNo()); |
|
|
|
|
|
|
|
merLedger.setStatus(MerLedgerStatusEnum.status2.getNumber()); |
|
|
|
|
|
|
|
merLedger.setReceiverStatus(false); |
|
|
|
|
|
|
|
merLedgerService.editMerLedger(merLedger); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
laKaLaLedgerService.applyLedgerReceiver(merLedger.getMerId()); |
|
|
|
|
|
|
|
} |
|
|
|
} else if (customer.getString("customerStatus").equals("REJECT")) { |
|
|
|
} else if (customer.getString("customerStatus").equals("REJECT")) { |
|
|
|
contractRecord.setStatus(3); |
|
|
|
contractRecord.setStatus(3); |
|
|
|
merContractRecordService.updateRecord(contractRecord); |
|
|
|
merContractRecordService.updateRecord(contractRecord); |
|
|
@ -312,7 +315,6 @@ public class Merchant { |
|
|
|
if (settle != null) { |
|
|
|
if (settle != null) { |
|
|
|
settle.setStatus(0); |
|
|
|
settle.setStatus(0); |
|
|
|
merSettleAcctService.editMerSettleAcct(settle); |
|
|
|
merSettleAcctService.editMerSettleAcct(settle); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
BsMerSettleAcct newSettle = new BsMerSettleAcct(); |
|
|
|
BsMerSettleAcct newSettle = new BsMerSettleAcct(); |
|
|
|