민원 수정

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

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

@ -23,6 +23,8 @@ import cokr.xit.fims.cmmn.hwp.InsertingImageCell;
import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnCvlcpt;
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.service.CrdnCvlcptService;
import cokr.xit.fims.sprt.Sprt;
@ -45,6 +47,31 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
@Resource(name = "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
public Map<String, String> makeFileFromHwpFormat(CrdnQuery crdnQuery) {
String baseFormatFilePath = ("classpath:format/cvlcptOrgnl_text.hwp");
@ -257,4 +284,5 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv
return saved;
}
}

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

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

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