|
|
@ -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);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|