자동이체 등록없음 수정
This commit is contained in:
@@ -61,7 +61,8 @@ class CreateBankInputController {
|
||||
//TODO 트렌젝션 고려
|
||||
removeBanksPortIn.operate(new RemoveBanksCmd(currentMonthlyInfo.getId(), AuthUtil.getUserSeq(), reqVO.getTransferType()));
|
||||
|
||||
if (!reqVO.getStatus() && reqVO.getBankList() != null && !reqVO.getBankList().isEmpty()) { // 등록없음 처리가 아님.
|
||||
// if (!reqVO.getStatus() && reqVO.getBankList() != null && !reqVO.getBankList().isEmpty()) { // 등록없음 처리가 아님.
|
||||
if (reqVO.getBankList() != null && !reqVO.getBankList().isEmpty()) { // 등록없음 처리가 아님.
|
||||
for (CreateBankInputProductReqVO item : reqVO.getBankList()) {
|
||||
|
||||
UICodeView code = uiCodeViewPortIn.connect(item.getTransferCategoryCode()).orElse(null);
|
||||
@@ -99,16 +100,17 @@ class CreateBankInputController {
|
||||
reqVO.getTransferType().equals("code.bank.input") ? MonthStatus.REGISTERED : currentMonthlyInfo.getBankAutoTransferInputStatus(),
|
||||
reqVO.getTransferType().equals("code.bank.output") ? MonthStatus.REGISTERED : currentMonthlyInfo.getBankAutoTransferOutputStatus()
|
||||
));
|
||||
} else {
|
||||
updateMonthlyInputStatusPortIn.operate(new UpdateMonthlyInputStatusCmd(
|
||||
currentMonthlyInfo.getId(),
|
||||
AuthUtil.getUserSeq(),
|
||||
currentMonthlyInfo.getMonth(),
|
||||
currentMonthlyInfo.getBankAutoTransferInputStatus(),
|
||||
reqVO.getTransferType().equals("code.bank.input") ? MonthStatus.NOTHING : currentMonthlyInfo.getBankAutoTransferInputStatus(),
|
||||
reqVO.getTransferType().equals("code.bank.output") ? MonthStatus.NOTHING : currentMonthlyInfo.getBankAutoTransferOutputStatus()
|
||||
));
|
||||
}
|
||||
// else {
|
||||
// updateMonthlyInputStatusPortIn.operate(new UpdateMonthlyInputStatusCmd(
|
||||
// currentMonthlyInfo.getId(),
|
||||
// AuthUtil.getUserSeq(),
|
||||
// currentMonthlyInfo.getMonth(),
|
||||
// currentMonthlyInfo.getBankAutoTransferInputStatus(),
|
||||
// reqVO.getTransferType().equals("code.bank.input") ? MonthStatus.NOTHING : currentMonthlyInfo.getBankAutoTransferInputStatus(),
|
||||
// reqVO.getTransferType().equals("code.bank.output") ? MonthStatus.NOTHING : currentMonthlyInfo.getBankAutoTransferOutputStatus()
|
||||
// ));
|
||||
// }
|
||||
return ResponseEntity.ok(ApiResponse.success(null));
|
||||
} else {
|
||||
return ResponseEntity.ok(ApiResponse.failure(null));
|
||||
|
||||
@@ -13,7 +13,7 @@ import java.util.List;
|
||||
public class CreateBankInputReqVO {
|
||||
|
||||
|
||||
private Boolean status;
|
||||
// private Boolean status;
|
||||
private Long id;
|
||||
private String transferType;
|
||||
private List<CreateBankInputProductReqVO> bankList;
|
||||
|
||||
Reference in New Issue
Block a user