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