diff --git a/src/main/java/cokr/xit/fims/crdn/dao/ExmptnVhclMapper.java b/src/main/java/cokr/xit/fims/crdn/dao/ExmptnVhclMapper.java index d17fa14c..572e07ca 100644 --- a/src/main/java/cokr/xit/fims/crdn/dao/ExmptnVhclMapper.java +++ b/src/main/java/cokr/xit/fims/crdn/dao/ExmptnVhclMapper.java @@ -28,12 +28,19 @@ public interface ExmptnVhclMapper extends AbstractMapper { * @param exmptnVhcl 면제차량 정보 * return 저장된 정보 수 */ - int insertExmptnVhclInfo(ExmptnVhcl exmptnVhcl); + int insertExemptionVehicleInfo(ExmptnVhcl exmptnVhcl); /**면제차량 정보를 수정한다. * @param exmptnVhcl 면제차량 정보 * return 저장된 정보 수 */ - int updateExmptnVhclInfo(ExmptnVhcl exmptnVhcl); + int updateExemptionVehicleInfo(ExmptnVhcl exmptnVhcl); + + /**면제차량 정보를 삭제한다. + * @param exmptnVhcl 면제차량 정보 + * return 저장된 정보 수 + */ + int deleteExemptionVehicleInfo(ExmptnVhcl exmptnVhcl); + } diff --git a/src/main/java/cokr/xit/fims/crdn/service/CrdnStngService.java b/src/main/java/cokr/xit/fims/crdn/service/CrdnStngService.java index bd7dce51..f0958d8a 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/CrdnStngService.java +++ b/src/main/java/cokr/xit/fims/crdn/service/CrdnStngService.java @@ -43,12 +43,18 @@ public interface CrdnStngService { * @param exmptnVhcl 면제차량 정보 * @return 저장여부 */ - boolean createExmptnVhclInfo(ExmptnVhcl exmptnVhcl); + boolean createExemptionVehicleInfo(ExmptnVhcl exmptnVhcl); /** 면제차량 정보를 수정한다. * @param exmptnVhcl 면제차량 정보 * @return 저장여부 */ - boolean updateExmptnVhclInfo(ExmptnVhcl exmptnVhcl); + boolean updateExemptionVehicleInfo(ExmptnVhcl exmptnVhcl); + + /** 면제차량 정보를 삭제한다. + * @param exmptnVhcl 면제차량 정보 + * @return 저장여부 + */ + boolean removeExemptionVehicleInfo(ExmptnVhcl exmptnVhcl); } diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnStngBean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnStngBean.java index 17b04e51..32bf2bd5 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnStngBean.java +++ b/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnStngBean.java @@ -256,8 +256,8 @@ public class CrdnStngBean extends AbstractComponent { *
{
* "saved": 저장되었으면 true, 그렇지 않으면 false
* }
*/
- public ModelAndView createExmptnVhclInfo(ExmptnVhcl exmptnVhcl) {
+ public ModelAndView createExemptionVehicleInfo(ExmptnVhcl exmptnVhcl) {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String deptCd = currentUser.getDeptCode();
@@ -109,7 +110,7 @@ public class Crdn08Controller extends ApplicationController {
boolean saved = false;
- saved = crdnStngService.createExmptnVhclInfo(exmptnVhcl);
+ saved = crdnStngService.createExemptionVehicleInfo(exmptnVhcl);
return new ModelAndView("jsonView")
.addObject("saved", saved);
@@ -117,14 +118,14 @@ public class Crdn08Controller extends ApplicationController {
}
/** 면제차량 정보를 수정한다.
- * {@link CrdnStngService#updateExmptnVhclInfo(exmptnVhcl)} 참고
+ * {@link CrdnStngService#updateExemptionVehicleInfo(exmptnVhcl)} 참고
* @param exmptnVhcl 면제차량 정보
* @return jsonView
* {
* "saved": 저장되었으면 true, 그렇지 않으면 false
* }
*/
- public ModelAndView updateExmptnVhclInfo(ExmptnVhcl exmptnVhcl) {
+ public ModelAndView updateExemptionVehicleInfo(ExmptnVhcl exmptnVhcl) {
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
String deptCd = currentUser.getDeptCode();
@@ -132,11 +133,29 @@ public class Crdn08Controller extends ApplicationController {
boolean saved = false;
- saved = crdnStngService.updateExmptnVhclInfo(exmptnVhcl);
+ saved = crdnStngService.updateExemptionVehicleInfo(exmptnVhcl);
return new ModelAndView("jsonView")
.addObject("saved", saved);
}
+ /** 면제차량 정보를 삭제한다.
+ * {@link CrdnStngService#removeExemptionVehicleInfo(exmptnVhclId)} 참고
+ * @param exmptnVhcl 면제차량 정보
+ * @return jsonView
+ * {
+ * "saved": 저장되었으면 true, 그렇지 않으면 false
+ * }
+ */
+ public ModelAndView removeExemptionVehicleInfo(ExmptnVhcl exmptnVhcl) {
+
+ boolean saved = false;
+
+ saved = crdnStngService.removeExemptionVehicleInfo(exmptnVhcl);
+
+ return new ModelAndView("jsonView")
+ .addObject("saved", saved);
+
+ }
}
diff --git a/src/main/java/cokr/xit/fims/task/web/BpvController.java b/src/main/java/cokr/xit/fims/task/web/BpvController.java
index f791f6d7..aa1ca4d2 100644
--- a/src/main/java/cokr/xit/fims/task/web/BpvController.java
+++ b/src/main/java/cokr/xit/fims/task/web/BpvController.java
@@ -326,16 +326,23 @@ public class BpvController {
}
@Override
- @RequestMapping(name="전용차로과태료업무 면제차량 정보 등록", value=METHOD_URL.createExmptnVhclInfo)
- public ModelAndView createExmptnVhclInfo(ExmptnVhcl exmptnVhcl) {
- return super.createExmptnVhclInfo(exmptnVhcl);
+ @RequestMapping(name="전용차로과태료업무 면제차량 정보 등록", value=METHOD_URL.createExemptionVehicleInfo)
+ public ModelAndView createExemptionVehicleInfo(ExmptnVhcl exmptnVhcl) {
+ return super.createExemptionVehicleInfo(exmptnVhcl);
}
@Override
- @RequestMapping(name="전용차로과태료업무 면제차량 정보 수정", value=METHOD_URL.updateExmptnVhclInfo)
- public ModelAndView updateExmptnVhclInfo(ExmptnVhcl exmptnVhcl) {
- return super.updateExmptnVhclInfo(exmptnVhcl);
+ @RequestMapping(name="전용차로과태료업무 면제차량 정보 수정", value=METHOD_URL.updateExemptionVehicleInfo)
+ public ModelAndView updateExemptionVehicleInfo(ExmptnVhcl exmptnVhcl) {
+ return super.updateExemptionVehicleInfo(exmptnVhcl);
}
+
+ @Override
+ @RequestMapping(name="전용차로과태료업무 면제차량 정보 삭제", value=METHOD_URL.removeExemptionVehicleInfo)
+ public ModelAndView removeExemptionVehicleInfo(ExmptnVhcl exmptnVhcl) {
+ return super.removeExemptionVehicleInfo(exmptnVhcl);
+ }
+
}
@Controller
diff --git a/src/main/resources/sql/mapper/fims/crdn/exmptn-vhcl-mapper.xml b/src/main/resources/sql/mapper/fims/crdn/exmptn-vhcl-mapper.xml
index 8a9a6eda..6a18a88b 100644
--- a/src/main/resources/sql/mapper/fims/crdn/exmptn-vhcl-mapper.xml
+++ b/src/main/resources/sql/mapper/fims/crdn/exmptn-vhcl-mapper.xml
@@ -50,8 +50,8 @@ SELECT A.EXMPTN_VHCL_ID
WHERE A.EXMPTN_VHCL_ID = #{exmptnVhclId}
-