|
|
@ -14,6 +14,8 @@ import com.xit.biz.ctgy.repository.IJudgeUserRepository;
|
|
|
|
import com.xit.biz.ctgy.repository.IMinUserRepository;
|
|
|
|
import com.xit.biz.ctgy.repository.IMinUserRepository;
|
|
|
|
import com.xit.biz.ctgy.repository.IResidentAndDisabledRepository;
|
|
|
|
import com.xit.biz.ctgy.repository.IResidentAndDisabledRepository;
|
|
|
|
import com.xit.biz.ctgy.service.IResidentAndDisabledService;
|
|
|
|
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.support.jpa.JpaUtil;
|
|
|
|
import com.xit.core.util.DateUtil;
|
|
|
|
import com.xit.core.util.DateUtil;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
@ -130,6 +132,10 @@ public class ResidentAndDisabledService implements IResidentAndDisabledService {
|
|
|
|
boolean isFirst = true;
|
|
|
|
boolean isFirst = true;
|
|
|
|
|
|
|
|
|
|
|
|
for(Long scCode : dto.getScCodes()) {
|
|
|
|
for(Long scCode : dto.getScCodes()) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
|
|
|
// 심사대상 등록
|
|
|
|
|
|
|
|
//---------------------------------------------------------
|
|
|
|
dto.setScCode(scCode);
|
|
|
|
dto.setScCode(scCode);
|
|
|
|
|
|
|
|
|
|
|
|
if (isFirst) {
|
|
|
|
if (isFirst) {
|
|
|
@ -137,16 +143,19 @@ public class ResidentAndDisabledService implements IResidentAndDisabledService {
|
|
|
|
dto.setMsResult("0");
|
|
|
|
dto.setMsResult("0");
|
|
|
|
isFirst = false;
|
|
|
|
isFirst = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 심사대상 등록
|
|
|
|
|
|
|
|
mapper.insertJudgeTargetIntoSelect(dto);
|
|
|
|
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(
|
|
|
|
List<MinUserinfo> userinfoList = userRepository.findAllByTeamAndIsenableAndAccesstype(
|
|
|
|
dto.getMsuTeam(),
|
|
|
|
dto.getMsuTeam(),
|
|
|
|
CtgyConstants.UserInfo.ISENABLED_USE.getCode(),
|
|
|
|
CtgyConstants.UserInfo.ISENABLED_USE.getCode(),
|
|
|
@ -163,7 +172,6 @@ public class ResidentAndDisabledService implements IResidentAndDisabledService {
|
|
|
|
.build()
|
|
|
|
.build()
|
|
|
|
).collect(Collectors.toList());
|
|
|
|
).collect(Collectors.toList());
|
|
|
|
judgeUserRepository.saveAll(simsaUserList);
|
|
|
|
judgeUserRepository.saveAll(simsaUserList);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|