fix : 처리상태변경이력 테이블 변경

main
이범준 1 year ago
parent 936eadace7
commit e4a4a728f6

@ -416,15 +416,11 @@ public class RtDTO {
/** /**
* *
*/ */
private String histSn; private String sttsHstryId;
/** /**
* *
*/ */
private String crdnSttsCd; private String crdnSttsCd;
/**
*
*/
private String changePosblYn;
/** /**
* *
*/ */

@ -40,7 +40,7 @@ public interface RtCrackdownMgtMapper {
//----------------------------------------------------- //-----------------------------------------------------
// 상태변경이력 : tb_rt_process_sttus_change_hist // 상태변경이력 : tb_crdn_stts_hstry
//----------------------------------------------------- //-----------------------------------------------------
void insertRtProcessSttsChangeHist(final RtDTO.SttusChangeHist dto); void insertRtProcessSttsChangeHist(final RtDTO.SttusChangeHist dto);

@ -328,11 +328,11 @@
<select id="selectProcessSttusChangeHist" resultType="kr.xit.fims.biz.rt.RtDTO$SttusChangeHist"> <select id="selectProcessSttusChangeHist" resultType="kr.xit.fims.biz.rt.RtDTO$SttusChangeHist">
/* cmm-fims-crackdown-mysql-mapper|selectProcessSttusChangeHist-단속자료 변경 이력 조회|julim */ /* cmm-fims-crackdown-mysql-mapper|selectProcessSttusChangeHist-단속자료 변경 이력 조회|julim */
SELECT hist_sn SELECT stts_hstry_id
, crdn_stts_cd , crdn_stts_cd
, reg_dt , reg_dt
, etc_cn , etc_cn
FROM tb_rt_process_sttus_change_hist FROM tb_crdn_stts_hstry
WHERE crdn_id = #{crdnId} WHERE crdn_id = #{crdnId}
</select> </select>

@ -425,26 +425,24 @@
<!-- ************************************************************************************************************* <!-- *************************************************************************************************************
* tb_rt_process_sttus_change_hist : 처리상태변경이력 * tb_crdn_stts_hstry : 처리상태변경이력
************************************************************************************************************** --> ************************************************************************************************************** -->
<insert id="insertRtProcessSttsChangeHist"> <insert id="insertRtProcessSttsChangeHist">
/* rt-reglt-and-erpp-mysql-mapper|insertRtProcessSttsChangeHist-처리상태변경이력 등록|julim */ /* rt-reglt-and-erpp-mysql-mapper|insertRtProcessSttsChangeHist-처리상태변경이력 등록|julim */
INSERT INSERT
INTO tb_rt_process_sttus_change_hist ( INTO tb_crdn_stts_hstry (
crdn_id crdn_id
, hist_sn , stts_hstry_id
, crdn_stts_cd , crdn_stts_cd
, change_posbl_yn
, etc_cn , etc_cn
, reg_dt , reg_dt
, rgtr , rgtr
) VALUES ( ) VALUES (
#{crdnId} #{crdnId}
, (SELECT LPAD(IFNULL(MAX(CAST(tgt.hist_sn AS UNSIGNED)) + 1, 1), 2, '0') , (SELECT LPAD(IFNULL(MAX(CAST(tgt.stts_hstry_id AS UNSIGNED)) + 1, 1), 2, '0')
FROM tb_rt_process_sttus_change_hist tgt FROM tb_crdn_stts_hstry tgt
WHERE tgt.crdn_id = #{crdnId}) WHERE tgt.crdn_id = #{crdnId})
, #{crdnSttsCd} , #{crdnSttsCd}
, #{changePosblYn}
, #{etcCn} , #{etcCn}
, DATE_FORMAT(NOW(), '%Y%m%d%H%i%s') , DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, #{rgtr} , #{rgtr}

Loading…
Cancel
Save