단속업무 소스 정리

main
이범준 1 year ago
parent a693cc6e08
commit 87579312f5

@ -16,21 +16,21 @@ import cokr.xit.foundation.data.DataObject;
public interface Crdn01Mapper extends AbstractMapper { public interface Crdn01Mapper extends AbstractMapper {
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.Crdn01Service#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.Crdn01ServiceBean#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return * @return
*/ */
List<DataObject> selectCivilComplaintList(CrdnQuery req); List<DataObject> selectCivilComplaintList(CrdnQuery req);
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.Crdn01Service#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.Crdn01ServiceBean#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return * @return
*/ */
List<DataObject> selectCivilComplaintReceiptDataList(CrdnQuery req); List<DataObject> selectCivilComplaintReceiptDataList(CrdnQuery req);
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.Crdn01Service#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.Crdn01ServiceBean#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return * @return
*/ */

@ -17,7 +17,7 @@ import cokr.xit.foundation.data.DataObject;
public interface Crdn05Mapper extends AbstractMapper { public interface Crdn05Mapper extends AbstractMapper {
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.Crdn05Service#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.Crdn05ServiceBean#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return * @return
*/ */
@ -44,7 +44,7 @@ public interface Crdn05Mapper extends AbstractMapper {
} }
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.Crdn05Service#getBasicAmt(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.Crdn05Bean#getBasicAmt(CrdnQuery)}
* @param query * @param query
* @return * @return
*/ */

@ -18,35 +18,35 @@ import cokr.xit.foundation.data.DataObject;
public interface Crdn06Mapper extends AbstractMapper { public interface Crdn06Mapper extends AbstractMapper {
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.Crdn06Service#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.Crdn06ServiceBean#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return * @return
*/ */
List<DataObject> selectCrackdownList(CrdnQuery req); List<DataObject> selectCrackdownList(CrdnQuery req);
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.Crdn06Service#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.Crdn06ServiceBean#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return * @return
*/ */
List<DataObject> selectPhotoInspectionDataList(CrdnQuery setOrderBy); List<DataObject> selectPhotoInspectionDataList(CrdnQuery setOrderBy);
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.Crdn06Service#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.Crdn06ServiceBean#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return * @return
*/ */
List<DataObject> selectSameVehicleMainList(CrdnQuery setOrderBy); List<DataObject> selectSameVehicleMainList(CrdnQuery setOrderBy);
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.Crdn06Service#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.Crdn06ServiceBean#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return * @return
*/ */
List<DataObject> selectSameVehicleSubList(CrdnQuery setOrderBy); List<DataObject> selectSameVehicleSubList(CrdnQuery setOrderBy);
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.Crdn06Service#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.Crdn06ServiceBean#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return * @return
*/ */
@ -73,7 +73,7 @@ public interface Crdn06Mapper extends AbstractMapper {
} }
/** .<br /> /** .<br />
* {@link cokr.xit.fims.crdn.service.Crdn06Service#getCrackdownList(CrdnQuery)} * {@link cokr.xit.fims.crdn.service.bean.Crdn06ServiceBean#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return * @return
*/ */

@ -1,19 +0,0 @@
package cokr.xit.fims.crdn.service;
/** .
* <ul>
* </ul>
* @author leebj
*/
public interface Crdn01Service extends CrdnService {
/** .
* @param crdn
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
boolean removeCivilComplaint(String... crdnIDs);
}

@ -1,10 +0,0 @@
package cokr.xit.fims.crdn.service;
/** .
* <ul>
* </ul>
* @author leebj
*/
public interface Crdn02Service extends CrdnService {
}

@ -1,26 +0,0 @@
package cokr.xit.fims.crdn.service;
import java.util.List;
import cokr.xit.base.file.FileInfo;
import cokr.xit.fims.crdn.Crdn;
/** .
* <ul>
* </ul>
* @author leebj
*/
public interface Crdn05Service extends CrdnService {
/** .
* @param crdn05
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
boolean create(Crdn crdn, List<FileInfo> fileInfoList);
boolean create(Crdn crdn);
}

@ -1,26 +0,0 @@
package cokr.xit.fims.crdn.service;
import java.util.List;
import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.foundation.data.DataObject;
/** .
* <ul>
* <li>{@link #getCrackdownList(CrdnQuery) }</li>
* </ul>
* @author leebj
*/
public interface Crdn06Service extends CrdnService {
/** .
* @param crdn
* @return
* <ul><li> true</li>
* <li> false</li>
* </ul>
*/
boolean update(Crdn crdn);
}

@ -8,7 +8,7 @@ import org.springframework.stereotype.Service;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.dao.Crdn01Mapper; import cokr.xit.fims.crdn.dao.Crdn01Mapper;
import cokr.xit.fims.crdn.service.Crdn01Service; import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.foundation.component.AbstractServiceBean; import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
@ -16,7 +16,7 @@ import cokr.xit.foundation.data.DataObject;
* @author leebj * @author leebj
*/ */
@Service("crdn01Service") @Service("crdn01Service")
public class Crdn01ServiceBean extends AbstractServiceBean implements Crdn01Service { public class Crdn01ServiceBean extends AbstractServiceBean implements CrdnService {
@Resource(name="crdn01Mapper") @Resource(name="crdn01Mapper")
protected Crdn01Mapper crdn01Mapper; protected Crdn01Mapper crdn01Mapper;
@ -39,9 +39,5 @@ public class Crdn01ServiceBean extends AbstractServiceBean implements Crdn01Serv
} }
@Override
public boolean removeCivilComplaint(String... crdnIDs) {
return crdn01Bean.removeCivilComplaint(crdnIDs);
}
} }

@ -7,7 +7,7 @@ import javax.annotation.Resource;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.service.Crdn02Service; import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.foundation.component.AbstractServiceBean; import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
@ -15,7 +15,7 @@ import cokr.xit.foundation.data.DataObject;
* @author leebj * @author leebj
*/ */
@Service("crdn02Service") @Service("crdn02Service")
public class Crdn02ServiceBean extends AbstractServiceBean implements Crdn02Service { public class Crdn02ServiceBean extends AbstractServiceBean implements CrdnService {
/** 민원 개별 등록 Bean */ /** 민원 개별 등록 Bean */
@Resource(name="crdn02Bean") @Resource(name="crdn02Bean")

@ -1,10 +1,14 @@
package cokr.xit.fims.crdn.service.bean; package cokr.xit.fims.crdn.service.bean;
import java.util.List;
import javax.annotation.Resource; import javax.annotation.Resource;
import org.assertj.core.util.Arrays; import org.assertj.core.util.Arrays;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import cokr.xit.base.file.FileInfo;
import cokr.xit.base.file.service.bean.FileBean;
import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.dao.Crdn05Mapper; import cokr.xit.fims.crdn.dao.Crdn05Mapper;
@ -21,9 +25,21 @@ public class Crdn05Bean extends AbstractComponent {
public String[] CAR_GROUP2 = {"11","13"}; //승용자동차등 public String[] CAR_GROUP2 = {"11","13"}; //승용자동차등
public String[] CAR_GROUP3 = {"31"}; //이륜자동차등 public String[] CAR_GROUP3 = {"31"}; //이륜자동차등
@Resource(name="fileBean")
private FileBean fileBean;
@Resource(name = "crdn05Mapper") @Resource(name = "crdn05Mapper")
private Crdn05Mapper crdn05Mapper; private Crdn05Mapper crdn05Mapper;
public boolean create(Crdn crdn, List<FileInfo> fileInfoList) {
crdn.setAtchFileCnt(fileInfoList.size());
boolean saved = this.create(crdn);
fileInfoList.forEach(fileInfo -> fileInfo.setInfoType(Crdn.INF_TYPE).setInfoKey(crdn.getCrdnId()));
fileBean.create(fileInfoList);
return saved;
}
/** . /** .
* @param crdn * @param crdn
* @return * @return
@ -32,6 +48,30 @@ public class Crdn05Bean extends AbstractComponent {
* </ul> * </ul>
*/ */
public boolean create(Crdn crdn) { public boolean create(Crdn crdn) {
if(ifEmpty(crdn.getAtchFileCnt(), () -> 0) == 0) {
crdn.setAtchFileCnt(0);
}
int basicAmt = this.getBasicAmt(crdn);
crdn.setFfnlgAmt(basicAmt);
crdn.setLevyAmt(basicAmt);
boolean isPenaltyAmt = crdn.getTaskSeCd().equals("TPV")
&& (crdn.getFfnlgCarmdlCd().equals("13") || crdn.getFfnlgCarmdlCd().equals("14")); //과징금
if(crdn.getTaskSeCd().equals("BPV") || isPenaltyAmt) {
crdn.setAdvntceLevyAmt(basicAmt);
} else {
crdn.setAdvntceLevyAmt((int)(basicAmt * 0.8));
}
if(ifEmpty(crdn.getDoGuidance(), () -> "").equals("on")) {
crdn.setCrdnSttsCd("83");
} else {
crdn.setCrdnSttsCd("01");
}
return crdn05Mapper.insert(crdn); return crdn05Mapper.insert(crdn);
} }

@ -6,12 +6,10 @@ import javax.annotation.Resource;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import cokr.xit.base.file.FileInfo;
import cokr.xit.base.file.service.bean.FileBean; import cokr.xit.base.file.service.bean.FileBean;
import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.dao.Crdn05Mapper; import cokr.xit.fims.crdn.dao.Crdn05Mapper;
import cokr.xit.fims.crdn.service.Crdn05Service; import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.foundation.component.AbstractServiceBean; import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
@ -19,7 +17,7 @@ import cokr.xit.foundation.data.DataObject;
* @author leebj * @author leebj
*/ */
@Service("crdn05Service") @Service("crdn05Service")
public class Crdn05ServiceBean extends AbstractServiceBean implements Crdn05Service { public class Crdn05ServiceBean extends AbstractServiceBean implements CrdnService {
@Resource(name="crdn05Mapper") @Resource(name="crdn05Mapper")
protected Crdn05Mapper crdn05Mapper; protected Crdn05Mapper crdn05Mapper;
@ -38,41 +36,5 @@ public class Crdn05ServiceBean extends AbstractServiceBean implements Crdn05Serv
return crdn05Mapper.selectCrackdownList(req); return crdn05Mapper.selectCrackdownList(req);
} }
@Override
public boolean create(Crdn crdn, List<FileInfo> fileInfoList) {
crdn.setAtchFileCnt(fileInfoList.size());
boolean saved = this.create(crdn);
fileInfoList.forEach(fileInfo -> fileInfo.setInfoType(Crdn.INF_TYPE).setInfoKey(crdn.getCrdnId()));
fileBean.create(fileInfoList);
return saved;
}
@Override
public boolean create(Crdn crdn) {
if(ifEmpty(crdn.getAtchFileCnt(), () -> 0) == 0) {
crdn.setAtchFileCnt(0);
}
int basicAmt = crdn05Bean.getBasicAmt(crdn);
crdn.setFfnlgAmt(basicAmt);
crdn.setLevyAmt(basicAmt);
boolean isPenaltyAmt = crdn.getTaskSeCd().equals("TPV")
&& (crdn.getFfnlgCarmdlCd().equals("13") || crdn.getFfnlgCarmdlCd().equals("14")); //과징금
if(crdn.getTaskSeCd().equals("BPV") || isPenaltyAmt) {
crdn.setAdvntceLevyAmt(basicAmt);
} else {
crdn.setAdvntceLevyAmt((int)(basicAmt * 0.8));
}
if(ifEmpty(crdn.getDoGuidance(), () -> "").equals("on")) {
crdn.setCrdnSttsCd("83");
} else {
crdn.setCrdnSttsCd("01");
}
boolean saved = crdn05Bean.create(crdn);
return saved;
}
} }

@ -8,10 +8,9 @@ import javax.annotation.Resource;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.dao.Crdn06Mapper; import cokr.xit.fims.crdn.dao.Crdn06Mapper;
import cokr.xit.fims.crdn.service.Crdn06Service; import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.foundation.component.AbstractServiceBean; import cokr.xit.foundation.component.AbstractServiceBean;
import cokr.xit.foundation.data.DataObject; import cokr.xit.foundation.data.DataObject;
@ -19,7 +18,7 @@ import cokr.xit.foundation.data.DataObject;
* @author leebj * @author leebj
*/ */
@Service("crdn06Service") @Service("crdn06Service")
public class Crdn06ServiceBean extends AbstractServiceBean implements Crdn06Service { public class Crdn06ServiceBean extends AbstractServiceBean implements CrdnService {
@Resource(name="crdn06Mapper") @Resource(name="crdn06Mapper")
protected Crdn06Mapper crdn06Mapper; protected Crdn06Mapper crdn06Mapper;
@ -28,11 +27,6 @@ public class Crdn06ServiceBean extends AbstractServiceBean implements Crdn06Serv
@Resource(name="crdn06Bean") @Resource(name="crdn06Bean")
protected Crdn06Bean crdn06Bean; protected Crdn06Bean crdn06Bean;
@Override
public boolean update(Crdn crdn) {
return crdn06Bean.update(crdn);
}
@Override @Override
public List<DataObject> getCrackdownList(CrdnQuery req) { public List<DataObject> getCrackdownList(CrdnQuery req) {
List<DataObject> dataObjectList = new ArrayList<DataObject>(); List<DataObject> dataObjectList = new ArrayList<DataObject>();

@ -12,7 +12,9 @@ import cokr.xit.base.code.CommonCode;
import cokr.xit.base.web.ApplicationController; import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.service.Crdn01Service; import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.fims.crdn.service.bean.Crdn01Bean;
import cokr.xit.fims.crdn.service.bean.Crdn01ServiceBean;
import cokr.xit.foundation.UserInfo; import cokr.xit.foundation.UserInfo;
/** .<br /> /** .<br />
@ -21,8 +23,11 @@ import cokr.xit.foundation.UserInfo;
*/ */
public class Crdn01Controller extends ApplicationController { public class Crdn01Controller extends ApplicationController {
@Resource(name="crdn01Bean")
private Crdn01Bean crdn01Bean;
@Resource(name="crdn01Service") @Resource(name="crdn01Service")
private Crdn01Service crdn01Service; private CrdnService crdn01Service;
/** . /** .
* @return fims/crdn/crdn01010-main * @return fims/crdn/crdn01010-main
@ -71,7 +76,7 @@ public class Crdn01Controller extends ApplicationController {
} }
/** .<br /> /** .<br />
* {@link Crdn01Service#getCrackdownList(CrdnQuery)} * {@link Crdn01ServiceBean#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
@ -93,7 +98,7 @@ public class Crdn01Controller extends ApplicationController {
} }
/** .<br /> /** .<br />
* {@link Crdn01Service#getCrackdownList(CrdnQuery)} * {@link Crdn01ServiceBean#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
@ -115,7 +120,7 @@ public class Crdn01Controller extends ApplicationController {
} }
/** .<br /> /** .<br />
* {@link Crdn01Service#getCrackdownList(CrdnQuery)} * {@link Crdn01ServiceBean#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
@ -145,7 +150,7 @@ public class Crdn01Controller extends ApplicationController {
*/ */
@RequestMapping(name="민원자료 제거", value="/010/remove.do") @RequestMapping(name="민원자료 제거", value="/010/remove.do")
public ModelAndView removeCivilComplaint(Crdn crdn) { public ModelAndView removeCivilComplaint(Crdn crdn) {
boolean saved = crdn01Service.removeCivilComplaint(crdn.getCrdnIDs()); boolean saved = crdn01Bean.removeCivilComplaint(crdn.getCrdnIDs());
return new ModelAndView("jsonView") return new ModelAndView("jsonView")
.addObject("saved", saved); .addObject("saved", saved);

@ -2,11 +2,10 @@ package cokr.xit.fims.crdn.web;
import javax.annotation.Resource; import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.web.ApplicationController; import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.service.Crdn02Service; import cokr.xit.fims.crdn.service.CrdnService;
/** .<br /> /** .<br />
* { }/crdn/crdn02 . * { }/crdn/crdn02 .
@ -15,7 +14,7 @@ import cokr.xit.fims.crdn.service.Crdn02Service;
public class Crdn02Controller extends ApplicationController { public class Crdn02Controller extends ApplicationController {
@Resource(name="crdn02Service") @Resource(name="crdn02Service")
private Crdn02Service crdn02Service; private CrdnService crdn02Service;
/** . /** .
* @return fims/crdn/crdn02010-main * @return fims/crdn/crdn02010-main

@ -17,7 +17,9 @@ import cokr.xit.base.file.web.FileInfoFactory;
import cokr.xit.base.web.ApplicationController; import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.service.Crdn05Service; import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.fims.crdn.service.bean.Crdn05Bean;
import cokr.xit.fims.crdn.service.bean.Crdn05ServiceBean;
/** .<br /> /** .<br />
* { }/crdn/crdn05 . * { }/crdn/crdn05 .
@ -25,8 +27,11 @@ import cokr.xit.fims.crdn.service.Crdn05Service;
*/ */
public class Crdn05Controller extends ApplicationController { public class Crdn05Controller extends ApplicationController {
@Resource(name="crdn05Bean")
private Crdn05Bean crdn05Bean;
@Resource(name="crdn05Service") @Resource(name="crdn05Service")
private Crdn05Service crdn05Service; private CrdnService crdn05Service;
/** . /** .
* @return fims/crdn/crdn05010-main * @return fims/crdn/crdn05010-main
@ -52,7 +57,7 @@ public class Crdn05Controller extends ApplicationController {
} }
/** . /** .
* {@link Crdn05Service#getCrackdownList(CrdnQuery)} * {@link Crdn05ServiceBean#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
@ -133,9 +138,9 @@ public class Crdn05Controller extends ApplicationController {
if(uploadFileList != null) { if(uploadFileList != null) {
List<FileInfo> fileInfoList = new FileInfoFactory().makeFileInfos(null, uploadFileList); List<FileInfo> fileInfoList = new FileInfoFactory().makeFileInfos(null, uploadFileList);
saved = crdn05Service.create(crdn, fileInfoList); saved = crdn05Bean.create(crdn, fileInfoList);
} else { } else {
saved = crdn05Service.create(crdn); saved = crdn05Bean.create(crdn);
} }
return new ModelAndView("jsonView") return new ModelAndView("jsonView")

@ -11,7 +11,8 @@ import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.code.CommonCode; import cokr.xit.base.code.CommonCode;
import cokr.xit.base.web.ApplicationController; import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.service.Crdn06Service; import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.fims.crdn.service.bean.Crdn06ServiceBean;
/** .<br /> /** .<br />
* { }/crdn/crdn06 . * { }/crdn/crdn06 .
@ -20,7 +21,7 @@ import cokr.xit.fims.crdn.service.Crdn06Service;
public class Crdn06Controller extends ApplicationController { public class Crdn06Controller extends ApplicationController {
@Resource(name="crdn06Service") @Resource(name="crdn06Service")
private Crdn06Service crdn06Service; private CrdnService crdn06Service;
/** . /** .
* @return fims/crdn/crdn06010-main * @return fims/crdn/crdn06010-main
@ -86,7 +87,7 @@ public class Crdn06Controller extends ApplicationController {
} }
/** .<br /> /** .<br />
* {@link Crdn06Service#getCrackdownList(CrdnQuery)} * {@link Crdn06ServiceBean#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
@ -107,7 +108,7 @@ public class Crdn06Controller extends ApplicationController {
} }
/** .<br /> /** .<br />
* {@link Crdn06Service#getCrackdownList(CrdnQuery)} * {@link Crdn06ServiceBean#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
@ -133,7 +134,7 @@ public class Crdn06Controller extends ApplicationController {
} }
/** .<br /> /** .<br />
* {@link Crdn06Service#getCrackdownList(CrdnQuery)} * {@link Crdn06ServiceBean#getCrackdownList(CrdnQuery)}
* @param req * @param req
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {

@ -1,13 +1,16 @@
package cokr.xit.fims.task; package cokr.xit.fims.task;
import javax.annotation.Resource; import javax.annotation.Resource;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.service.Crdn06Service; import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.fims.crdn.service.bean.Crdn06Bean;
@Controller @Controller
public class DpvController { public class DpvController {
@ -28,7 +31,10 @@ public class DpvController {
@RequestMapping(name="장애인과태료업무 단속업무", value="/DPV/crdn/crdn06") @RequestMapping(name="장애인과태료업무 단속업무", value="/DPV/crdn/crdn06")
class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller { class Crdn06Controller extends cokr.xit.fims.crdn.web.Crdn06Controller {
@Resource(name="crdn06Service") @Resource(name="crdn06Service")
private Crdn06Service crdn06Service; private CrdnService crdn06Service;
@Resource(name="crdn06Bean")
private Crdn06Bean crdn06Bean;
/** .<br /> /** .<br />
* {@link Crdn06Service#getCrackdownList(CrdnQuery)} * {@link Crdn06Service#getCrackdownList(CrdnQuery)}
@ -62,7 +68,7 @@ public class DpvController {
@PostMapping(name = "단속 대장 수정", value = "/030/update.do") @PostMapping(name = "단속 대장 수정", value = "/030/update.do")
public ModelAndView update(Crdn crdn) { public ModelAndView update(Crdn crdn) {
crdn.setUpdateInfomation("tagInformationUndefinedData"); crdn.setUpdateInfomation("tagInformationUndefinedData");
boolean saved = crdn06Service.update(crdn); boolean saved = crdn06Bean.update(crdn);
return new ModelAndView("jsonView") return new ModelAndView("jsonView")
.addObject("saved", saved); .addObject("saved", saved);
} }

Loading…
Cancel
Save