과태료업무URL 어노테이션 수정

main
이범준 7 months ago
parent d48e4ca4bf
commit fe0abca40d

@ -7,6 +7,8 @@ import java.util.Map;
import javax.annotation.Resource; import javax.annotation.Resource;
import org.apache.poi.ss.usermodel.CellStyle; import org.apache.poi.ss.usermodel.CellStyle;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.code.CommonCode; import cokr.xit.base.code.CommonCode;
@ -27,12 +29,15 @@ import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.dao.CrdnStngMapper; import cokr.xit.fims.crdn.dao.CrdnStngMapper;
import cokr.xit.fims.crdn.service.CrdnService; import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.fims.crdn.service.CrdnStngService; import cokr.xit.fims.crdn.service.CrdnStngService;
import cokr.xit.fims.task.Task;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
/** .<br /> /** .<br />
* { }/crdn/crdn06 . * { }/crdn/crdn06 .
* @author leebj * @author leebj
*/ */
@Controller
@RequestMapping(name="단속 관리", value=Crdn06Controller.CLASS_URL)
public class Crdn06Controller extends ApplicationController { public class Crdn06Controller extends ApplicationController {
public static final String CLASS_URL = "/crdn/crdn06"; public static final String CLASS_URL = "/crdn/crdn06";
@ -73,6 +78,7 @@ public class Crdn06Controller extends ApplicationController {
/** . /** .
* @return fims/crdn/crdn06010-main * @return fims/crdn/crdn06010-main
*/ */
@RequestMapping(name="단속 관리 메인", value=METHOD_URL.crackdownManagementMain)
public ModelAndView crackdownManagementMain(String openType, String taskSeCd) { public ModelAndView crackdownManagementMain(String openType, String taskSeCd) {
ModelAndView mav = new ModelAndView(); ModelAndView mav = new ModelAndView();
mav.setViewName("fims/crdn/crdn06010-main"); mav.setViewName("fims/crdn/crdn06010-main");
@ -96,6 +102,8 @@ public class Crdn06Controller extends ApplicationController {
* @param query * @param query
* @return jsonView * @return jsonView
*/ */
@Task
@RequestMapping(name="단속자료 목록", value=METHOD_URL.getCrackdownList)
public ModelAndView getCrackdownList(CrdnQuery query) { public ModelAndView getCrackdownList(CrdnQuery query) {
setFetchSize(query); setFetchSize(query);
@ -180,6 +188,8 @@ public class Crdn06Controller extends ApplicationController {
* "saved": true, false * "saved": true, false
* }</code></pre> * }</code></pre>
*/ */
@Task
@RequestMapping(name="단속자료 삭제", value=METHOD_URL.removeCrackdown)
public ModelAndView removeCrackdown(Crdn crdn) { public ModelAndView removeCrackdown(Crdn crdn) {
boolean saved = false; boolean saved = false;
String rtnMsg = crdnService.removeCrackdown(crdn); String rtnMsg = crdnService.removeCrackdown(crdn);
@ -203,6 +213,8 @@ public class Crdn06Controller extends ApplicationController {
* "saved": true, false * "saved": true, false
* }</code></pre> * }</code></pre>
*/ */
@Task
@RequestMapping(name="단속자료 납부자 삭제", value=METHOD_URL.removeCrackdownPayer)
public ModelAndView removeCrackdownPayer(Crdn crdn) { public ModelAndView removeCrackdownPayer(Crdn crdn) {
boolean saved = false; boolean saved = false;
String rtnMsg = crdnService.removeCrackdownPayer(crdn); String rtnMsg = crdnService.removeCrackdownPayer(crdn);
@ -222,6 +234,8 @@ public class Crdn06Controller extends ApplicationController {
* @param CrdnQuery * @param CrdnQuery
* @return jsonView * @return jsonView
*/ */
@Task
@RequestMapping(name="단속 건수 조회", value=METHOD_URL.countCrdn)
public ModelAndView countCrdn(CrdnQuery crdnQuery) { public ModelAndView countCrdn(CrdnQuery crdnQuery) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");
@ -240,6 +254,8 @@ public class Crdn06Controller extends ApplicationController {
* "saved": true, false * "saved": true, false
* }</code></pre> * }</code></pre>
*/ */
@Task
@RequestMapping(name="단속자료압축파일 세외수입 전송", value=METHOD_URL.sendCrdn)
public ModelAndView sendCrdn(String... crdnIds) { public ModelAndView sendCrdn(String... crdnIds) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");
boolean saved = false; boolean saved = false;
@ -259,6 +275,8 @@ public class Crdn06Controller extends ApplicationController {
* "crdnInfo": * "crdnInfo":
* }</pre> * }</pre>
*/ */
@Task
@RequestMapping(name="단속자료 상세 조회", value=METHOD_URL.getCrackdownInfo)
public ModelAndView getCrackdownInfo(CrdnQuery query) { public ModelAndView getCrackdownInfo(CrdnQuery query) {
DataObject crdnInfo = crdnService.getCrackdownInfo(query); DataObject crdnInfo = crdnService.getCrackdownInfo(query);
@ -329,6 +347,8 @@ public class Crdn06Controller extends ApplicationController {
* "saved": true, false * "saved": true, false
* }</code></pre> * }</code></pre>
*/ */
@Task
@RequestMapping(name="단속자료 수정", value=METHOD_URL.updateCrackdown)
public ModelAndView updateCrackdown(Crdn crdn) { public ModelAndView updateCrackdown(Crdn crdn) {
boolean saved = false; boolean saved = false;
String rtnMsg = crdnService.updateCrackdown(crdn); String rtnMsg = crdnService.updateCrackdown(crdn);
@ -351,6 +371,8 @@ public class Crdn06Controller extends ApplicationController {
* "crdnInfo": * "crdnInfo":
* }</pre> * }</pre>
*/ */
@Task
@RequestMapping(name="단속자료 상태 조회", value=METHOD_URL.getCrackdownStatusInfo)
public ModelAndView getCrackdownStatusInfo(CrdnQuery query) { public ModelAndView getCrackdownStatusInfo(CrdnQuery query) {
DataObject crdnInfo = crdnService.getCrackdownInfo(query); DataObject crdnInfo = crdnService.getCrackdownInfo(query);
@ -375,6 +397,8 @@ public class Crdn06Controller extends ApplicationController {
* "saved": true, false * "saved": true, false
* }</code></pre> * }</code></pre>
*/ */
@Task
@RequestMapping(name="단속처리상태 수정", value=METHOD_URL.updateCrackdownStatus)
public ModelAndView updateCrackdownStatus(Crdn crdn) { public ModelAndView updateCrackdownStatus(Crdn crdn) {
boolean saved = false; boolean saved = false;
String rtnMsg = crdnService.updateCrackdownStatus(crdn); String rtnMsg = crdnService.updateCrackdownStatus(crdn);

@ -8,5 +8,5 @@ import java.lang.annotation.Target;
@Target(ElementType.METHOD) @Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
public @interface Task { public @interface Task {
String[] value(); String[] value() default "ALL";
} }

@ -32,6 +32,9 @@ public class TaskRequestMappingHandlerMapping extends RequestMappingHandlerMappi
RequestMappingInfo info) { RequestMappingInfo info) {
String[] prefix = task.value(); String[] prefix = task.value();
if(prefix[0].equals("ALL")) {
prefix = new String[] {"PVS","BPV","DPV","ECA","PES","DVS"};
}
RequestMapping rm = AnnotatedElementUtils.findMergedAnnotation(method, RequestMapping.class); RequestMapping rm = AnnotatedElementUtils.findMergedAnnotation(method, RequestMapping.class);

@ -299,60 +299,6 @@ public class BpvController {
} }
@Controller
@RequestMapping(name="전용차로과태료업무 단속업무", value=CLASS_URL+Crdn06Controller.CLASS_URL)
class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller {
@Override
@RequestMapping(name="전용차로과태료업무 단속자료 목록", value=METHOD_URL.getCrackdownList)
public ModelAndView getCrackdownList(CrdnQuery query) {
return super.getCrackdownList(query);
}
@Override
@RequestMapping(name="전용차로과태료업무 단속자료 수정", value=METHOD_URL.updateCrackdown)
public ModelAndView updateCrackdown(Crdn crdn) {
return super.updateCrackdown(crdn);
}
@Override
@RequestMapping(name="전용차로과태료업무 단속자료 삭제", value=METHOD_URL.removeCrackdown)
public ModelAndView removeCrackdown(Crdn crdn) {
return super.removeCrackdown(crdn);
}
@Override
@RequestMapping(name="전용차로과태료업무 단속자료 납부자 삭제", value=METHOD_URL.removeCrackdownPayer)
public ModelAndView removeCrackdownPayer(Crdn crdn) {
return super.removeCrackdownPayer(crdn);
}
@Override
@RequestMapping(name="전용차로과태료업무 단속 건수 조회", value=METHOD_URL.countCrdn)
public ModelAndView countCrdn(CrdnQuery query) {
return super.countCrdn(query);
}
@Override
@RequestMapping(name="전용차로과태료업무 단속자료압축파일 세외수입 전송", value=METHOD_URL.sendCrdn)
public ModelAndView sendCrdn(String... crdnIds) {
return super.sendCrdn(crdnIds);
}
@Override
@RequestMapping(name="전용차로과태료업무 단속자료 조회", value=METHOD_URL.getCrackdownStatusInfo)
public ModelAndView getCrackdownStatusInfo(CrdnQuery query) {
return super.getCrackdownStatusInfo(query);
}
@Override
@RequestMapping(name="전용차로과태료업무 단속처리상태 수정", value=METHOD_URL.updateCrackdownStatus)
public ModelAndView updateCrackdownStatus(Crdn crdn) {
return super.updateCrackdownStatus(crdn);
}
}

@ -164,19 +164,6 @@ public class CmnController {
} }
} }
@Controller
@RequestMapping(name="단속 관리", value=Crdn06Controller.CLASS_URL)
class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller {
/** .
* @return fims/crdn/crdn06010-main
*/
@Override
@RequestMapping(name="단속 관리 메인", value=METHOD_URL.crackdownManagementMain)
public ModelAndView crackdownManagementMain(String openType, String taskSeCd) {
return super.crackdownManagementMain(openType, taskSeCd);
}
}
@Controller @Controller
@RequestMapping(name="부과제외 관리", value=Excl01Controller.CLASS_URL) @RequestMapping(name="부과제외 관리", value=Excl01Controller.CLASS_URL)

@ -336,59 +336,6 @@ public class DpvController {
} }
@Controller
@RequestMapping(name="장애인과태료업무 단속업무", value=CLASS_URL+Crdn06Controller.CLASS_URL)
class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller {
@Override
@RequestMapping(name="장애인과태료업무 단속자료 목록 조회", value=METHOD_URL.getCrackdownList)
public ModelAndView getCrackdownList(CrdnQuery query) {
return super.getCrackdownList(query);
}
@Override
@RequestMapping(name="장애인과태료업무 단속자료 조회", value=METHOD_URL.getCrackdownInfo)
public ModelAndView getCrackdownInfo(CrdnQuery query) {
return super.getCrackdownInfo(query);
}
@Override
@RequestMapping(name="장애인과태료업무 단속자료 수정", value=METHOD_URL.updateCrackdown)
public ModelAndView updateCrackdown(Crdn crdn) {
return super.updateCrackdown(crdn);
}
@Override
@RequestMapping(name="장애인과태료업무 단속자료 삭제", value=METHOD_URL.removeCrackdown)
public ModelAndView removeCrackdown(Crdn crdn) {
return super.removeCrackdown(crdn);
}
@Override
@RequestMapping(name="장애인과태료업무 단속자료 납부자 삭제", value=METHOD_URL.removeCrackdownPayer)
public ModelAndView removeCrackdownPayer(Crdn crdn) {
return super.removeCrackdownPayer(crdn);
}
@Override
@RequestMapping(name="장애인과태료업무 단속 건수 조회", value=METHOD_URL.countCrdn)
public ModelAndView countCrdn(CrdnQuery query) {
return super.countCrdn(query);
}
@Override
@RequestMapping(name="장애인과태료업무 단속자료 조회", value=METHOD_URL.getCrackdownStatusInfo)
public ModelAndView getCrackdownStatusInfo(CrdnQuery query) {
return super.getCrackdownStatusInfo(query);
}
@Override
@RequestMapping(name="장애인과태료업무 단속처리상태 수정", value=METHOD_URL.updateCrackdownStatus)
public ModelAndView updateCrackdownStatus(Crdn crdn) {
return super.updateCrackdownStatus(crdn);
}
}
@Controller @Controller
@RequestMapping(name="장애인과태료업무 부과제외_부과제외 관리", value=CLASS_URL+Excl01Controller.CLASS_URL) @RequestMapping(name="장애인과태료업무 부과제외_부과제외 관리", value=CLASS_URL+Excl01Controller.CLASS_URL)

@ -300,53 +300,6 @@ public class EcaController {
} }
@Controller
@RequestMapping(name="전기차과태료업무 단속업무", value=CLASS_URL+Crdn06Controller.CLASS_URL)
class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller {
@Override
@RequestMapping(name="전기차과태료업무 단속자료 목록", value=METHOD_URL.getCrackdownList)
public ModelAndView getCrackdownList(CrdnQuery query) {
return super.getCrackdownList(query);
}
@Override
@RequestMapping(name="전기차과태료업무 단속자료 수정", value=METHOD_URL.updateCrackdown)
public ModelAndView updateCrackdown(Crdn crdn) {
return super.updateCrackdown(crdn);
}
@Override
@RequestMapping(name="전기차과태료업무 단속자료 삭제", value=METHOD_URL.removeCrackdown)
public ModelAndView removeCrackdown(Crdn crdn) {
return super.removeCrackdown(crdn);
}
@Override
@RequestMapping(name="전기차과태료업무 단속자료 납부자 삭제", value=METHOD_URL.removeCrackdownPayer)
public ModelAndView removeCrackdownPayer(Crdn crdn) {
return super.removeCrackdownPayer(crdn);
}
@Override
@RequestMapping(name="전기차과태료업무 단속 건수 조회", value=METHOD_URL.countCrdn)
public ModelAndView countCrdn(CrdnQuery query) {
return super.countCrdn(query);
}
@Override
@RequestMapping(name="전기차과태료업무 단속자료 조회", value=METHOD_URL.getCrackdownStatusInfo)
public ModelAndView getCrackdownStatusInfo(CrdnQuery query) {
return super.getCrackdownStatusInfo(query);
}
@Override
@RequestMapping(name="전기차과태료업무 단속처리상태 수정", value=METHOD_URL.updateCrackdownStatus)
public ModelAndView updateCrackdownStatus(Crdn crdn) {
return super.updateCrackdownStatus(crdn);
}
}
@Controller @Controller
@RequestMapping(name="전기차과태료업무 부과제외_부과제외 관리", value=CLASS_URL+Excl01Controller.CLASS_URL) @RequestMapping(name="전기차과태료업무 부과제외_부과제외 관리", value=CLASS_URL+Excl01Controller.CLASS_URL)

@ -312,59 +312,6 @@ public class PvsController {
} }
@Controller
@RequestMapping(name="주정차과태료업무 단속업무", value=CLASS_URL+Crdn06Controller.CLASS_URL)
class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller {
@Override
@RequestMapping(name="주정차과태료업무 단속자료 목록", value=METHOD_URL.getCrackdownList)
public ModelAndView getCrackdownList(CrdnQuery query) {
return super.getCrackdownList(query);
}
@Override
@RequestMapping(name="주정차과태료업무 단속자료 수정", value=METHOD_URL.updateCrackdown)
public ModelAndView updateCrackdown(Crdn crdn) {
return super.updateCrackdown(crdn);
}
@Override
@RequestMapping(name="주정차과태료업무 단속자료 삭제", value=METHOD_URL.removeCrackdown)
public ModelAndView removeCrackdown(Crdn crdn) {
return super.removeCrackdown(crdn);
}
@Override
@RequestMapping(name="주정차과태료업무 단속자료 납부자 삭제", value=METHOD_URL.removeCrackdownPayer)
public ModelAndView removeCrackdownPayer(Crdn crdn) {
return super.removeCrackdownPayer(crdn);
}
@Override
@RequestMapping(name="주정차과태료업무 단속 건수 조회", value=METHOD_URL.countCrdn)
public ModelAndView countCrdn(CrdnQuery query) {
return super.countCrdn(query);
}
@Override
@RequestMapping(name="주정차과태료업무 단속자료압축파일 세외수입 전송", value=METHOD_URL.sendCrdn)
public ModelAndView sendCrdn(String... crdnIds) {
return super.sendCrdn(crdnIds);
}
@Override
@RequestMapping(name="주정차과태료업무 단속자료 조회", value=METHOD_URL.getCrackdownStatusInfo)
public ModelAndView getCrackdownStatusInfo(CrdnQuery query) {
return super.getCrackdownStatusInfo(query);
}
@Override
@RequestMapping(name="주정차과태료업무 단속처리상태 수정", value=METHOD_URL.updateCrackdownStatus)
public ModelAndView updateCrackdownStatus(Crdn crdn) {
return super.updateCrackdownStatus(crdn);
}
}
@Controller @Controller

Loading…
Cancel
Save