민원 수정

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

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

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

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

@ -319,7 +319,7 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
}
@Override
public boolean update(Crdn crdn, List<FileInfo> newFileInfoList) {
public boolean acceptCvlcpt(Crdn crdn, List<FileInfo> newFileInfoList) {
boolean saved;
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);
//saved = crdn01Bean.update(crdnCvlcpt);
saved = crdn01Bean.accept(crdnCvlcpt);
}
saved = crdn06Bean.update(crdn);
@ -422,4 +422,9 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
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);
}
/** .
/** ().
* @param crdnId
* @return jsonView
* <pre><code> {
@ -233,8 +233,8 @@ public class Crdn01Controller extends ApplicationController {
* "saved": true, false
* }</code></pre>
*/
@RequestMapping(name="민원자료 저장", value="/020/save.do")
public ModelAndView saveCivilComplaint(Crdn crdn, MultipartFile[] newFileList, MultipartFile[] modifyFileList) {
@RequestMapping(name="민원내용 수용", value="/020/save.do")
public ModelAndView acceptCivilComplaint(Crdn crdn, MultipartFile[] newFileList, MultipartFile[] modifyFileList) {
boolean saved = false;
@ -263,7 +263,7 @@ public class Crdn01Controller extends ApplicationController {
}
crdn.setCvlcptLinkYn("Y");
saved = crdnService.update(crdn, newFileInfoList);
saved = crdnService.acceptCvlcpt(crdn, newFileInfoList);
return new ModelAndView("jsonView")
.addObject("saved", saved);

@ -399,10 +399,16 @@ INSERT INTO TB_CRDN_CVLCPT (
, #{delRsn} <!-- 삭제 사유 -->
)</insert>
<update id="updateCvlcpt" parameterType="cokr.xit.fims.crdn.CrdnCvlcpt">
/* 민원정보 수정(crdn01Mapper.updateCvlcpt) */
UPDATE TB_CRDN_CVLCPT <!-- TODO : 컬럼 추가 -->
SET MDFCN_DT = <include refid="utility.now" /> /* 수정일시 */
<update id="acceptCvlcpt" parameterType="cokr.xit.fims.crdn.CrdnCvlcpt">
/* 단속민원 수용(crdn01Mapper.acceptCvlcpt) */
UPDATE TB_CRDN_CVLCPT
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} /* 수정자 */
WHERE CVLCPT_LINK_ID = #{linkId} /* 연계 ID */
</update>

Loading…
Cancel
Save