|
|
@ -6,11 +6,14 @@ import com.xit.biz.ctgy.dto.GnRecallScDto;
|
|
|
|
import com.xit.biz.ctgy.dto.JudgeListDto;
|
|
|
|
import com.xit.biz.ctgy.dto.JudgeListDto;
|
|
|
|
import com.xit.biz.ctgy.dto.JudgeStdDto;
|
|
|
|
import com.xit.biz.ctgy.dto.JudgeStdDto;
|
|
|
|
import com.xit.biz.ctgy.dto.JudgeTargetDto;
|
|
|
|
import com.xit.biz.ctgy.dto.JudgeTargetDto;
|
|
|
|
|
|
|
|
import com.xit.biz.ctgy.dto.struct.GnRecallScMapstruct;
|
|
|
|
import com.xit.biz.ctgy.entity.GnRecallSc;
|
|
|
|
import com.xit.biz.ctgy.entity.GnRecallSc;
|
|
|
|
import com.xit.biz.ctgy.entity.MinInfoBoard680;
|
|
|
|
import com.xit.biz.ctgy.entity.MinInfoBoard680;
|
|
|
|
import com.xit.biz.ctgy.entity.MinSimsaUser680Sc;
|
|
|
|
import com.xit.biz.ctgy.entity.MinSimsaUser680Sc;
|
|
|
|
import com.xit.biz.ctgy.entity.MinUserinfo;
|
|
|
|
import com.xit.biz.ctgy.entity.MinUserinfo;
|
|
|
|
import com.xit.biz.ctgy.mapper.IParkingMapper;
|
|
|
|
import com.xit.biz.ctgy.mapper.IParkingMapper;
|
|
|
|
|
|
|
|
import com.xit.biz.ctgy.mapper.IResidentAndDisabledMapper;
|
|
|
|
|
|
|
|
import com.xit.biz.ctgy.repository.*;
|
|
|
|
import com.xit.biz.ctgy.service.IPublicBoardService;
|
|
|
|
import com.xit.biz.ctgy.service.IPublicBoardService;
|
|
|
|
import com.xit.biz.ctgy.v2.service.IResidentAndDisabledService;
|
|
|
|
import com.xit.biz.ctgy.v2.service.IResidentAndDisabledService;
|
|
|
|
import com.xit.core.constant.ErrorCode;
|
|
|
|
import com.xit.core.constant.ErrorCode;
|
|
|
@ -54,6 +57,16 @@ public class ResidentAndDisabledService implements IResidentAndDisabledService {
|
|
|
|
@Value("${file.cmm.upload.simsaPath:[simUpFile_sc1]}")
|
|
|
|
@Value("${file.cmm.upload.simsaPath:[simUpFile_sc1]}")
|
|
|
|
private String[] uploadPath;
|
|
|
|
private String[] uploadPath;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final GnRecallScMapstruct mapstruct = Mappers.getMapper(GnRecallScMapstruct.class);
|
|
|
|
|
|
|
|
private final IResidentAndDisabledRepository gnReacallRepository;
|
|
|
|
|
|
|
|
private final IMinUserRepository userRepository;
|
|
|
|
|
|
|
|
private final IJudgeUserRepository judgeUserRepository;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final IJudgeRepository judgeRepository;
|
|
|
|
|
|
|
|
private final IResidentAndDisabledMapper residentAndDisabledMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final IParkingRepository parkingRepository;
|
|
|
|
|
|
|
|
|
|
|
|
private final ICmmFileService fileService;
|
|
|
|
private final ICmmFileService fileService;
|
|
|
|
private final IPublicBoardService pBoardService;
|
|
|
|
private final IPublicBoardService pBoardService;
|
|
|
|
private final IParkingMapper parkingMapper;
|
|
|
|
private final IParkingMapper parkingMapper;
|
|
|
@ -68,323 +81,323 @@ public class ResidentAndDisabledService implements IResidentAndDisabledService {
|
|
|
|
public Page<GnRecallScDto> findJudgeDatas(@NotNull final String scDatagb, Pageable pageable) {
|
|
|
|
public Page<GnRecallScDto> findJudgeDatas(@NotNull final String scDatagb, Pageable pageable) {
|
|
|
|
// Sort sort = Sort.by(Sort.Direction.DESC, "inCode");
|
|
|
|
// Sort sort = Sort.by(Sort.Direction.DESC, "inCode");
|
|
|
|
pageable = JpaUtil.getPagingInfo(pageable);
|
|
|
|
pageable = JpaUtil.getPagingInfo(pageable);
|
|
|
|
return null;
|
|
|
|
return gnReacallRepository.findJudgeDatas(
|
|
|
|
// return gnReacallRepository.findJudgeDatas(
|
|
|
|
scDatagb,
|
|
|
|
// scDatagb,
|
|
|
|
PageRequest.of(pageable.getPageNumber(), pageable.getPageSize(), Sort.by("scCode").descending()));
|
|
|
|
// PageRequest.of(pageable.getPageNumber(), pageable.getPageSize(), Sort.by("scCode").descending()));
|
|
|
|
// List<CmmUser> userList = page.getContent();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
@Transactional(readOnly = true)
|
|
|
|
|
|
|
|
public GnRecallScDto findJudgeData(final Long scCode) {
|
|
|
|
|
|
|
|
return gnReacallRepository.findJudgeData(scCode);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
@Transactional
|
|
|
|
|
|
|
|
public void saveJudgeData(GnRecallScDto dto) {
|
|
|
|
|
|
|
|
boolean isNew = Checks.isEmpty(dto.getScCode()) || dto.getScCode() == 0L;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(dto.getPicadFiles() != null) {
|
|
|
|
|
|
|
|
if(!isNew) changeFileUpload(dto, dto.getPicadFiles());
|
|
|
|
|
|
|
|
else setFileInfoAndFileUpload(dto, dto.getPicadFiles(), "setScPicad");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(dto.getFrecadFiles() != null) {
|
|
|
|
|
|
|
|
if(!isNew) changeFileUpload(dto, dto.getFrecadFiles());
|
|
|
|
|
|
|
|
else setFileInfoAndFileUpload(dto, dto.getFrecadFiles(), "setScFrecad");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(dto.getContadFiles() != null) {
|
|
|
|
|
|
|
|
if(!isNew) changeFileUpload(dto, dto.getContadFiles());
|
|
|
|
|
|
|
|
else setFileInfoAndFileUpload(dto, dto.getContadFiles(), "setScContad");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GnRecallSc entity = null;
|
|
|
|
|
|
|
|
// 신규
|
|
|
|
|
|
|
|
if (isNew) {
|
|
|
|
|
|
|
|
// 접수번호 채번 : 년도 + seq 10자리
|
|
|
|
|
|
|
|
dto.setScSeq(gnReacallRepository.getGnRecallScMaxScSeq(String.valueOf(DateUtil.getCurrentYear()), CtgyConstants.Judge.DATAGB_RESIDENT.getCode()));
|
|
|
|
|
|
|
|
entity = mapstruct.toEntity(dto);
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
entity = mapstruct.toEntity(dto);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
gnReacallRepository.save(entity);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
@Transactional
|
|
|
|
|
|
|
|
public void removeJudgeData(final Long scCode){
|
|
|
|
|
|
|
|
gnReacallRepository.deleteById(scCode);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
@Transactional(readOnly = true)
|
|
|
|
|
|
|
|
public List<JudgeTargetDto> findJudgeTargets(JudgeTargetDto dto) {
|
|
|
|
|
|
|
|
return gnReacallRepository.findJudgeTargets(dto);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
@Transactional
|
|
|
|
|
|
|
|
public void saveJudgeTargets(JudgeTargetDto dto) {
|
|
|
|
|
|
|
|
boolean isFirst = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for(Long scCode : dto.getScCodes()) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
|
|
|
// 심사대상 등록
|
|
|
|
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
|
|
|
dto.setScCode(scCode);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isFirst) {
|
|
|
|
|
|
|
|
dto.setMsYear(dto.getMsSdate().toString().substring(0, 4));
|
|
|
|
|
|
|
|
dto.setMsResult("0");
|
|
|
|
|
|
|
|
isFirst = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(residentAndDisabledMapper.insertJudgeTargetIntoSelect(dto) == 0) throw new CustomBaseException(String.format("처리된 데이타가 있습니다[ %s ]", dto.getScCarnum()));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
|
|
|
// 등록한 심사대상 데이타 등록 상태 변경 : 미접수 -> 접수, 심의결과 : 접수 -> 심사중
|
|
|
|
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
|
|
|
GnRecallSc entity = gnReacallRepository.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);
|
|
|
|
|
|
|
|
gnReacallRepository.save(entity);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
|
|
|
// 심사자 등록
|
|
|
|
|
|
|
|
//---------------------------------------------------------
|
|
|
|
|
|
|
|
List<MinUserinfo> userinfoList = userRepository.findAllByTeamAndIsenableAndAccesstype(
|
|
|
|
|
|
|
|
dto.getMsuTeam(),
|
|
|
|
|
|
|
|
CtgyConstants.UserInfo.ISENABLED_USE.getCode(),
|
|
|
|
|
|
|
|
CtgyConstants.UserInfo.ACCESSTYPE_SIMSA.getCode());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<MinSimsaUser680Sc> simsaUserList = userinfoList.stream().map(u ->
|
|
|
|
|
|
|
|
MinSimsaUser680Sc.builder()
|
|
|
|
|
|
|
|
.msuMaincode(scCode)
|
|
|
|
|
|
|
|
.msuUserid(u.getUserid())
|
|
|
|
|
|
|
|
.msuResult(CtgyConstants.SimsaUserInfo.MSU_RESULT_NONE.getCode())
|
|
|
|
|
|
|
|
//.msuReason()
|
|
|
|
|
|
|
|
.msuTeam(dto.getMsuTeam())
|
|
|
|
|
|
|
|
//.msuIndate()
|
|
|
|
|
|
|
|
.build()
|
|
|
|
|
|
|
|
).collect(Collectors.toList());
|
|
|
|
|
|
|
|
judgeUserRepository.saveAll(simsaUserList);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
@Transactional(readOnly = true)
|
|
|
|
|
|
|
|
public Page<JudgeListDto> findJudges(JudgeListDto dto, Pageable pageable) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pageable = JpaUtil.getPagingInfo(pageable);
|
|
|
|
|
|
|
|
return gnReacallRepository.findJudges(dto, pageable);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// @Override
|
|
|
|
@Override
|
|
|
|
// @Transactional(readOnly = true)
|
|
|
|
@Transactional(readOnly = true)
|
|
|
|
// public GnRecallScDto findJudgeData(final Long scCode) {
|
|
|
|
public Map<String,Object> findJudgeResults(JudgeListDto dto) {
|
|
|
|
// return gnReacallRepository.findJudgeData(scCode);
|
|
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
// team && 팀별 부과현황 조회 : 팀이 선택되지 않은 경우 모두
|
|
|
|
// @Override
|
|
|
|
// Map<String, Object> teamMap = residentAndDisabledMapper.selectTotJudgeResultGroupByTeamAndChasu(dto);
|
|
|
|
// @Transactional
|
|
|
|
// if (Checks.isEmpty(teamMap)) throw new CustomBaseException(ErrorCode.DATA_NOT_FOUND);
|
|
|
|
// public void saveJudgeData(GnRecallScDto dto) {
|
|
|
|
|
|
|
|
// boolean isNew = Checks.isEmpty(dto.getScCode()) || dto.getScCode() == 0L;
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// if(dto.getPicadFiles() != null) {
|
|
|
|
|
|
|
|
// if(!isNew) changeFileUpload(dto, dto.getPicadFiles());
|
|
|
|
|
|
|
|
// else setFileInfoAndFileUpload(dto, dto.getPicadFiles(), "setScPicad");
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// if(dto.getFrecadFiles() != null) {
|
|
|
|
|
|
|
|
// if(!isNew) changeFileUpload(dto, dto.getFrecadFiles());
|
|
|
|
|
|
|
|
// else setFileInfoAndFileUpload(dto, dto.getFrecadFiles(), "setScFrecad");
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// if(dto.getContadFiles() != null) {
|
|
|
|
|
|
|
|
// if(!isNew) changeFileUpload(dto, dto.getContadFiles());
|
|
|
|
|
|
|
|
// else setFileInfoAndFileUpload(dto, dto.getContadFiles(), "setScContad");
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// GnRecallSc entity = null;
|
|
|
|
|
|
|
|
// // 신규
|
|
|
|
|
|
|
|
// if (isNew) {
|
|
|
|
|
|
|
|
// // 접수번호 채번 : 년도 + seq 10자리
|
|
|
|
|
|
|
|
// dto.setScSeq(gnReacallRepository.getGnRecallScMaxScSeq(String.valueOf(DateUtil.getCurrentYear()), CtgyConstants.Judge.DATAGB_RESIDENT.getCode()));
|
|
|
|
|
|
|
|
// entity = mapstruct.toEntity(dto);
|
|
|
|
|
|
|
|
// }else{
|
|
|
|
|
|
|
|
// entity = mapstruct.toEntity(dto);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// gnReacallRepository.save(entity);
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// @Override
|
|
|
|
|
|
|
|
// @Transactional
|
|
|
|
|
|
|
|
// public void removeJudgeData(final Long scCode){
|
|
|
|
|
|
|
|
// gnReacallRepository.deleteById(scCode);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// @Override
|
|
|
|
|
|
|
|
// @Transactional(readOnly = true)
|
|
|
|
|
|
|
|
// public List<JudgeTargetDto> findJudgeTargets(JudgeTargetDto dto) {
|
|
|
|
|
|
|
|
// return gnReacallRepository.findJudgeTargets(dto);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// @Override
|
|
|
|
|
|
|
|
// @Transactional
|
|
|
|
|
|
|
|
// public void saveJudgeTargets(JudgeTargetDto dto) {
|
|
|
|
|
|
|
|
// boolean isFirst = true;
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// for(Long scCode : dto.getScCodes()) {
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// //---------------------------------------------------------
|
|
|
|
|
|
|
|
// // 심사대상 등록
|
|
|
|
|
|
|
|
// //---------------------------------------------------------
|
|
|
|
|
|
|
|
// dto.setScCode(scCode);
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// if (isFirst) {
|
|
|
|
|
|
|
|
// dto.setMsYear(dto.getMsSdate().toString().substring(0, 4));
|
|
|
|
|
|
|
|
// dto.setMsResult("0");
|
|
|
|
|
|
|
|
// isFirst = false;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if(residentAndDisabledMapper.insertJudgeTargetIntoSelect(dto) == 0) throw new CustomBaseException(String.format("처리된 데이타가 있습니다[ %s ]", dto.getScCarnum()));
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// //---------------------------------------------------------
|
|
|
|
|
|
|
|
// // 등록한 심사대상 데이타 등록 상태 변경 : 미접수 -> 접수, 심의결과 : 접수 -> 심사중
|
|
|
|
|
|
|
|
// //---------------------------------------------------------
|
|
|
|
|
|
|
|
// GnRecallSc entity = gnReacallRepository.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);
|
|
|
|
|
|
|
|
// gnReacallRepository.save(entity);
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// //---------------------------------------------------------
|
|
|
|
|
|
|
|
// // 심사자 등록
|
|
|
|
|
|
|
|
// //---------------------------------------------------------
|
|
|
|
|
|
|
|
// List<MinUserinfo> userinfoList = userRepository.findAllByTeamAndIsenableAndAccesstype(
|
|
|
|
|
|
|
|
// dto.getMsuTeam(),
|
|
|
|
|
|
|
|
// CtgyConstants.UserInfo.ISENABLED_USE.getCode(),
|
|
|
|
|
|
|
|
// CtgyConstants.UserInfo.ACCESSTYPE_SIMSA.getCode());
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// List<MinSimsaUser680Sc> simsaUserList = userinfoList.stream().map(u ->
|
|
|
|
|
|
|
|
// MinSimsaUser680Sc.builder()
|
|
|
|
|
|
|
|
// .msuMaincode(scCode)
|
|
|
|
|
|
|
|
// .msuUserid(u.getUserid())
|
|
|
|
|
|
|
|
// .msuResult(CtgyConstants.SimsaUserInfo.MSU_RESULT_NONE.getCode())
|
|
|
|
|
|
|
|
// //.msuReason()
|
|
|
|
|
|
|
|
// .msuTeam(dto.getMsuTeam())
|
|
|
|
|
|
|
|
// //.msuIndate()
|
|
|
|
|
|
|
|
// .build()
|
|
|
|
|
|
|
|
// ).collect(Collectors.toList());
|
|
|
|
|
|
|
|
// judgeUserRepository.saveAll(simsaUserList);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// @Override
|
|
|
|
|
|
|
|
// @Transactional(readOnly = true)
|
|
|
|
|
|
|
|
// public Page<JudgeListDto> findJudges(JudgeListDto dto, Pageable pageable) {
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// pageable = JpaUtil.getPagingInfo(pageable);
|
|
|
|
|
|
|
|
// return gnReacallRepository.findJudges(dto, pageable);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// @Override
|
|
|
|
|
|
|
|
// @Transactional(readOnly = true)
|
|
|
|
|
|
|
|
// public Map<String,Object> findJudgeResults(JudgeListDto dto) {
|
|
|
|
|
|
|
|
// Map<String, Object> resultMap = new HashMap<>();
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// // team && 팀별 부과현황 조회 : 팀이 선택되지 않은 경우 모두
|
|
|
|
|
|
|
|
//// Map<String, Object> teamMap = residentAndDisabledMapper.selectTotJudgeResultGroupByTeamAndChasu(dto);
|
|
|
|
|
|
|
|
//// if (Checks.isEmpty(teamMap)) throw new CustomBaseException(ErrorCode.DATA_NOT_FOUND);
|
|
|
|
|
|
|
|
//// List<Map<String, Object>> totJudgeUserList = residentAndDisabledMapper.selectTotJudgeResultGroupByUser(dto);
|
|
|
|
|
|
|
|
//// totJudgeUserList.add(teamMap);
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// List<Map<String, Object>> teamList = residentAndDisabledMapper.selectJudgeTeamGroupByChasuAndTeamList(dto);
|
|
|
|
|
|
|
|
// if (Checks.isEmpty(teamList) || teamList.size() == 0) throw new CustomBaseException(ErrorCode.DATA_NOT_FOUND);
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// // 차수별 심사자별 심사결과 합산
|
|
|
|
|
|
|
|
// dto.setMsuTeam(String.valueOf(teamList.get(0).get("msuTeam")));
|
|
|
|
|
|
|
|
// List<Map<String, Object>> totJudgeUserList = residentAndDisabledMapper.selectTotJudgeResultGroupByUser(dto);
|
|
|
|
// List<Map<String, Object>> totJudgeUserList = residentAndDisabledMapper.selectTotJudgeResultGroupByUser(dto);
|
|
|
|
// totJudgeUserList.add(teamList.get(0));
|
|
|
|
// totJudgeUserList.add(teamMap);
|
|
|
|
//
|
|
|
|
|
|
|
|
// // 심사대상 차량 목록
|
|
|
|
List<Map<String, Object>> teamList = residentAndDisabledMapper.selectJudgeTeamGroupByChasuAndTeamList(dto);
|
|
|
|
// List<Map<String,Object>> judgeCarList = residentAndDisabledMapper.selectJudgeResultGroupByCarnum(dto);
|
|
|
|
if (Checks.isEmpty(teamList) || teamList.size() == 0) throw new CustomBaseException(ErrorCode.DATA_NOT_FOUND);
|
|
|
|
//
|
|
|
|
|
|
|
|
// // 차량별 심사자 심사결과 목록
|
|
|
|
// 차수별 심사자별 심사결과 합산
|
|
|
|
// Map<String, Object> paramMap = new HashMap<>();
|
|
|
|
dto.setMsuTeam(String.valueOf(teamList.get(0).get("msuTeam")));
|
|
|
|
// paramMap.put("msDatagb", dto.getMsDatagb());
|
|
|
|
List<Map<String, Object>> totJudgeUserList = residentAndDisabledMapper.selectTotJudgeResultGroupByUser(dto);
|
|
|
|
// paramMap.put("msChasu", dto.getMsChasu());
|
|
|
|
totJudgeUserList.add(teamList.get(0));
|
|
|
|
// paramMap.put("msSdate", dto.getMsSdate());
|
|
|
|
|
|
|
|
// paramMap.put("msEdate", dto.getMsEdate());
|
|
|
|
// 심사대상 차량 목록
|
|
|
|
// paramMap.put("msuTeam", dto.getMsuTeam());
|
|
|
|
List<Map<String,Object>> judgeCarList = residentAndDisabledMapper.selectJudgeResultGroupByCarnum(dto);
|
|
|
|
//
|
|
|
|
|
|
|
|
// paramMap.put("seqList", judgeCarList.stream().map(m -> m.get("msSeq")).collect(Collectors.toList()));
|
|
|
|
// 차량별 심사자 심사결과 목록
|
|
|
|
// paramMap.put("carnumList", judgeCarList.stream().map(m -> m.get("msCarnum")).collect(Collectors.toList()));
|
|
|
|
Map<String, Object> paramMap = new HashMap<>();
|
|
|
|
// List<Map<String,Object>> jurgeUserList = residentAndDisabledMapper.selectJudgeResultList(paramMap);
|
|
|
|
paramMap.put("msDatagb", dto.getMsDatagb());
|
|
|
|
//
|
|
|
|
paramMap.put("msChasu", dto.getMsChasu());
|
|
|
|
//// List<Map<String,Object>> resultList = judgeCarList.stream().peek((m) -> {
|
|
|
|
paramMap.put("msSdate", dto.getMsSdate());
|
|
|
|
//// paramMap.put("msSeq", m.get("msSeq"));
|
|
|
|
paramMap.put("msEdate", dto.getMsEdate());
|
|
|
|
//// paramMap.put("msCarnum", m.get("msCarnum"));
|
|
|
|
paramMap.put("msuTeam", dto.getMsuTeam());
|
|
|
|
//// m.put("simsa", residentAndDisabledMapper.selectJudgeResultList(paramMap));
|
|
|
|
|
|
|
|
//// }).collect(Collectors.toList());
|
|
|
|
paramMap.put("seqList", judgeCarList.stream().map(m -> m.get("msSeq")).collect(Collectors.toList()));
|
|
|
|
//
|
|
|
|
paramMap.put("carnumList", judgeCarList.stream().map(m -> m.get("msCarnum")).collect(Collectors.toList()));
|
|
|
|
//
|
|
|
|
List<Map<String,Object>> jurgeUserList = residentAndDisabledMapper.selectJudgeResultList(paramMap);
|
|
|
|
// resultMap.put("teamList", teamList);
|
|
|
|
|
|
|
|
// // 차수별 심사자별 심사결과 합산
|
|
|
|
// List<Map<String,Object>> resultList = judgeCarList.stream().peek((m) -> {
|
|
|
|
// resultMap.put("totJudgeUserData", totJudgeUserList);
|
|
|
|
// paramMap.put("msSeq", m.get("msSeq"));
|
|
|
|
// // 심사대상 차량 목록
|
|
|
|
// paramMap.put("msCarnum", m.get("msCarnum"));
|
|
|
|
// resultMap.put("judgeCarData", judgeCarList);
|
|
|
|
// m.put("simsa", residentAndDisabledMapper.selectJudgeResultList(paramMap));
|
|
|
|
// // 차량별 심사자 심사결과 목록
|
|
|
|
// }).collect(Collectors.toList());
|
|
|
|
// resultMap.put("judgeUserData", jurgeUserList);
|
|
|
|
|
|
|
|
// return resultMap;
|
|
|
|
|
|
|
|
// }
|
|
|
|
resultMap.put("teamList", teamList);
|
|
|
|
//
|
|
|
|
// 차수별 심사자별 심사결과 합산
|
|
|
|
// @Override
|
|
|
|
resultMap.put("totJudgeUserData", totJudgeUserList);
|
|
|
|
// @Transactional(readOnly = true)
|
|
|
|
// 심사대상 차량 목록
|
|
|
|
// public Map<String,Object> findJudgeResults2(JudgeListDto dto) {
|
|
|
|
resultMap.put("judgeCarData", judgeCarList);
|
|
|
|
// Map<String, Object> resultMap = new HashMap<>();
|
|
|
|
// 차량별 심사자 심사결과 목록
|
|
|
|
//
|
|
|
|
resultMap.put("judgeUserData", jurgeUserList);
|
|
|
|
// // team && 팀별 부과현황 조회 : 팀이 선택되지 않은 경우 모두
|
|
|
|
return resultMap;
|
|
|
|
//// Map<String, Object> teamMap = residentAndDisabledMapper.selectTotJudgeResultGroupByTeamAndChasu(dto);
|
|
|
|
}
|
|
|
|
//// if (Checks.isEmpty(teamMap)) throw new CustomBaseException(ErrorCode.DATA_NOT_FOUND);
|
|
|
|
|
|
|
|
//// List<Map<String, Object>> totJudgeUserList = residentAndDisabledMapper.selectTotJudgeResultGroupByUser(dto);
|
|
|
|
@Override
|
|
|
|
//// totJudgeUserList.add(teamMap);
|
|
|
|
@Transactional(readOnly = true)
|
|
|
|
//
|
|
|
|
public Map<String,Object> findJudgeResults2(JudgeListDto dto) {
|
|
|
|
// List<Map<String, Object>> teamList = residentAndDisabledMapper.selectJudgeTeamGroupByChasuAndTeamList(dto);
|
|
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
|
|
// if (Checks.isEmpty(teamList) || teamList.size() == 0) throw new CustomBaseException(ErrorCode.DATA_NOT_FOUND);
|
|
|
|
|
|
|
|
//
|
|
|
|
// team && 팀별 부과현황 조회 : 팀이 선택되지 않은 경우 모두
|
|
|
|
// // 차수별 심사자별 심사결과 합산
|
|
|
|
// Map<String, Object> teamMap = residentAndDisabledMapper.selectTotJudgeResultGroupByTeamAndChasu(dto);
|
|
|
|
// dto.setMsuTeam(String.valueOf(teamList.get(0).get("msuTeam")));
|
|
|
|
// if (Checks.isEmpty(teamMap)) throw new CustomBaseException(ErrorCode.DATA_NOT_FOUND);
|
|
|
|
// List<Map<String, Object>> totJudgeUserList = residentAndDisabledMapper.selectTotJudgeResultGroupByUser(dto);
|
|
|
|
// List<Map<String, Object>> totJudgeUserList = residentAndDisabledMapper.selectTotJudgeResultGroupByUser(dto);
|
|
|
|
// totJudgeUserList.add(teamList.get(0));
|
|
|
|
// totJudgeUserList.add(teamMap);
|
|
|
|
//
|
|
|
|
|
|
|
|
// // 심사대상 차량 목록
|
|
|
|
List<Map<String, Object>> teamList = residentAndDisabledMapper.selectJudgeTeamGroupByChasuAndTeamList(dto);
|
|
|
|
// List<Map<String,Object>> judgeCarList = residentAndDisabledMapper.selectJudgeResultGroupByCarnum(dto);
|
|
|
|
if (Checks.isEmpty(teamList) || teamList.size() == 0) throw new CustomBaseException(ErrorCode.DATA_NOT_FOUND);
|
|
|
|
//
|
|
|
|
|
|
|
|
// // 차량별 심사자 심사결과 목록
|
|
|
|
// 차수별 심사자별 심사결과 합산
|
|
|
|
// Map<String, Object> paramMap = new HashMap<>();
|
|
|
|
dto.setMsuTeam(String.valueOf(teamList.get(0).get("msuTeam")));
|
|
|
|
// paramMap.put("msDatagb", dto.getMsDatagb());
|
|
|
|
List<Map<String, Object>> totJudgeUserList = residentAndDisabledMapper.selectTotJudgeResultGroupByUser(dto);
|
|
|
|
// paramMap.put("msChasu", dto.getMsChasu());
|
|
|
|
totJudgeUserList.add(teamList.get(0));
|
|
|
|
// paramMap.put("msSdate", dto.getMsSdate());
|
|
|
|
|
|
|
|
// paramMap.put("msEdate", dto.getMsEdate());
|
|
|
|
// 심사대상 차량 목록
|
|
|
|
// paramMap.put("msuTeam", dto.getMsuTeam());
|
|
|
|
List<Map<String,Object>> judgeCarList = residentAndDisabledMapper.selectJudgeResultGroupByCarnum(dto);
|
|
|
|
//
|
|
|
|
|
|
|
|
// paramMap.put("seqList", judgeCarList.stream().map(m -> m.get("msSeq")).collect(Collectors.toList()));
|
|
|
|
// 차량별 심사자 심사결과 목록
|
|
|
|
// paramMap.put("carnumList", judgeCarList.stream().map(m -> m.get("msCarnum")).collect(Collectors.toList()));
|
|
|
|
Map<String, Object> paramMap = new HashMap<>();
|
|
|
|
// List<Map<String,Object>> jurgeUserList = residentAndDisabledMapper.selectJudgeResultList(paramMap);
|
|
|
|
paramMap.put("msDatagb", dto.getMsDatagb());
|
|
|
|
//
|
|
|
|
paramMap.put("msChasu", dto.getMsChasu());
|
|
|
|
//// List<Map<String,Object>> resultList = judgeCarList.stream().peek((m) -> {
|
|
|
|
paramMap.put("msSdate", dto.getMsSdate());
|
|
|
|
//// paramMap.put("msSeq", m.get("msSeq"));
|
|
|
|
paramMap.put("msEdate", dto.getMsEdate());
|
|
|
|
//// paramMap.put("msCarnum", m.get("msCarnum"));
|
|
|
|
paramMap.put("msuTeam", dto.getMsuTeam());
|
|
|
|
//// m.put("simsa", residentAndDisabledMapper.selectJudgeResultList(paramMap));
|
|
|
|
|
|
|
|
//// }).collect(Collectors.toList());
|
|
|
|
paramMap.put("seqList", judgeCarList.stream().map(m -> m.get("msSeq")).collect(Collectors.toList()));
|
|
|
|
//
|
|
|
|
paramMap.put("carnumList", judgeCarList.stream().map(m -> m.get("msCarnum")).collect(Collectors.toList()));
|
|
|
|
//
|
|
|
|
List<Map<String,Object>> jurgeUserList = residentAndDisabledMapper.selectJudgeResultList(paramMap);
|
|
|
|
// resultMap.put("teamList", teamList);
|
|
|
|
|
|
|
|
// // 차수별 심사자별 심사결과 합산
|
|
|
|
// List<Map<String,Object>> resultList = judgeCarList.stream().peek((m) -> {
|
|
|
|
// resultMap.put("totJudgeUserData", totJudgeUserList);
|
|
|
|
// paramMap.put("msSeq", m.get("msSeq"));
|
|
|
|
// // 심사대상 차량 목록
|
|
|
|
// paramMap.put("msCarnum", m.get("msCarnum"));
|
|
|
|
// resultMap.put("judgeCarData", judgeCarList);
|
|
|
|
// m.put("simsa", residentAndDisabledMapper.selectJudgeResultList(paramMap));
|
|
|
|
// // 차량별 심사자 심사결과 목록
|
|
|
|
// }).collect(Collectors.toList());
|
|
|
|
// resultMap.put("judgeUserData", jurgeUserList);
|
|
|
|
|
|
|
|
// return resultMap;
|
|
|
|
|
|
|
|
// }
|
|
|
|
resultMap.put("teamList", teamList);
|
|
|
|
//
|
|
|
|
// 차수별 심사자별 심사결과 합산
|
|
|
|
// /**
|
|
|
|
resultMap.put("totJudgeUserData", totJudgeUserList);
|
|
|
|
// * 심사자료 삭제
|
|
|
|
// 심사대상 차량 목록
|
|
|
|
// * 1. 삭제 대상 조회 : min_simsa680_sc 테이블 : ms_datagb, ms_chasu, ms_sdate, ms_edate 조건으로 ms_maincode 삭제 대상 조회
|
|
|
|
resultMap.put("judgeCarData", judgeCarList);
|
|
|
|
// * 2. 심사자 삭제 : min_simsa_user680_sc 테이블 : msu_maincode = ms_maincode
|
|
|
|
// 차량별 심사자 심사결과 목록
|
|
|
|
// * 3. 단속데이타 정보 변경 : gn_recall_sc 테이블 : sc_transfer = '1', sc_state = '1', sc_code = ms_maincode
|
|
|
|
resultMap.put("judgeUserData", jurgeUserList);
|
|
|
|
// * 4. 심사자료 삭제 : min_simsa680_sc 테이블 ms_maincode = ms_maincode
|
|
|
|
return resultMap;
|
|
|
|
// * @param dto ParkingTargetDto
|
|
|
|
}
|
|
|
|
// */
|
|
|
|
|
|
|
|
// @Override
|
|
|
|
/**
|
|
|
|
// @Transactional
|
|
|
|
* 심사자료 삭제
|
|
|
|
// public void removeJudge(final JudgeListDto dto) {
|
|
|
|
* 1. 삭제 대상 조회 : min_simsa680_sc 테이블 : ms_datagb, ms_chasu, ms_sdate, ms_edate 조건으로 ms_maincode 삭제 대상 조회
|
|
|
|
//
|
|
|
|
* 2. 심사자 삭제 : min_simsa_user680_sc 테이블 : msu_maincode = ms_maincode
|
|
|
|
// List<Long> msMaincodes = judgeRepository.findAllMsMaincode(dto.getMsDatagb(), dto.getMsChasu(), dto.getMsSdate(), dto.getMsEdate());
|
|
|
|
* 3. 단속데이타 정보 변경 : gn_recall_sc 테이블 : sc_transfer = '1', sc_state = '1', sc_code = ms_maincode
|
|
|
|
//
|
|
|
|
* 4. 심사자료 삭제 : min_simsa680_sc 테이블 ms_maincode = ms_maincode
|
|
|
|
// msMaincodes.forEach(msMaincode -> {
|
|
|
|
* @param dto ParkingTargetDto
|
|
|
|
// //List<MinSimsaUser680Sc> judgeUsers = judgeUserRepository.findByMsuMaincode()
|
|
|
|
*/
|
|
|
|
// judgeUserRepository.deleteByMsuMaincode(msMaincode);
|
|
|
|
@Override
|
|
|
|
// // 전송상태 -> 미접수(1), 심의결과 -> 접수(1)
|
|
|
|
@Transactional
|
|
|
|
// gnReacallRepository.updateScTransferAndScState(dto.getMsDatagb(), msMaincode);
|
|
|
|
public void removeJudge(final JudgeListDto dto) {
|
|
|
|
// judgeRepository.deleteById(msMaincode);
|
|
|
|
|
|
|
|
// });
|
|
|
|
List<Long> msMaincodes = judgeRepository.findAllMsMaincode(dto.getMsDatagb(), dto.getMsChasu(), dto.getMsSdate(), dto.getMsEdate());
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
msMaincodes.forEach(msMaincode -> {
|
|
|
|
// @Override
|
|
|
|
//List<MinSimsaUser680Sc> judgeUsers = judgeUserRepository.findByMsuMaincode()
|
|
|
|
// @Transactional
|
|
|
|
judgeUserRepository.deleteByMsuMaincode(msMaincode);
|
|
|
|
// public void saveJudgeStds(final JudgeStdDto dto) {
|
|
|
|
// 전송상태 -> 미접수(1), 심의결과 -> 접수(1)
|
|
|
|
// int stdCnt = dto.getJudgeStdCnt();
|
|
|
|
gnReacallRepository.updateScTransferAndScState(dto.getMsDatagb(), msMaincode);
|
|
|
|
//
|
|
|
|
judgeRepository.deleteById(msMaincode);
|
|
|
|
// dto.getJudgeDataKeys().forEach(map -> {
|
|
|
|
});
|
|
|
|
// int cnt = 0;
|
|
|
|
}
|
|
|
|
// Long msMaincode = Long.valueOf(map.get("msMaincode").toString());
|
|
|
|
|
|
|
|
// String msSeq = map.get("msSeq").toString();
|
|
|
|
@Override
|
|
|
|
//
|
|
|
|
@Transactional
|
|
|
|
// // 미부과
|
|
|
|
public void saveJudgeStds(final JudgeStdDto dto) {
|
|
|
|
// String msResult = CtgyConstants.Judge.RESULT_JUDGE_NON_IMPOSE.getCode();
|
|
|
|
int stdCnt = dto.getJudgeStdCnt();
|
|
|
|
// // 주정차 심사
|
|
|
|
|
|
|
|
// if (Checks.isEmpty(dto.getDataGb())) {
|
|
|
|
dto.getJudgeDataKeys().forEach(map -> {
|
|
|
|
// cnt = parkingRepository.getJudgeStdCnt(msMaincode);
|
|
|
|
int cnt = 0;
|
|
|
|
// if(cnt >= stdCnt) msResult = CtgyConstants.Judge.RESULT_JUDGE_IMPOSE.getCode();
|
|
|
|
Long msMaincode = Long.valueOf(map.get("msMaincode").toString());
|
|
|
|
//
|
|
|
|
String msSeq = map.get("msSeq").toString();
|
|
|
|
// parkingRepository.updateMsResult(msMaincode, msSeq, msResult);
|
|
|
|
|
|
|
|
//
|
|
|
|
// 미부과
|
|
|
|
// // 거주자 장애인 심사
|
|
|
|
String msResult = CtgyConstants.Judge.RESULT_JUDGE_NON_IMPOSE.getCode();
|
|
|
|
// } else {
|
|
|
|
// 주정차 심사
|
|
|
|
// cnt = gnReacallRepository.getJudgeStdCnt(msMaincode);
|
|
|
|
if (Checks.isEmpty(dto.getDataGb())) {
|
|
|
|
// if(cnt >= stdCnt) msResult = CtgyConstants.Judge.RESULT_JUDGE_IMPOSE.getCode();
|
|
|
|
cnt = parkingRepository.getJudgeStdCnt(msMaincode);
|
|
|
|
//
|
|
|
|
if(cnt >= stdCnt) msResult = CtgyConstants.Judge.RESULT_JUDGE_IMPOSE.getCode();
|
|
|
|
// judgeRepository.updateMsResult(msMaincode, msSeq, msResult);
|
|
|
|
|
|
|
|
// }
|
|
|
|
parkingRepository.updateMsResult(msMaincode, msSeq, msResult);
|
|
|
|
// });
|
|
|
|
|
|
|
|
// }
|
|
|
|
// 거주자 장애인 심사
|
|
|
|
//
|
|
|
|
} else {
|
|
|
|
// @Transactional(readOnly = true)
|
|
|
|
cnt = gnReacallRepository.getJudgeStdCnt(msMaincode);
|
|
|
|
// public Map<String,Object> findDashboard(){
|
|
|
|
if(cnt >= stdCnt) msResult = CtgyConstants.Judge.RESULT_JUDGE_IMPOSE.getCode();
|
|
|
|
// Map<String, Object> resultMap = new HashMap<>();
|
|
|
|
|
|
|
|
// resultMap.put("pBoardList", pBoardService.findAll(MinInfoBoard680.builder().build(), PageRequest.of(0, 7)));
|
|
|
|
judgeRepository.updateMsResult(msMaincode, msSeq, msResult);
|
|
|
|
// resultMap.put("parkJudgeList", parkingMapper.selectDashboardJudgeList());
|
|
|
|
}
|
|
|
|
// resultMap.put("residentJudgeList", residentAndDisabledMapper.selectDashboardJudgeList(CtgyConstants.Judge.DATAGB_RESIDENT.getCode()));
|
|
|
|
});
|
|
|
|
// resultMap.put("disabledJudgeList", residentAndDisabledMapper.selectDashboardJudgeList(CtgyConstants.Judge.DATAGB_DISABLED.getCode()));
|
|
|
|
}
|
|
|
|
//
|
|
|
|
|
|
|
|
// return resultMap;
|
|
|
|
@Transactional(readOnly = true)
|
|
|
|
// }
|
|
|
|
public Map<String,Object> findDashboard(){
|
|
|
|
//
|
|
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
|
|
// private void setFileInfoAndFileUpload(GnRecallScDto dto, MultipartFile[] mfs, String setMethodName) {
|
|
|
|
resultMap.put("pBoardList", pBoardService.findAll(MinInfoBoard680.builder().build(), PageRequest.of(0, 7)));
|
|
|
|
// String makePath = fileService.uploadFiles(mfs, rootPath, CtgyConstants.Judge.DATAGB_RESIDENT.getCode().equals(dto.getScDatagb())? uploadPath[0] : uploadPath[1]);
|
|
|
|
resultMap.put("parkJudgeList", parkingMapper.selectDashboardJudgeList());
|
|
|
|
// //makePath = makePath + File.separator;
|
|
|
|
resultMap.put("residentJudgeList", residentAndDisabledMapper.selectDashboardJudgeList(CtgyConstants.Judge.DATAGB_RESIDENT.getCode()));
|
|
|
|
//
|
|
|
|
resultMap.put("disabledJudgeList", residentAndDisabledMapper.selectDashboardJudgeList(CtgyConstants.Judge.DATAGB_DISABLED.getCode()));
|
|
|
|
// for(int idx = 0; idx < mfs.length; idx++){
|
|
|
|
|
|
|
|
// MultipartFile mf = mfs[idx];
|
|
|
|
return resultMap;
|
|
|
|
// try {
|
|
|
|
}
|
|
|
|
// Method method = GnRecallScDto.class.getMethod(setMethodName + (idx+1), String.class);
|
|
|
|
|
|
|
|
// method.invoke(dto, StringUtils.cleanPath(makePath + mf.getOriginalFilename()));
|
|
|
|
private void setFileInfoAndFileUpload(GnRecallScDto dto, MultipartFile[] mfs, String setMethodName) {
|
|
|
|
// //method.invoke(dto, StringUtils.cleanPath(makePath + mf.getOriginalFilename()));
|
|
|
|
String makePath = fileService.uploadFiles(mfs, rootPath, CtgyConstants.Judge.DATAGB_RESIDENT.getCode().equals(dto.getScDatagb())? uploadPath[0] : uploadPath[1]);
|
|
|
|
// } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
|
|
|
|
//makePath = makePath + File.separator;
|
|
|
|
// e.printStackTrace();
|
|
|
|
|
|
|
|
// }
|
|
|
|
for(int idx = 0; idx < mfs.length; idx++){
|
|
|
|
// }
|
|
|
|
MultipartFile mf = mfs[idx];
|
|
|
|
// }
|
|
|
|
try {
|
|
|
|
//
|
|
|
|
Method method = GnRecallScDto.class.getMethod(setMethodName + (idx+1), String.class);
|
|
|
|
// private void changeFileUpload(GnRecallScDto dto, MultipartFile[] mfs) {
|
|
|
|
method.invoke(dto, StringUtils.cleanPath(makePath + mf.getOriginalFilename()));
|
|
|
|
// fileService.uploadFiles(mfs, rootPath, CtgyConstants.Judge.DATAGB_RESIDENT.getCode().equals(dto.getScDatagb())? uploadPath[0] : uploadPath[1]);
|
|
|
|
//method.invoke(dto, StringUtils.cleanPath(makePath + mf.getOriginalFilename()));
|
|
|
|
// }
|
|
|
|
} catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
|
|
|
|
//
|
|
|
|
e.printStackTrace();
|
|
|
|
//
|
|
|
|
}
|
|
|
|
// //---------------------------------------------------------------------------------
|
|
|
|
}
|
|
|
|
// // 심사자
|
|
|
|
}
|
|
|
|
// //---------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// @Override
|
|
|
|
private void changeFileUpload(GnRecallScDto dto, MultipartFile[] mfs) {
|
|
|
|
// @Transactional(readOnly = true)
|
|
|
|
fileService.uploadFiles(mfs, rootPath, CtgyConstants.Judge.DATAGB_RESIDENT.getCode().equals(dto.getScDatagb())? uploadPath[0] : uploadPath[1]);
|
|
|
|
// public List<JudgeListDto> findByUserJudges(JudgeListDto dto) {
|
|
|
|
}
|
|
|
|
// return gnReacallRepository.findByUserJudges(dto);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
//---------------------------------------------------------------------------------
|
|
|
|
// @Override
|
|
|
|
// 심사자
|
|
|
|
// @Transactional
|
|
|
|
//---------------------------------------------------------------------------------
|
|
|
|
// public void saveJudgeResult(JudgeListDto dto){
|
|
|
|
@Override
|
|
|
|
// judgeUserRepository.updateMsuResonAndMsuResultByMsuCode(dto.getMsuCode(),
|
|
|
|
@Transactional(readOnly = true)
|
|
|
|
// dto.getMsuResult(),
|
|
|
|
public List<JudgeListDto> findByUserJudges(JudgeListDto dto) {
|
|
|
|
// dto.getMsuReason(),
|
|
|
|
return gnReacallRepository.findByUserJudges(dto);
|
|
|
|
// LocalDate.parse(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))));
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
@Transactional
|
|
|
|
|
|
|
|
public void saveJudgeResult(JudgeListDto dto){
|
|
|
|
|
|
|
|
judgeUserRepository.updateMsuResonAndMsuResultByMsuCode(dto.getMsuCode(),
|
|
|
|
|
|
|
|
dto.getMsuResult(),
|
|
|
|
|
|
|
|
dto.getMsuReason(),
|
|
|
|
|
|
|
|
LocalDate.parse(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd"))));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|