미사용 컨트롤러 제거

main
이범준 10 months ago
parent 7d40e8a3c2
commit d97f54c200

@ -1,104 +0,0 @@
package cokr.xit.fims.cmmn.web;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.fims.cmmn.CmmnQuery;
import cokr.xit.fims.mngt.Dept;
import cokr.xit.fims.mngt.service.DeptService;
import cokr.xit.foundation.web.AbstractController;
/**
*
* <p> :
*
* <pre>
* ============ ============
* 2023-12-12 JoJH
* ================================
* </pre>
*/
@RequestMapping(name = "부서 정보", value = "/deptInfo")
public class DeptController extends AbstractController {
/**부서 정보 서비스*/
@Resource(name = "deptService")
private DeptService deptService;
/** (deptInfo/deptInfo-main) .
* {@link #getDeptInfoList(DeptInfoQuery) } .
* @return /deptInfo/deptInfo-main
*/
@RequestMapping(name = "부서 정보 메인", value = "/main.do")
public ModelAndView main() {
ModelAndView mav = getDeptList(new CmmnQuery().setPageNum(1));
mav.setViewName("/deptInfo/deptInfo-main");
return mav.addObject("deptInfoList", toJson(mav.getModel().get("deptInfoList")));
}
/** .<br />
* {@link DeptService#getDeptInfoList(DeptInfoQuery)}
* @param req
* @return jsonView
* <pre><code> {
* "deptInfoList": [ ]
* "deptInfoStart":
* "deptInfoFetch":
* "deptInfoTotal":
* }</code></pre>
*/
@RequestMapping(name = "부서 정보 조회", value = "/list.do")
public ModelAndView getDeptList(CmmnQuery req) {
List<?> result = deptService.getDeptList(setFetchSize(req));
return setCollectionInfo(new ModelAndView("jsonView"), result, "deptInfo");
}
/** .
* @param deptInfo
* @return jsonView
* <pre><code> {
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name = "부서 정보 등록", value = "/create.do")
public ModelAndView create(Dept deptInfo) {
boolean saved = deptService.create(deptInfo);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
/** .
* @param deptInfo
* @return jsonView
* <pre><code> {
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name = "부서 정보 수정", value = "/update.do")
public ModelAndView update(Dept deptInfo) {
boolean saved = deptService.update(deptInfo);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
/** .
* @param deptInfoIDs
* @return jsonView
* <pre><code> {
* "affected":
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name = "부서 정보 제거", value = "/remove.do")
public ModelAndView remove(Dept deptInfo) {
boolean saved = deptService.remove(deptInfo);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
}

@ -1,105 +0,0 @@
package cokr.xit.fims.cmmn.web;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.fims.cmmn.CmmnQuery;
import cokr.xit.fims.mngt.Task;
import cokr.xit.fims.mngt.service.TaskService;
import cokr.xit.foundation.web.AbstractController;
/**
*
* <p> :
*
* <pre>
* ============ ============
* 2023-10-24 JoJH
* ================================
* </pre>
*/
@RequestMapping(name = "업무 정보", value = "/task")
public class TaskController extends AbstractController {
/** 업무 정보 서비스 */
@Resource(name = "taskService")
private TaskService taskService;
/** (task/task-main) .
* {@link #getTaskList(TaskQuery) } .
* @return /task/task-main
*/
@RequestMapping(name = "업무 메인", value = "/main.do")
public ModelAndView main() {
ModelAndView mav = getTaskList(new CmmnQuery().setPageNum(1));
mav.setViewName("/task/task-main");
return mav.addObject("taskList", toJson(mav.getModel().get("taskList")));
}
/** .<br />
* {@link TaskService#getTaskList(TaskQuery)}
* @param req
* @return jsonView
* <pre><code> {
* "taskList": [ ]
* "taskStart":
* "taskFetch":
* "taskTotal":
* }</code></pre>
*/
@RequestMapping(name = "업무 조회", value = "/list.do")
public ModelAndView getTaskList(CmmnQuery req) {
List<?> result = taskService.getTaskList(setFetchSize(req));
return setCollectionInfo(new ModelAndView("jsonView"), result, "task");
}
/** .
* @param task
* @return jsonView
* <pre><code> {
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name = "업무 등록", value = "/create.do")
public ModelAndView create(Task task) {
boolean saved = taskService.create(task);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
/** .
* @param task
* @return jsonView
* <pre><code> {
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name = "업무 수정", value = "/update.do")
public ModelAndView update(Task task) {
boolean saved = taskService.update(task);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
/** .
* @param taskIDs
* @return jsonView
* <pre><code> {
* "affected":
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name = "업무 제거", value = "/remove.do")
public ModelAndView remove(Task task) {
boolean saved = taskService.remove(task);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
}

@ -1,104 +0,0 @@
package cokr.xit.fims.cmmn.web;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.fims.mngt.Vltn;
import cokr.xit.fims.mngt.VltnQuery;
import cokr.xit.fims.mngt.service.VltnService;
import cokr.xit.foundation.web.AbstractController;
/**
*
* <p> :
*
* <pre>
* ============ ============
* 2023-10-16 JoJH
* ================================
* </pre>
*/
@RequestMapping(name = "위반", value = "/vltn")
public class VltnController extends AbstractController {
/**위반 정보 서비스*/
@Resource(name = "vltnService")
private VltnService vltnService;
/** (vltn/vltn-main) .
* {@link #getVltnList(VltnQuery) } .
* @return /vltn/vltn-main
*/
@RequestMapping(name = "위반 메인", value = "/main.do")
public ModelAndView main() {
ModelAndView mav = getVltnList(new VltnQuery().setPageNum(1));
mav.setViewName("/vltn/vltn-main");
return mav.addObject("vltnList", toJson(mav.getModel().get("vltnList")));
}
/** .<br />
* {@link VltnService#getVltnList(VltnQuery)}
* @param req
* @return jsonView
* <pre><code> {
* "vltnList": [ ]
* "vltnStart":
* "vltnFetch":
* "vltnTotal":
* }</code></pre>
*/
@RequestMapping(name = "위반 조회", value = "/list.do")
public ModelAndView getVltnList(VltnQuery req) {
List<?> result = vltnService.getVltnList(setFetchSize(req));
return setCollectionInfo(new ModelAndView("jsonView"), result, "vltn");
}
/** .
* @param vltn
* @return jsonView
* <pre><code> {
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name = "위반 등록", value = "/create.do")
public ModelAndView create(Vltn vltn) {
boolean saved = vltnService.create(vltn);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
/** .
* @param vltn
* @return jsonView
* <pre><code> {
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name = "위반 수정", value = "/update.do")
public ModelAndView update(Vltn vltn) {
boolean saved = vltnService.update(vltn);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
/** .
* @param vltnIDs
* @return jsonView
* <pre><code> {
* "affected":
* "saved": true, false
* }</code></pre>
*/
@PostMapping(name = "위반 제거", value = "/remove.do")
public ModelAndView remove(Vltn vltn) {
boolean saved = vltnService.remove(vltn);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
}
Loading…
Cancel
Save