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 cokr.xit.fims.mngt.Task;
import cokr.xit.fims.mngt.Vltn;
public interface TaskVltnService {
public interface StngService {
/** , .
* @param task , vltnList
* @return
@ -14,7 +13,7 @@ public interface TaskVltnService {
* <li> false</li>
* </ul>
*/
boolean update(Task task, List<Vltn> vltnList);
boolean updateTaskStng(Task task, List<Vltn> vltnList);
/** , .
* @param sggCd , taskSeCd
@ -23,6 +22,5 @@ public interface TaskVltnService {
* <li> false</li>
* </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.List;
@ -9,15 +9,16 @@ import org.springframework.stereotype.Service;
import cokr.xit.base.code.service.CodeQuery;
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.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.data.DataObject;
@Service("taskVltnService")
public class TaskVltnServiceBean extends AbstractServiceBean implements TaskVltnService {
@Service("stngService")
public class StngServiceBean extends AbstractServiceBean implements StngService {
/** 업무 정보 Bean */
@Resource(name = "taskBean")
private TaskBean taskBean;
@ -30,7 +31,7 @@ public class TaskVltnServiceBean extends AbstractServiceBean implements TaskVltn
private CodeBean codeBean;
@Override
public boolean update(Task task, List<Vltn> vltnList) {
public boolean updateTaskStng(Task task, List<Vltn> vltnList) {
boolean result = taskBean.update(task);
if(!result) {
@ -48,7 +49,7 @@ public class TaskVltnServiceBean extends AbstractServiceBean implements TaskVltn
}
@Override
public boolean create(String sggCd, String taskSeCd) {
public boolean createTaskStng(String sggCd, String taskSeCd) {
Task task = new Task();
task.setSggCd(sggCd);
task.setTaskSeCd(taskSeCd);
@ -97,4 +98,5 @@ public class TaskVltnServiceBean extends AbstractServiceBean implements TaskVltn
return result;
}
}

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

Loading…
Cancel
Save