컨트롤러에서 TaskServcie,VltnService호출하는 부분 수정(TaskBean, VltnBean)

main
이범준 9 months ago
parent beacb68ac1
commit 4fc4bb824e

@ -13,8 +13,8 @@ import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.code.service.CodeQuery; import cokr.xit.base.code.service.CodeQuery;
import cokr.xit.base.code.service.bean.CodeBean; import cokr.xit.base.code.service.bean.CodeBean;
import cokr.xit.fims.cmmn.CmmnQuery; import cokr.xit.fims.cmmn.CmmnQuery;
import cokr.xit.fims.mngt.service.TaskService;
import cokr.xit.fims.mngt.service.bean.FactionBean; import cokr.xit.fims.mngt.service.bean.FactionBean;
import cokr.xit.fims.mngt.service.bean.TaskBean;
import cokr.xit.foundation.UserInfo; import cokr.xit.foundation.UserInfo;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
@ -23,8 +23,8 @@ public class CodeController extends cokr.xit.base.code.web.CodeController {
@Resource(name = "codeBean") @Resource(name = "codeBean")
private CodeBean codeBean; private CodeBean codeBean;
@Resource(name = "taskService") @Resource(name = "taskBean")
private TaskService taskService; private TaskBean taskBean;
@Resource(name = "factionBean") @Resource(name = "factionBean")
private FactionBean factionBean; private FactionBean factionBean;
@ -59,7 +59,7 @@ public class CodeController extends cokr.xit.base.code.web.CodeController {
CmmnQuery req = new CmmnQuery(); CmmnQuery req = new CmmnQuery();
req.setUseYN("Y"); req.setUseYN("Y");
req.setSggCd(sggCd); req.setSggCd(sggCd);
List<DataObject> result = taskService.getTasks(req); List<DataObject> result = taskBean.getTasks(req);
if(result != null && !result.isEmpty()) { if(result != null && !result.isEmpty()) {
mav.addObject("sggHasTask", "Y"); mav.addObject("sggHasTask", "Y");
} else { } else {

@ -22,7 +22,7 @@ import cokr.xit.fims.cmmn.service.bean.StngBean;
import cokr.xit.fims.levy.Levy; import cokr.xit.fims.levy.Levy;
import cokr.xit.fims.levy.LevyQuery; import cokr.xit.fims.levy.LevyQuery;
import cokr.xit.fims.levy.service.LevyService; import cokr.xit.fims.levy.service.LevyService;
import cokr.xit.fims.mngt.service.TaskService; import cokr.xit.fims.mngt.service.bean.TaskBean;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
/** /**
@ -55,8 +55,8 @@ public class Levy01Controller extends ApplicationController {
private LevyService levyService; private LevyService levyService;
/** 업무 정보 서비스 */ /** 업무 정보 서비스 */
@Resource(name="taskService") @Resource(name="taskBean")
private TaskService taskService; private TaskBean taskBean;
@Resource(name="stngBean") @Resource(name="stngBean")
private StngBean stngBean; private StngBean stngBean;
@ -167,7 +167,7 @@ public class Levy01Controller extends ApplicationController {
*/ */
public ModelAndView getReductionLevyTargetInfo(LevyQuery req) { public ModelAndView getReductionLevyTargetInfo(LevyQuery req) {
// 감경 부과일자 // 감경 부과일자
DataObject rductLevyYmdInfo = taskService.getAdvntceYmdInfo(new CmmnQuery().setSggCd(req.getSggCd()) DataObject rductLevyYmdInfo = taskBean.getAdvntceYmdInfo(new CmmnQuery().setSggCd(req.getSggCd())
.setTaskSeCd(req.getTaskSeCd())); .setTaskSeCd(req.getTaskSeCd()));
boolean json = jsonResponse(); boolean json = jsonResponse();

@ -14,12 +14,14 @@ import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.web.ApplicationController; import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.cmmn.CmmnQuery; import cokr.xit.fims.cmmn.CmmnQuery;
import cokr.xit.fims.mngt.Sgg; import cokr.xit.fims.mngt.Sgg;
import cokr.xit.fims.mngt.Task;
import cokr.xit.fims.mngt.Vltn;
import cokr.xit.fims.mngt.VltnQuery; import cokr.xit.fims.mngt.VltnQuery;
import cokr.xit.fims.mngt.dao.FactionMapper; import cokr.xit.fims.mngt.dao.FactionMapper;
import cokr.xit.fims.mngt.service.SggService; import cokr.xit.fims.mngt.service.SggService;
import cokr.xit.fims.mngt.service.TaskService;
import cokr.xit.fims.mngt.service.VltnService;
import cokr.xit.fims.mngt.service.bean.FactionBean; import cokr.xit.fims.mngt.service.bean.FactionBean;
import cokr.xit.fims.mngt.service.bean.TaskBean;
import cokr.xit.fims.mngt.service.bean.VltnBean;
import cokr.xit.foundation.UserInfo; import cokr.xit.foundation.UserInfo;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
@ -46,12 +48,12 @@ public class Mngt03Controller extends ApplicationController {
private SggService sggService; private SggService sggService;
/** 업무 정보 서비스 */ /** 업무 정보 서비스 */
@Resource(name = "taskService") @Resource(name = "taskBean")
private TaskService taskService; private TaskBean taskBean;
/**위반 정보 서비스*/ /**위반 정보 서비스*/
@Resource(name = "vltnService") @Resource(name = "vltnBean")
private VltnService vltnService; private VltnBean vltnBean;
@Resource(name = "factionBean") @Resource(name = "factionBean")
private FactionBean factionBean; private FactionBean factionBean;
@ -108,7 +110,7 @@ public class Mngt03Controller extends ApplicationController {
* @return jsonView * @return jsonView
*/ */
public ModelAndView getTasks(CmmnQuery req) { public ModelAndView getTasks(CmmnQuery req) {
List<DataObject> result = taskService.getTasks(req); List<DataObject> result = taskBean.getTasks(req);
return setCollectionInfo(new ModelAndView("jsonView"), result, "task"); return setCollectionInfo(new ModelAndView("jsonView"), result, "task");
} }
@ -117,7 +119,7 @@ public class Mngt03Controller extends ApplicationController {
* @return * @return
*/ */
public ModelAndView getVltns(VltnQuery req) { public ModelAndView getVltns(VltnQuery req) {
List<DataObject> result = vltnService.getVltns(req); List<DataObject> result = vltnBean.getVltns(req);
return setCollectionInfo(new ModelAndView("jsonView"), result, "vltn"); return setCollectionInfo(new ModelAndView("jsonView"), result, "vltn");
} }

@ -19,7 +19,7 @@ import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.cmmn.CmmnQuery; import cokr.xit.fims.cmmn.CmmnQuery;
import cokr.xit.fims.cmmn.CmmnUtil; import cokr.xit.fims.cmmn.CmmnUtil;
import cokr.xit.fims.cmmn.service.bean.StngBean; import cokr.xit.fims.cmmn.service.bean.StngBean;
import cokr.xit.fims.mngt.service.TaskService; import cokr.xit.fims.mngt.service.bean.TaskBean;
import cokr.xit.fims.sndb.SndbQuery; import cokr.xit.fims.sndb.SndbQuery;
import cokr.xit.fims.sndb.Sndng; import cokr.xit.fims.sndb.Sndng;
import cokr.xit.fims.sndb.SndngDtl; import cokr.xit.fims.sndb.SndngDtl;
@ -110,8 +110,8 @@ public class Sndb01Controller extends ApplicationController {
private SvbtcService svbtcService; private SvbtcService svbtcService;
/**업무 정보 서비스*/ /**업무 정보 서비스*/
@Resource(name="taskService") @Resource(name="taskBean")
private TaskService taskService; private TaskBean taskBean;
@Resource(name="stngBean") @Resource(name="stngBean")
private StngBean stngBean; private StngBean stngBean;
@ -574,7 +574,7 @@ public class Sndb01Controller extends ApplicationController {
List<DataObject> advntceTrgts = sndngService.getAdvntceTrgts(req); List<DataObject> advntceTrgts = sndngService.getAdvntceTrgts(req);
// 사전통지 납기일자 // 사전통지 납기일자
DataObject advntceYmdInfo = taskService.getAdvntceYmdInfo(new CmmnQuery().setSggCd(req.getSggCd()) DataObject advntceYmdInfo = taskBean.getAdvntceYmdInfo(new CmmnQuery().setSggCd(req.getSggCd())
.setTaskSeCd(req.getTaskSeCd())); .setTaskSeCd(req.getTaskSeCd()));
boolean json = jsonResponse(); boolean json = jsonResponse();

Loading…
Cancel
Save