main
이범준 9 months ago
parent 2f7465a38c
commit ec753a758b

@ -1,12 +1,11 @@
package cokr.xit.fims.mngt.service; package cokr.xit.fims.cmmn.service;
import java.util.List; import java.util.List;
import cokr.xit.fims.mngt.Task; import cokr.xit.fims.mngt.Task;
import cokr.xit.fims.mngt.Vltn; import cokr.xit.fims.mngt.Vltn;
public interface TaskVltnService { public interface StngService {
/** , . /** , .
* @param task , vltnList * @param task , vltnList
* @return * @return
@ -14,7 +13,7 @@ public interface TaskVltnService {
* <li> false</li> * <li> false</li>
* </ul> * </ul>
*/ */
boolean update(Task task, List<Vltn> vltnList); boolean updateTaskStng(Task task, List<Vltn> vltnList);
/** , . /** , .
* @param sggCd , taskSeCd * @param sggCd , taskSeCd
@ -23,6 +22,5 @@ public interface TaskVltnService {
* <li> false</li> * <li> false</li>
* </ul> * </ul>
*/ */
boolean create(String sggCd, String taskSeCd); boolean createTaskStng(String sggCd, String taskSeCd);
} }

@ -1,4 +1,4 @@
package cokr.xit.fims.mngt.service.bean; package cokr.xit.fims.cmmn.service.bean;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -9,15 +9,16 @@ import org.springframework.stereotype.Service;
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.service.StngService;
import cokr.xit.fims.mngt.Task; import cokr.xit.fims.mngt.Task;
import cokr.xit.fims.mngt.Vltn; import cokr.xit.fims.mngt.Vltn;
import cokr.xit.fims.mngt.service.TaskVltnService; import cokr.xit.fims.mngt.service.bean.TaskBean;
import cokr.xit.fims.mngt.service.bean.VltnBean;
import cokr.xit.foundation.component.AbstractServiceBean; import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
@Service("taskVltnService") @Service("stngService")
public class TaskVltnServiceBean extends AbstractServiceBean implements TaskVltnService { public class StngServiceBean extends AbstractServiceBean implements StngService {
/** 업무 정보 Bean */ /** 업무 정보 Bean */
@Resource(name = "taskBean") @Resource(name = "taskBean")
private TaskBean taskBean; private TaskBean taskBean;
@ -30,7 +31,7 @@ public class TaskVltnServiceBean extends AbstractServiceBean implements TaskVltn
private CodeBean codeBean; private CodeBean codeBean;
@Override @Override
public boolean update(Task task, List<Vltn> vltnList) { public boolean updateTaskStng(Task task, List<Vltn> vltnList) {
boolean result = taskBean.update(task); boolean result = taskBean.update(task);
if(!result) { if(!result) {
@ -48,7 +49,7 @@ public class TaskVltnServiceBean extends AbstractServiceBean implements TaskVltn
} }
@Override @Override
public boolean create(String sggCd, String taskSeCd) { public boolean createTaskStng(String sggCd, String taskSeCd) {
Task task = new Task(); Task task = new Task();
task.setSggCd(sggCd); task.setSggCd(sggCd);
task.setTaskSeCd(taskSeCd); task.setTaskSeCd(taskSeCd);
@ -97,4 +98,5 @@ public class TaskVltnServiceBean extends AbstractServiceBean implements TaskVltn
return result; return result;
} }
} }

@ -13,12 +13,12 @@ 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.cmmn.service.StngService;
import cokr.xit.fims.mngt.FineIntegrationSigungu; import cokr.xit.fims.mngt.FineIntegrationSigungu;
import cokr.xit.fims.mngt.Task; import cokr.xit.fims.mngt.Task;
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.FactionService; import cokr.xit.fims.mngt.service.FactionService;
import cokr.xit.fims.mngt.service.TaskVltnService;
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.TaskBean;
import cokr.xit.fims.mngt.service.bean.VltnBean; import cokr.xit.fims.mngt.service.bean.VltnBean;
@ -50,8 +50,8 @@ public class Mngt03Controller extends ApplicationController {
private FactionService factionService; private FactionService factionService;
/** 업무 정보 서비스 */ /** 업무 정보 서비스 */
@Resource(name = "taskVltnService") @Resource(name = "stngService")
private TaskVltnService taskVltnService; private StngService stngService;
/** 업무 정보 Bean */ /** 업무 정보 Bean */
@Resource(name = "taskBean") @Resource(name = "taskBean")
@ -201,7 +201,7 @@ public class Mngt03Controller extends ApplicationController {
public ModelAndView updateTaskStng(Task task) { public ModelAndView updateTaskStng(Task task) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");
boolean saved = taskVltnService.update(task, task.getVltnStngList()); boolean saved = stngService.updateTaskStng(task, task.getVltnStngList());
mav.addObject("saved", saved); mav.addObject("saved", saved);
return mav; return mav;
@ -217,7 +217,7 @@ public class Mngt03Controller extends ApplicationController {
public ModelAndView createTaskStng(String sggCd, String taskSeCd) { public ModelAndView createTaskStng(String sggCd, String taskSeCd) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");
boolean saved = taskVltnService.create(sggCd, taskSeCd); boolean saved = stngService.createTaskStng(sggCd, taskSeCd);
mav.addObject("saved", saved); mav.addObject("saved", saved);
return mav; return mav;

Loading…
Cancel
Save