단속 관리 수정

main
이범준 1 year ago
parent ea42b3d58c
commit 9f97ac74a9

@ -71,6 +71,6 @@ public interface Crdn01Mapper extends AbstractMapper {
* @param crdn
* @return
*/
int save(Crdn crdn);
int updateCvlcpt(Crdn crdn);
}

@ -18,38 +18,38 @@ public interface Crdn06Mapper extends AbstractMapper {
/** .<br />
* {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)}
* @param req
* @param query
* @return
*/
List<DataObject> selectCrackdownList(CrdnQuery req);
List<DataObject> selectCrackdownList(CrdnQuery crdnQuery);
/** .<br />
* {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)}
* @param req
* @param query
* @return
*/
List<DataObject> selectPhotoInspectionDataList(CrdnQuery setOrderBy);
List<DataObject> selectPhotoInspectionDataList(CrdnQuery crdnQuery);
/** .<br />
* {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)}
* @param req
* @param query
* @return
*/
List<DataObject> selectSameVehicleMainList(CrdnQuery setOrderBy);
List<DataObject> selectSameVehicleMainList(CrdnQuery crdnQuery);
/** .<br />
* {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)}
* @param req
* @param query
* @return
*/
List<DataObject> selectSameVehicleSubList(CrdnQuery setOrderBy);
List<DataObject> selectSameVehicleSubList(CrdnQuery crdnQuery);
/** .<br />
* {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)}
* @param req
* @param query
* @return
*/
List<DataObject> selectTagInformationUndefinedDataList(CrdnQuery req);
List<DataObject> selectTagInformationUndefinedDataList(CrdnQuery crdnQuery);
/** .
* @param crdn
@ -59,19 +59,17 @@ public interface Crdn06Mapper extends AbstractMapper {
/** .<br />
* {@link cokr.xit.fims.crdn.service.bean.CrdnService#getCrackdownList(CrdnQuery)}
* @param req
* @param query
* @return
*/
List<DataObject> selectFineReductionDataList(QueryRequest setOrderBy);
List<DataObject> selectCrackdowns(CrdnQuery req);
List<DataObject> selectFineReductionDataList(QueryRequest crdnQuery);
/** .<br />
* {@link cokr.xit.fims.crdn.service.bean.Crdn06Bean#update(Crdn)}
* @param crdn
* @return
*/
int update(Crdn crdn);
int updateCrdn(Crdn crdn);
}

@ -9,6 +9,7 @@ import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import cokr.xit.fims.crdn.Crdn;
import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.dao.Crdn01Mapper;
import cokr.xit.foundation.AbstractComponent;
@ -42,6 +43,8 @@ public class Crdn01Bean extends AbstractComponent {
return crdn01Mapper.selectCivilComplaintOriginalInfo(crdnQuery);
}
public boolean update(Crdn crdn) {
return crdn01Mapper.updateCvlcpt(crdn) == 1 ? true : false;
}
}

@ -29,7 +29,7 @@ public class Crdn06Bean extends AbstractComponent {
case "tagInformationUndefinedData":
return crdn06Mapper.updateTagInformation(crdn) == 1 ? true : false;
default:
return crdn06Mapper.update(crdn) == 1 ? true : false;
return crdn06Mapper.updateCrdn(crdn) == 1 ? true : false;
}
}

@ -44,6 +44,7 @@ import kr.dogfoot.hwplib.writer.HWPWriter;
@Service("crdnService")
public class CrdnServiceBean extends AbstractServiceBean implements CrdnService {
@Resource(name="crdn01Mapper")
protected Crdn01Mapper crdn01Mapper;
@ -318,6 +319,8 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
@Override
public boolean save(Crdn crdn, List<FileInfo> newFileInfoList) {
boolean saved;
int fileInsertEffected = 0;
int fileDeleteEffected = 0;
@ -331,7 +334,9 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService
crdn.setFileChgCnt(fileInsertEffected - fileDeleteEffected);
return crdn06Bean.update(crdn);
saved = crdn01Bean.update(crdn);
saved = crdn06Bean.update(crdn);
return saved;
}
@Override

@ -6,7 +6,8 @@
<result property="crdnId" column="CRDN_ID" /> <!-- 단속 ID -->
</resultMap>
<sql id="selectCivilComplaint">
<select id="selectCivilComplaintList" parameterType="map" resultType="dataobject">
/* 민원자료 목록 조회(crdn01Mapper.selectCivilComplaintList) */
<include refid="utility.paging-prefix"/>
SELECT C.CRDN_ID <!-- 단속 ID -->
, C.SGG_CD <!-- 시군구 코드 -->
@ -142,11 +143,6 @@ AND C.${by} LIKE CONCAT('%', #{term}, '%')
<include refid="utility.orderBy" />
<include refid="utility.paging-suffix"/>
</sql>
<select id="selectCivilComplaintList" parameterType="map" resultType="dataobject">
/* 민원자료 목록 조회(crdn01Mapper.selectCivilComplaintList) */
<include refid="selectCivilComplaint"/>
</select>
<select id="selectCivilComplaintReceiptDataList" parameterType="map" resultType="dataobject">
@ -359,4 +355,12 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
AND C.CRDN_ID = #{crdnId}
</select>
<update id="updateCvlcpt" parameterType="cokr.xit.fims.crdn.Crdn">
/* 민원정보 수정(crdn01Mapper.updateCvlcpt) */
UPDATE TB_CRDN <!-- TODO : 컬럼 추가 -->
SET MDFCN_DT = <include refid="utility.now" /> /* 수정일시 */
, MDFR = #{modifiedBy} /* 수정자 */
WHERE CRDN_ID = #{crdnId} /* 단속 ID */
</update>
</mapper>

@ -96,7 +96,8 @@
<result property="delRsn" column="DEL_RSN" /> <!-- 삭제 사유 -->
</resultMap>
<sql id="selectCrackdown">
<select id="selectCrackdownList" parameterType="map" resultType="dataobject">
/* 단속자료 목록 조회(crdn06Mapper.selectCrackdownList) */
<include refid="utility.paging-prefix"/>
SELECT C.CRDN_ID <!-- 단속 ID -->
, C.SGG_CD <!-- 시군구 코드 -->
@ -232,11 +233,6 @@ AND C.${by} LIKE CONCAT('%', #{term}, '%')
<include refid="utility.orderBy" />
<include refid="utility.paging-suffix"/>
</sql>
<select id="selectCrackdownList" parameterType="map" resultType="dataobject">
/* 단속자료 목록 조회(crdn06Mapper.selectCrackdownList) */
<include refid="selectCrackdown"/>
</select>
<select id="selectPhotoInspectionDataList" parameterType="map" resultType="dataobject">
@ -493,13 +489,9 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
<include refid="utility.paging-suffix"/>
</select>
<select id="selectCrackdowns" parameterType="map" resultMap="crdnRow">
/* 단속자료 가져오기 (crdn06Mapper.selectCrackdowns) */
<include refid="selectCrackdown"/>
</select>
<update id="update" parameterType="cokr.xit.fims.crdn.Crdn">
/* 단속정보 수정(crdn06Mapper.update) */
<update id="updateCrdn" parameterType="cokr.xit.fims.crdn.Crdn">
/* 단속정보 수정(crdn06Mapper.updateCrdn) */
UPDATE TB_CRDN
SET ATCH_FILE_CNT = ATCH_FILE_CNT + (#{fileChgCnt})
<!-- TODO : 컬럼 추가 -->

Loading…
Cancel
Save