민원 삭제 수정

main
이범준 1 year ago
parent 857e7047d3
commit 4deeae4604

@ -1,7 +1,6 @@
package cokr.xit.fims.crdn.dao;
import java.util.List;
import java.util.Map;
import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
@ -37,12 +36,6 @@ public interface Crdn01Mapper extends AbstractMapper {
*/
List<DataObject> selectCivilComplaintAnswerTargetDataList(CrdnQuery query);
/** .
* @param params
* @return
*/
int remove(Map<String, Object> map);
/** .
* @param query
* @return

@ -1,6 +1,7 @@
package cokr.xit.fims.crdn.dao;
import java.util.List;
import java.util.Map;
import org.egovframe.rte.psl.dataaccess.mapper.Mapper;
@ -40,6 +41,12 @@ public interface Crdn05Mapper extends AbstractMapper {
*/
int insertCrdnAddition(Crdn crdn);
/** .
* @param params
* @return
*/
int removeCrdn(Map<String, Object> map);
/** .<br />
* {@link cokr.xit.fims.crdn.service.bean.Crdn05Bean#getBasicAmt(CrdnQuery)}
* @param query

@ -12,6 +12,7 @@ import org.springframework.stereotype.Component;
import cokr.xit.fims.crdn.CrdnCvlcpt;
import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.dao.Crdn01Mapper;
import cokr.xit.fims.crdn.dao.Crdn05Mapper;
import cokr.xit.foundation.AbstractComponent;
import cokr.xit.foundation.UserInfo;
import cokr.xit.foundation.data.DataObject;
@ -25,6 +26,9 @@ public class Crdn01Bean extends AbstractComponent {
@Resource(name = "crdn01Mapper")
private Crdn01Mapper crdn01Mapper;
@Resource(name = "crdn05Mapper")
private Crdn05Mapper crdn05Mapper;
public boolean remove(String... crdnIDs) {
if (isEmpty(crdnIDs)) return false;
@ -33,7 +37,7 @@ public class Crdn01Bean extends AbstractComponent {
paramMap.put("crdnIDs", crdnIdList);
paramMap.put("removedBy", UserInfo.current().getId());
return crdn01Mapper.remove(paramMap) == 1 ? true : false;
return crdn05Mapper.removeCrdn(paramMap) == 1 ? true : false;
}
public DataObject getCivilComplaintOriginalInfo(CrdnQuery crdnQuery) {

@ -251,18 +251,6 @@ AND (SELECT VLTN_ARTCL FROM TB_VLTN_INFO WHERE VLTN_ID = C.VLTN_ID) LIKE CONCAT(
<include refid="utility.paging-suffix"/>
</select>
<update id="remove" parameterType="map">
/* 민원자료 삭제(crdn01Mapper.remove) */
UPDATE TB_CRDN
SET DEL_YN = 'Y'
, DEL_DT = <include refid="utility.now" /> /* 삭제일시 */
, DLTR = #{removedBy} /* 삭제자 */
WHERE CRDN_ID IN (
<foreach collection="crdnIDs" item="crdnId" separator=",">#{crdnId}</foreach>
)
</update>
<select id="selectCivilComplaintOriginalInfo" parameterType="map" resultType="dataobject">
/* 민원내역 원본 보기(crdn01Mapper.selectCivilComplaintOriginalInfo) */
SELECT C.CRDN_ID <!-- 단속 ID -->

@ -191,6 +191,17 @@ INSERT INTO TB_CRDN (
)
</insert>
<update id="removeCrdn" parameterType="map">
/* 단속자료 삭제(crdn05Mapper.removeCrdn) */
UPDATE TB_CRDN
SET DEL_YN = 'Y'
, DEL_DT = <include refid="utility.now" /> /* 삭제일시 */
, DLTR = #{removedBy} /* 삭제자 */
WHERE CRDN_ID IN (
<foreach collection="crdnIDs" item="crdnId" separator=",">#{crdnId}</foreach>
)
</update>
<select id="selectBasicAmt" parameterType="cokr.xit.fims.crdn.CrdnQuery" resultType="int">
SELECT AMT
FROM TB_AMT_INFO

Loading…
Cancel
Save