민원 수정

main
이범준 1 year ago
parent 43e955153c
commit bfc371546b

@ -10,6 +10,12 @@ import cokr.xit.foundation.data.DataObject;
public interface CrdnCvlcptService { public interface CrdnCvlcptService {
/** .
* @param crdnQuery
* @return
*/
List<DataObject> getCrackdownList(CrdnQuery crdnQuery);
/** . /** .
* @param crdnQuery * @param crdnQuery
* @return * @return

@ -23,6 +23,8 @@ import cokr.xit.fims.cmmn.hwp.InsertingImageCell;
import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnCvlcpt; import cokr.xit.fims.crdn.CrdnCvlcpt;
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.Crdn06Mapper;
import cokr.xit.fims.crdn.dao.CrdnCvlcptMapper; import cokr.xit.fims.crdn.dao.CrdnCvlcptMapper;
import cokr.xit.fims.crdn.service.CrdnCvlcptService; import cokr.xit.fims.crdn.service.CrdnCvlcptService;
import cokr.xit.fims.sprt.Sprt; import cokr.xit.fims.sprt.Sprt;
@ -45,6 +47,31 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
@Resource(name = "crdnCvlcptMapper") @Resource(name = "crdnCvlcptMapper")
private CrdnCvlcptMapper crdnCvlcptMapper; private CrdnCvlcptMapper crdnCvlcptMapper;
@Resource(name="crdn05Mapper")
protected Crdn05Mapper crdn05Mapper;
@Resource(name="crdn06Mapper")
protected Crdn06Mapper crdn06Mapper;
@Override
public List<DataObject> getCrackdownList(CrdnQuery crdnQuery) {
List<DataObject> dataObjectList = new ArrayList<DataObject>();
switch (ifEmpty(crdnQuery.getGridType(), () -> "")) {
case "receiptData":
dataObjectList = crdnCvlcptMapper.selectCivilComplaintReceiptDataList(crdnQuery.setOrderBy("CVLCPT_RCPT_YMD"));
break;
case "answerTargetData":
dataObjectList = crdnCvlcptMapper.selectCivilComplaintAnswerTargetDataList(crdnQuery.setOrderBy("CRDN_ID"));
break;
default:
dataObjectList = crdnCvlcptMapper.selectCivilComplaintList(crdnQuery.setOrderBy("CRDN_ID"));
break;
}
return dataObjectList;
}
@Override @Override
public Map<String, String> makeFileFromHwpFormat(CrdnQuery crdnQuery) { public Map<String, String> makeFileFromHwpFormat(CrdnQuery crdnQuery) {
String baseFormatFilePath = ("classpath:format/cvlcptOrgnl_text.hwp"); String baseFormatFilePath = ("classpath:format/cvlcptOrgnl_text.hwp");
@ -257,4 +284,5 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
return saved; return saved;
} }
} }

@ -76,12 +76,6 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
case "sameVehicleSub": case "sameVehicleSub":
dataObjectList = crdn06Mapper.selectSameVehicleSubList(req.setOrderBy("CRDN_ID")); dataObjectList = crdn06Mapper.selectSameVehicleSubList(req.setOrderBy("CRDN_ID"));
break; break;
case "receiptData":
dataObjectList = crdnCvlcptMapper.selectCivilComplaintReceiptDataList(req.setOrderBy("CVLCPT_RCPT_YMD"));
break;
case "answerTargetData":
dataObjectList = crdnCvlcptMapper.selectCivilComplaintAnswerTargetDataList(req.setOrderBy("CRDN_ID"));
break;
case "todayInsert": case "todayInsert":
req.setCurrentUserId(currentUser().getId()); req.setCurrentUserId(currentUser().getId());
req.setOrderBy("CRDN_ID"); req.setOrderBy("CRDN_ID");

@ -120,7 +120,7 @@ public class Crdn01Controller extends ApplicationController {
public ModelAndView getCivilComplaintReceiptDataList(CrdnQuery req) { public ModelAndView getCivilComplaintReceiptDataList(CrdnQuery req) {
req.setGridType("receiptData"); req.setGridType("receiptData");
setFetchSize(req); setFetchSize(req);
return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(req),""); return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCrackdownList(req),"");
} }
/** .<br /> /** .<br />
@ -193,7 +193,7 @@ public class Crdn01Controller extends ApplicationController {
public ModelAndView selectCivilComplaintAnswerTargetDataList(CrdnQuery req) { public ModelAndView selectCivilComplaintAnswerTargetDataList(CrdnQuery req) {
req.setGridType("answerTargetData"); req.setGridType("answerTargetData");
setFetchSize(req); setFetchSize(req);
return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(req), ""); return setCollectionInfo(new ModelAndView("jsonView"), crdnCvlcptService.getCrackdownList(req), "");
} }
/** .<br /> /** .<br />
@ -210,7 +210,7 @@ public class Crdn01Controller extends ApplicationController {
@RequestMapping(name="민원자료 목록", value="/040/list.do") @RequestMapping(name="민원자료 목록", value="/040/list.do")
public ModelAndView getCivilComplaintList(CrdnQuery req) { public ModelAndView getCivilComplaintList(CrdnQuery req) {
setFetchSize(req); setFetchSize(req);
return setCollectionInfo(new ModelAndView("jsonView"),crdnService.getCrackdownList(req),""); return setCollectionInfo(new ModelAndView("jsonView"),crdnCvlcptService.getCrackdownList(req),"");
} }
/** . /** .
@ -230,7 +230,7 @@ public class Crdn01Controller extends ApplicationController {
.addObject("saved", saved); .addObject("saved", saved);
} }
/** (). /** .
* @param crdnId * @param crdnId
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
@ -238,8 +238,8 @@ public class Crdn01Controller extends ApplicationController {
* "saved": true, false * "saved": true, false
* }</code></pre> * }</code></pre>
*/ */
@RequestMapping(name="민원내용 수용", value="/020/save.do") @RequestMapping(name="민원 정보 수정", value="/020/save.do")
public ModelAndView acceptCivilComplaint(HttpServletRequest req, Crdn crdn, MultipartFile[] newFileList, MultipartFile[] modifyFileList) { public ModelAndView saveCivilComplaintProcess(HttpServletRequest req, Crdn crdn, MultipartFile[] newFileList, MultipartFile[] modifyFileList) {
boolean saved = false; boolean saved = false;

@ -413,7 +413,7 @@ INSERT INTO TB_CRDN_CVLCPT (
WHERE CVLCPT_LINK_ID = #{cvlcptLinkId} /* 연계 ID */ WHERE CVLCPT_LINK_ID = #{cvlcptLinkId} /* 연계 ID */
</update> </update>
<update id="updateCrdn" parameterType="cokr.xit.fims.crdn.Crdn"> <update id="updateCrdn" parameterType="map">
/* 단속정보 수정(crdnCvlcptMapper.updateCrdn) */ /* 단속정보 수정(crdnCvlcptMapper.updateCrdn) */
UPDATE TB_CRDN UPDATE TB_CRDN
SET MDFCN_DT = <include refid="utility.now" /> /* 수정일시 */ SET MDFCN_DT = <include refid="utility.now" /> /* 수정일시 */
@ -430,15 +430,17 @@ INSERT INTO TB_CRDN_CVLCPT (
, VHCL_NM = #{crdn.vhclNm} /* 차량 명 */ , VHCL_NM = #{crdn.vhclNm} /* 차량 명 */
, VHCL_COLOR = #{crdn.vhclColor} /* 차량 색상 */ , VHCL_COLOR = #{crdn.vhclColor} /* 차량 색상 */
, ETC_CN = #{crdn.etcCn} /* 기타 내용 */ , ETC_CN = #{crdn.etcCn} /* 기타 내용 */
<if test="changeAmountYn == 'Y'">
, FFNLG_AMT = #{crdn.ffnlgAmt} /* 과태료 금액 */ , FFNLG_AMT = #{crdn.ffnlgAmt} /* 과태료 금액 */
, LEVY_AMT = #{crdn.levyAmt} /* 부과 금액 */ , LEVY_AMT = #{crdn.levyAmt} /* 부과 금액 */
, FFNLG_RDUCT_RT = #{crdn.ffnlgRductRt} /* 과태료 감경 율 */ , FFNLG_RDUCT_RT = #{crdn.ffnlgRductRt} /* 과태료 감경 율 */
, ADVNTCE_LEVY_AMT = #{crdn.advntceLevyAmt} /* 사전통지 부과 금액 */ , ADVNTCE_LEVY_AMT = #{crdn.advntceLevyAmt} /* 사전통지 부과 금액 */
<if test="crdnSttsCd != ''"> </if>
, CRDN_STTS_CD = #{crdnSttsCd} /* 단속 상태 코드 */ <if test="changeStatusYn == 'Y'">
, CRDN_STTS_CD = #{crdn.crdnSttsCd} /* 단속 상태 코드 */
, CRDN_STTS_CHG_DT = <include refid="utility.now" /> /* 단속 상태 변경 일시 */ , CRDN_STTS_CHG_DT = <include refid="utility.now" /> /* 단속 상태 변경 일시 */
</if> </if>
WHERE CRDN_ID = #{crdnId} /* 단속 ID */ WHERE CRDN_ID = #{crdn.crdnId} /* 단속 ID */
</update> </update>
</mapper> </mapper>
Loading…
Cancel
Save