|
|
|
@ -14,6 +14,8 @@ import com.xit.biz.ctgy.repository.IJudgeUserRepository;
|
|
|
|
|
import com.xit.biz.ctgy.repository.IMinUserRepository;
|
|
|
|
|
import com.xit.biz.ctgy.repository.IResidentAndDisabledRepository;
|
|
|
|
|
import com.xit.biz.ctgy.service.IResidentAndDisabledService;
|
|
|
|
|
import com.xit.core.constant.ErrorCode;
|
|
|
|
|
import com.xit.core.exception.CustomBaseException;
|
|
|
|
|
import com.xit.core.support.jpa.JpaUtil;
|
|
|
|
|
import com.xit.core.util.DateUtil;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
@ -130,6 +132,10 @@ public class ResidentAndDisabledService implements IResidentAndDisabledService {
|
|
|
|
|
boolean isFirst = true;
|
|
|
|
|
|
|
|
|
|
for(Long scCode : dto.getScCodes()) {
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
// 심사대상 등록
|
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
dto.setScCode(scCode);
|
|
|
|
|
|
|
|
|
|
if (isFirst) {
|
|
|
|
@ -137,16 +143,19 @@ public class ResidentAndDisabledService implements IResidentAndDisabledService {
|
|
|
|
|
dto.setMsResult("0");
|
|
|
|
|
isFirst = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 심사대상 등록
|
|
|
|
|
mapper.insertJudgeTargetIntoSelect(dto);
|
|
|
|
|
|
|
|
|
|
// // 등록된 심사대상 데이타 등록 상태 변경 : 미접수 -> 접수
|
|
|
|
|
// Tf680Recall recallEntity = recallRepository.findById(dto.getRcCode()).orElseGet(Tf680Recall::new);
|
|
|
|
|
// recallEntity.setRcIrTransfer(CtgyConstants.Judge.TRANSFER_ACCEPT.getCode());
|
|
|
|
|
// JpaUtil.saveIfNullId(recallEntity.getRcCode(), recallRepository, recallEntity);
|
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
// 등록한 심사대상 데이타 등록 상태 변경 : 미접수 -> 접수
|
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
GnRecallSc entity = repository.findById(dto.getScCode()).orElseThrow(() -> new CustomBaseException(ErrorCode.DATA_NOT_FOUND));
|
|
|
|
|
entity.setScTransfer(CtgyConstants.Judge.TRANSFER_ACCEPT.getCode());
|
|
|
|
|
//entity.setScState(CtgyConstants.Judge.DATA_STATE_JUDGE.getCode());
|
|
|
|
|
JpaUtil.saveIfNullId(dto.getScCode(), repository, entity);
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
// 심사자 등록
|
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
List<MinUserinfo> userinfoList = userRepository.findAllByTeamAndIsenableAndAccesstype(
|
|
|
|
|
dto.getMsuTeam(),
|
|
|
|
|
CtgyConstants.UserInfo.ISENABLED_USE.getCode(),
|
|
|
|
@ -163,7 +172,6 @@ public class ResidentAndDisabledService implements IResidentAndDisabledService {
|
|
|
|
|
.build()
|
|
|
|
|
).collect(Collectors.toList());
|
|
|
|
|
judgeUserRepository.saveAll(simsaUserList);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|