57 lines
1.9 KiB
Java
57 lines
1.9 KiB
Java
package kcc.ve.cmm;
|
|
|
|
import java.text.SimpleDateFormat;
|
|
import java.util.Calendar;
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import org.apache.poi.ss.formula.functions.Today;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import egovframework.rte.fdl.cmmn.EgovAbstractServiceImpl;
|
|
import kcc.com.cmm.service.EgovFileMngUtil;
|
|
import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEEduChasiInstrAsgnmService;
|
|
import kcc.ve.instr.tngrVisitEdu.asgnmInfo.service.VEInstrAsgnmVO;
|
|
|
|
@Service("btchVeBatchChasiInstrAsgnm")
|
|
public class VeBatchChasiInstrAsgnm extends EgovAbstractServiceImpl {
|
|
|
|
|
|
private static final Logger LOGGER = LoggerFactory.getLogger(EgovFileMngUtil.class);
|
|
|
|
@Resource(name = "vEEduChasiInstrAsgnmService")
|
|
private VEEduChasiInstrAsgnmService vEEduChasiInstrAsgnmService;
|
|
|
|
/*
|
|
*================================================================
|
|
*
|
|
* 1. 배정된 강사 조회(VE0019 == 승인요청 :20)
|
|
* 2. 금일 날짜와 조회된 날짜 비교
|
|
* 3. 금일 날짜 기준으로 5일 이상이 되었다면 수락 거절 상태로 변경
|
|
*
|
|
*================================================================
|
|
*/
|
|
public void VeBatchChasiInstrAsgnm() throws Exception {
|
|
|
|
VEInstrAsgnmVO vo = new VEInstrAsgnmVO();
|
|
|
|
vo.setAsgnmAprvlCd("20"); // VE0019
|
|
|
|
List<VEInstrAsgnmVO> selectBatchAsgnmList = vEEduChasiInstrAsgnmService.selectBatchAsgnmList(vo);
|
|
|
|
for(int i=0; i < selectBatchAsgnmList.size(); i++) {
|
|
// 강사배정 취소 수정
|
|
vEEduChasiInstrAsgnmService.updateBatchAsgnmCancel(selectBatchAsgnmList.get(i));
|
|
|
|
vEEduChasiInstrAsgnmService.deleteBatchAsgnmCancel(selectBatchAsgnmList.get(i));
|
|
|
|
// 강사배정 취소 히스토리 등록
|
|
vEEduChasiInstrAsgnmService.insertBatchAsgnmCancel(selectBatchAsgnmList.get(i));
|
|
}
|
|
}
|
|
}
|