vue 수정완료

This commit is contained in:
2023-06-08 14:11:51 +09:00
parent d4058a04ab
commit 893e6eac69
2 changed files with 120 additions and 33 deletions

View File

@@ -648,21 +648,17 @@ public class SysMgtService {
* @return
*/
public SvcCheckListResDto svcCheckLists(@Valid SvcCheckListReqDto svcCheckListReqDto) {
SysMgtMapper sysmgtmapper = sqlSessionSlave.getMapper(SysMgtMapper.class);
String workStateData = "";
// log.debug("1번 ={}",workStateData);
String [] workStateDataArr = new String[7];
log.info("getWorkStateCheck START ==========================================");
//CheckList >= svcCheckList
SvcCheckListRes svcCheckListRes = new SvcCheckListRes();
List<SvcCheckList> CheckList = new ArrayList<SvcCheckList>();
SvcCheckList svcCheckList = new SvcCheckList();
String nowPage = String.valueOf(svcCheckListReqDto.getPage());
int totalCnt = 0;
// sysmgtmapper.svcCheckListSelectCnt(svcCheckListReqDto);
File fileList = new File("C:\\efs\\admin\\workState\\workStatefile.txt");
try {
@@ -699,14 +695,11 @@ public class SysMgtService {
svcCheckList.setStrHd(StrHd);
String EndHd = svcCheckList.getEndHour()+" : "+ svcCheckList.getEndMin();
svcCheckList.setEndHd(EndHd);
// log.debug("2번 ={}",svcCheckList);
// 리스트에 항목 추가
CheckList.add(svcCheckList);
// log.debug("3번 ={}",CheckList.get(i));
}
svcCheckListRes.setList(CheckList);
// log.debug("4번 ={}",svcCheckListRes.getList());
totalCnt = CheckList.size();
int page = svcCheckListReqDto.getPage();
int pagePerRows = svcCheckListReqDto.getPagePerRows();
@@ -720,7 +713,6 @@ public class SysMgtService {
// 파일 읽기 실패 시 "USE"로 설정하고 결과 반환
log.error("WORK STATE READ FAIL : {}",e.getMessage(), e);
svcCheckList.setWorkState("USE");
// log.debug("5번 ={}",svcCheckList.getWorkState());
String[] Data = workStateData.split(",");
totalCnt = CheckList.size();
@@ -743,7 +735,6 @@ public class SysMgtService {
}
// CheckList = sysmgtmapper.svcCheckListSelect(svcCheckListReqDto);
svcCheckListRes.setList(CheckList);
Paging paging = new Paging();
paging.setPage(nowPage);