From 89884806638955d152491c1fdc126b1403ec9754 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 31 Aug 2023 16:19:25 +0900 Subject: [PATCH] no message --- .../cokr/xit/fims/crdn/service/bean/CrdnServiceBean.java | 6 ++---- src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnServiceBean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnServiceBean.java index 3523ad2c..73d116b6 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnServiceBean.java +++ b/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnServiceBean.java @@ -100,7 +100,6 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService dataObjectList = crdnListMapper.selectSameVehicleSubList(query.setOrderBy("CRDN_ID")); break; case "todayInsert": - query.setCurrentUserId(currentUser().getId()); query.setOrderBy("CRDN_ID"); dataObjectList = crdnListMapper.selectTodayCrackdownList(query); break; @@ -188,8 +187,7 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService } } - String currentSggCd = globalStngMapper.selectSggCdForCurrentUser(); - crdn.setSggCd(currentSggCd); + boolean result = crdnBean.create(crdn); if (!result) { throw new RuntimeException("단속자료 수기 등록 중 단속자료 등록에 실패하였습니다."); @@ -204,7 +202,7 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService if(crdn.getCrdnSttsCd().equals("83")) { // 부과제외(TB_LEVY_EXCL) 대장 등록 LevyExcl excl01 = new LevyExcl(); - excl01.setSggCd(currentSggCd); + excl01.setSggCd(crdn.getSggCd()); excl01.setTaskSeCd(crdn.getTaskSeCd()); excl01.setCrdnId(crdn.getCrdnId()); excl01.setLevyExclYmd(strCurrentDate); diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java index d4ae4b32..0481ccde 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java @@ -82,6 +82,7 @@ public class Crdn05Controller extends ApplicationController { public ModelAndView getTodayCrdnDataList(CrdnQuery query) { setFetchSize(query); query.setGridType("todayInsert"); + query.setCurrentUserId(currentUser().getId()); return setCollectionInfo(new ModelAndView("jsonView"),crdnService.getCrackdownList(query),""); }