fix: 거주자/장애인 자료변경 반영

dev
minuk926 3 years ago
parent 00d313ecdd
commit 88d32ee876

@ -96,9 +96,15 @@ public class ResidentAndDisabledService implements IResidentAndDisabledService {
setFileInfoAndFileUpload(dto, dto.getContadFiles(), "setScContad"); setFileInfoAndFileUpload(dto, dto.getContadFiles(), "setScContad");
} }
GnRecallSc entity = null;
// 신규
if (Checks.isEmpty(dto.getScCode()) || dto.getScCode() == 0L) {
// 접수번호 채번 : 년도 + seq 10자리 // 접수번호 채번 : 년도 + seq 10자리
dto.setScSeq(gnReacallRepository.getGnRecallScMaxScSeq(String.valueOf(DateUtil.getCurrentYear()), CtgyConstants.Judge.DATAGB_RESIDENT.getCode())); dto.setScSeq(gnReacallRepository.getGnRecallScMaxScSeq(String.valueOf(DateUtil.getCurrentYear()), CtgyConstants.Judge.DATAGB_RESIDENT.getCode()));
GnRecallSc entity = mapstruct.toEntity(dto); entity = mapstruct.toEntity(dto);
}else{
entity = mapstruct.toEntity(dto);
}
gnReacallRepository.save(entity); gnReacallRepository.save(entity);
} }

Loading…
Cancel
Save