민원 관리 수정

main
이범준 1 year ago
parent 5b2304ed95
commit 857e7047d3

@ -431,4 +431,9 @@ public class Crdn extends AbstractEntity {
* *
*/ */
private String linkNm; private String linkNm;
/**
*
*/
private String cvlcptLinkYn;
} }

@ -5,7 +5,6 @@ import java.util.Map;
import org.egovframe.rte.psl.dataaccess.mapper.Mapper; import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
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.foundation.component.AbstractMapper; import cokr.xit.foundation.component.AbstractMapper;
@ -74,10 +73,10 @@ public interface Crdn01Mapper extends AbstractMapper {
*/ */
int insertCvlcpt(CrdnCvlcpt cvlcpt); int insertCvlcpt(CrdnCvlcpt cvlcpt);
/** . TODO : mybatis /** .
* @param crdn * @param crdn
* @return * @return
*/ */
int updateCvlcpt(Crdn crdn); int updateCvlcpt(CrdnCvlcpt cvlcpt);
} }

@ -9,7 +9,7 @@ import javax.annotation.Resource;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.CrdnCvlcpt;
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.foundation.AbstractComponent; import cokr.xit.foundation.AbstractComponent;
@ -43,8 +43,8 @@ public class Crdn01Bean extends AbstractComponent {
return crdn01Mapper.selectCivilComplaintOriginalInfo(crdnQuery); return crdn01Mapper.selectCivilComplaintOriginalInfo(crdnQuery);
} }
public boolean update(Crdn crdn) { public boolean update(CrdnCvlcpt cvlcpt) {
return crdn01Mapper.updateCvlcpt(crdn) == 1 ? true : false; return crdn01Mapper.updateCvlcpt(cvlcpt) == 1 ? true : false;
} }
} }

@ -24,6 +24,7 @@ import cokr.xit.fims.cmmn.hwp.AddingParagraphBetweenHWPFile;
import cokr.xit.fims.cmmn.hwp.InsertingImageCell; import cokr.xit.fims.cmmn.hwp.InsertingImageCell;
import cokr.xit.fims.cmmn.service.bean.CrdnSttsHstryBean; import cokr.xit.fims.cmmn.service.bean.CrdnSttsHstryBean;
import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnCvlcpt;
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.dao.Crdn05Mapper; import cokr.xit.fims.crdn.dao.Crdn05Mapper;
@ -334,7 +335,15 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
crdn.setFileChgCnt(fileInsertEffected - fileDeleteEffected); crdn.setFileChgCnt(fileInsertEffected - fileDeleteEffected);
saved = crdn01Bean.update(crdn); if(ifEmpty(crdn.getCvlcptLinkYn(),() -> "").equals("Y")) {
CrdnCvlcpt crdnCvlcpt = new CrdnCvlcpt();
crdnCvlcpt.setCvlcptLinkId(crdn.getLinkId());
//crdnCvlcpt.set(crdn.get);
//crdnCvlcpt.set(crdn.get);
//crdnCvlcpt.set(crdn.get);
//saved = crdn01Bean.update(crdnCvlcpt);
}
saved = crdn06Bean.update(crdn); saved = crdn06Bean.update(crdn);
return saved; return saved;
} }

@ -262,6 +262,7 @@ public class Crdn01Controller extends ApplicationController {
} }
} }
crdn.setCvlcptLinkYn("Y");
saved = crdnService.update(crdn, newFileInfoList); saved = crdnService.update(crdn, newFileInfoList);
return new ModelAndView("jsonView") return new ModelAndView("jsonView")

@ -378,7 +378,6 @@ INSERT INTO TB_CRDN_CVLCPT (
, DEL_DT <!-- 삭제 일시 --> , DEL_DT <!-- 삭제 일시 -->
, DLTR <!-- 삭제자 --> , DLTR <!-- 삭제자 -->
, DEL_RSN <!-- 삭제 사유 --> , DEL_RSN <!-- 삭제 사유 -->
, CRDN_ID <!-- 단속 ID -->
) VALUES ( ) VALUES (
#{cvlcptLinkId} <!-- 민원 연계 ID --> #{cvlcptLinkId} <!-- 민원 연계 ID -->
, #{cvlcptInptSeCd} <!-- 민원 입력 구분 코드 --> , #{cvlcptInptSeCd} <!-- 민원 입력 구분 코드 -->
@ -410,10 +409,9 @@ INSERT INTO TB_CRDN_CVLCPT (
, #{removedAt} <!-- 삭제 일시 --> , #{removedAt} <!-- 삭제 일시 -->
, #{removedBy} <!-- 삭제자 --> , #{removedBy} <!-- 삭제자 -->
, #{delRsn} <!-- 삭제 사유 --> , #{delRsn} <!-- 삭제 사유 -->
, #{crdnId} <!-- 단속 ID -->
)</insert> )</insert>
<update id="updateCvlcpt" parameterType="cokr.xit.fims.crdn.Crdn"> <update id="updateCvlcpt" parameterType="cokr.xit.fims.crdn.CrdnCvlcpt">
/* 민원정보 수정(crdn01Mapper.updateCvlcpt) */ /* 민원정보 수정(crdn01Mapper.updateCvlcpt) */
UPDATE TB_CRDN_CVLCPT <!-- TODO : 컬럼 추가 --> UPDATE TB_CRDN_CVLCPT <!-- TODO : 컬럼 추가 -->
SET MDFCN_DT = <include refid="utility.now" /> /* 수정일시 */ SET MDFCN_DT = <include refid="utility.now" /> /* 수정일시 */

@ -415,7 +415,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
<update id="updateTagInformation" parameterType="cokr.xit.fims.crdn.Crdn"> <update id="updateTagInformation" parameterType="cokr.xit.fims.crdn.Crdn">
/* 표지정보확인 수정(crdn06Mapper.updateTagInformation) */ /* 표지정보확인 수정(crdn06Mapper.updateTagInformation) */
UPDATE TB_CRDN UPDATE TB_CRDN_ADI
SET PARKNG_PSBLTY_RSLT_CD = '1' SET PARKNG_PSBLTY_RSLT_CD = '1'
, MDFCN_DT = <include refid="utility.now" /> /* 수정일시 */ , MDFCN_DT = <include refid="utility.now" /> /* 수정일시 */
, MDFR = #{modifiedBy} /* 수정자 */ , MDFR = #{modifiedBy} /* 수정자 */

Loading…
Cancel
Save