민원 수정

main
이범준 1 year ago
parent 93c460808e
commit 03e1486b51

@ -66,10 +66,10 @@ public interface Crdn01Mapper extends AbstractMapper {
*/ */
int insertCvlcpt(CrdnCvlcpt cvlcpt); int insertCvlcpt(CrdnCvlcpt cvlcpt);
/** . /** .
* @param crdn * @param crdn
* @return * @return
*/ */
int updateCvlcpt(CrdnCvlcpt cvlcpt); int acceptCvlcpt(CrdnCvlcpt cvlcpt);
} }

@ -37,6 +37,12 @@ public interface CrdnService {
*/ */
boolean update(Crdn crdn, List<FileInfo> newFileInfoList); boolean update(Crdn crdn, List<FileInfo> newFileInfoList);
/** .
* @param crdn , newFileInfoList
* @return
*/
boolean acceptCvlcpt(Crdn crdn, List<FileInfo> newFileInfoList);
/** . /** .
* @param crdnQuery * @param crdnQuery
* @return map * @return map
@ -52,4 +58,5 @@ public interface CrdnService {
DataObject getCivilComplaintReceiptInitialDataInfo(CrdnQuery req); DataObject getCivilComplaintReceiptInitialDataInfo(CrdnQuery req);
} }

@ -47,8 +47,8 @@ public class Crdn01Bean extends AbstractComponent {
return crdn01Mapper.selectCivilComplaintOriginalInfo(crdnQuery); return crdn01Mapper.selectCivilComplaintOriginalInfo(crdnQuery);
} }
public boolean update(CrdnCvlcpt cvlcpt) { public boolean accept(CrdnCvlcpt cvlcpt) {
return crdn01Mapper.updateCvlcpt(cvlcpt) == 1 ? true : false; return crdn01Mapper.acceptCvlcpt(cvlcpt) == 1 ? true : false;
} }
} }

@ -319,7 +319,7 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
} }
@Override @Override
public boolean update(Crdn crdn, List<FileInfo> newFileInfoList) { public boolean acceptCvlcpt(Crdn crdn, List<FileInfo> newFileInfoList) {
boolean saved; boolean saved;
int fileInsertEffected = 0; int fileInsertEffected = 0;
@ -341,7 +341,7 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
//crdnCvlcpt.set(crdn.get); //crdnCvlcpt.set(crdn.get);
//crdnCvlcpt.set(crdn.get); //crdnCvlcpt.set(crdn.get);
//crdnCvlcpt.set(crdn.get); //crdnCvlcpt.set(crdn.get);
//saved = crdn01Bean.update(crdnCvlcpt); saved = crdn01Bean.accept(crdnCvlcpt);
} }
saved = crdn06Bean.update(crdn); saved = crdn06Bean.update(crdn);
@ -422,4 +422,9 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
return result; return result;
} }
@Override
public boolean update(Crdn crdn, List<FileInfo> newFileInfoList) {
return crdn06Bean.update(crdn);
}
} }

@ -225,7 +225,7 @@ public class Crdn01Controller extends ApplicationController {
.addObject("saved", saved); .addObject("saved", saved);
} }
/** . /** ().
* @param crdnId * @param crdnId
* @return jsonView * @return jsonView
* <pre><code> { * <pre><code> {
@ -233,8 +233,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 saveCivilComplaint(Crdn crdn, MultipartFile[] newFileList, MultipartFile[] modifyFileList) { public ModelAndView acceptCivilComplaint(Crdn crdn, MultipartFile[] newFileList, MultipartFile[] modifyFileList) {
boolean saved = false; boolean saved = false;
@ -263,7 +263,7 @@ public class Crdn01Controller extends ApplicationController {
} }
crdn.setCvlcptLinkYn("Y"); crdn.setCvlcptLinkYn("Y");
saved = crdnService.update(crdn, newFileInfoList); saved = crdnService.acceptCvlcpt(crdn, newFileInfoList);
return new ModelAndView("jsonView") return new ModelAndView("jsonView")
.addObject("saved", saved); .addObject("saved", saved);

@ -399,10 +399,16 @@ INSERT INTO TB_CRDN_CVLCPT (
, #{delRsn} <!-- 삭제 사유 --> , #{delRsn} <!-- 삭제 사유 -->
)</insert> )</insert>
<update id="updateCvlcpt" parameterType="cokr.xit.fims.crdn.CrdnCvlcpt"> <update id="acceptCvlcpt" parameterType="cokr.xit.fims.crdn.CrdnCvlcpt">
/* 민원정보 수정(crdn01Mapper.updateCvlcpt) */ /* 단속민원 수용(crdn01Mapper.acceptCvlcpt) */
UPDATE TB_CRDN_CVLCPT <!-- TODO : 컬럼 추가 --> UPDATE TB_CRDN_CVLCPT
SET MDFCN_DT = <include refid="utility.now" /> /* 수정일시 */ SET CVLCPT_PRCS_CMPTN_DT = <include refid="utility.now" />
, CVLCPT_PRCS_CD = '01'
, CVLCPT_TRSM_CD = #{cvlcptTrsmCd}
, CVLCPT_PRCS_SUMRY = #{cvlcptPrcsSumry}
, CVLCPT_PRCS_RSLT_CN = #{cvlcptPrcsRsltCn}
, CVLCPT_PRCS_PIC = #{modifiedBy}
, MDFCN_DT = <include refid="utility.now" /> /* 수정일시 */
, MDFR = #{modifiedBy} /* 수정자 */ , MDFR = #{modifiedBy} /* 수정자 */
WHERE CVLCPT_LINK_ID = #{linkId} /* 연계 ID */ WHERE CVLCPT_LINK_ID = #{linkId} /* 연계 ID */
</update> </update>

Loading…
Cancel
Save