refactor : 단속 테이블 수정

main
이범준 1 year ago
parent c26b5e3951
commit bad8f63a82

@ -116,7 +116,7 @@ public class FimsCrackdownMgtServiceBean extends AbstractServiceBean implements
//면제차량 여부 추가 : $('input:checkbox[name=sysSeCd]:checked').val()
infoDTO.setRtpyrId(rtpyrDTO.getRtpyrId());
infoDTO.setCrdnSttsCd(FimsConst.CrdnSttsCd.CRACKDOWN.getCode());
infoDTO.setLastOpetr(getUserInfo().getUniqId());
infoDTO.setMdfr(getUserInfo().getUniqId());
// 단속 상태 변경 여부 - 이력테이블
boolean isStsChange = !Objects.equals(infoDTO.getCrdnSttsCd(), mapper.selectRegltSts(infoDTO.getCrdnId()));
@ -185,7 +185,7 @@ public class FimsCrackdownMgtServiceBean extends AbstractServiceBean implements
//면제차량 여부 추가 : $('input:checkbox[name=sysSeCd]:checked').val()
infoDTO.setRtpyrId(rtpyrDTO.getRtpyrId());
infoDTO.setCrdnSttsCd(FimsConst.CrdnSttsCd.ENLIGHT.getCode());;
infoDTO.setLastOpetr(getUserInfo().getUniqId());
infoDTO.setMdfr(getUserInfo().getUniqId());
// 단속 상태 변경 여부 - 이력테이블
boolean isStsChange = !Objects.equals(infoDTO.getCrdnSttsCd(), mapper.selectRegltSts(infoDTO.getCrdnId()));
@ -241,7 +241,7 @@ public class FimsCrackdownMgtServiceBean extends AbstractServiceBean implements
RtDTO.Erpp erppDTO = saveDTO.getErppDTO();
infoDTO.setCrdnSttsCd(FimsConst.CrdnSttsCd.DISALLOW.getCode());
infoDTO.setLastOpetr(getUserInfo().getUniqId());
infoDTO.setMdfr(getUserInfo().getUniqId());
// 단속 상태 변경 여부 - 이력테이블
boolean isStsChange = !Objects.equals(infoDTO.getCrdnSttsCd(), mapper.selectRegltSts(infoDTO.getCrdnId()));

@ -172,13 +172,13 @@ public class RtDTO {
*/
private String rgtr;
/**
*
*
*/
private String lastProcessDt;
private String mdfcnDt;
/**
*
*
*/
private String lastOpetr;
private String mdfr;
/**
*
*/

@ -40,8 +40,6 @@
, trr.etc_cn -- 특기사항
, trr.crdn_sparea_cd -- 단속특별구역코드
, trr.crdn_stts_cd
, trr.last_process_dt -- 최종처리일시
, trr.last_opetr -- 최종 처리자
, trr.crdn_reg_se_cd -- 등록구분
, CONCAT(trr.crdn_ymd, trr.crdn_bgng_tm) AS crdnYmdTime
, trr.reg_dt
@ -80,6 +78,8 @@
AND tgt.vhrno = trr.vhrno
)
) AS minwonCnt
, trr.mdfcn_dt -- 최종처리일시
, trr.mdfr -- 최종 처리자
FROM tb_rt_reglt trr
LEFT JOIN tb_ec_extrl_reglt_cntc teerc
ON trr.crdn_id = teerc.crdn_id
@ -210,8 +210,8 @@
, rtpyr_id = IF(rtpyr_id = #{rtpyrId}, rtpyr_id, #{rtpyrId})
, enlight_process_de = IF(enlight_process_de = #{enlightProcessDe}, enlight_process_de, #{enlightProcessDe})
, enlight_resn_code = IF(enlight_resn_code = #{enlightResnCode}, enlight_resn_code, #{enlightResnCode})
, last_process_dt = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, last_opetr = #{lastOpetr}
, mdfcn_dt = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, mdfr = #{mdfr}
WHERE crdn_id = #{crdnId}
</update>
@ -219,8 +219,8 @@
/* cmm-fims-crackdown-mysql-mapper|updateProcessStsAndProcessDtRtReglt-단속 상태와 최종처리일 변경|julim */
UPDATE tb_rt_reglt
SET crdn_stts_cd = IF(crdn_stts_cd = #{crdnSttsCd}, crdn_stts_cd, #{crdnSttsCd})
, last_process_dt = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, last_opetr = #{lastOpetr}
, mdfcn_dt = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, mdfr = #{mdfr}
WHERE crdn_id = #{crdnId}
</update>

@ -41,11 +41,12 @@
, trr.etc_cn -- 특기사항
, trr.crdn_sparea_cd -- 단속특별구역코드
, trr.crdn_stts_cd
, trr.last_process_dt
, trr.last_opetr
, trr.reg_dt
, trr.crdn_reg_se_cd
, CONCAT(trr.crdn_ymd, trr.crdn_bgng_tm) AS crdnYmdTime
, trr.reg_dt
, trr.rgtr
, trr.mdfcn_dt
, trr.mdfr
FROM tb_rt_reglt trr
</sql>
<!--
@ -160,8 +161,8 @@
, vhcl_nm = IF(vhcl_nm = #{vhclNm}, vhcl_nm, #{vhclNm})
, violt_dtls_code = IF(violt_dtls_code = #{violtDtlsCode}, violt_dtls_code, #{violtDtlsCode})
, etc_cn = IF(etc_cn = #{etcCn}, etc_cn, #{etcCn})
, last_process_dt = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, last_opetr = #{lastOpetr}
, mdfcn_dt = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
, mdfr = #{mdfr}
WHERE crdn_id = #{crdnId}
</update>

@ -247,7 +247,6 @@ Date Author Description
<th>처리상태</th>
<td colspan="2">
<div class="d-flex gap-1">
<input type="text" data-fmt-type="dt" name="lastProcessDt" readonly/>
<code:select id="crdnSttsCd" name="crdnSttsCd" grpId="FIM010" title="단속처리상태" cls="form-select w-form-select" alt="단속처리상태" disabled="true"/>
</div>
</td>

@ -306,7 +306,7 @@
},
{
header: '최종처리일시',
name: 'last_process_dt',
name: 'mdfcnDt',
minWidth: 150,
sortable: false,
align: 'center',

@ -96,9 +96,9 @@
</tr>
<tr>
<th>최종처리일시</th>
<td><input type="text" id="lastProcessDt" name="lastProcessDt" value="${dto.lastProcessDt}"></td>
<td><input type="text" id="mdfcnDt" name="mdfcnDt" value="${dto.mdfcnDt}"></td>
<th>최종처리자</th>
<td colspan=""><input type="text" id="lastOpetr" name="lastOpetr" value="${dto.lastOpetr}"></td>
<td colspan=""><input type="text" id="mdfr" name="mdfr" value="${dto.mdfr}"></td>
</tr>
</tbody>
</table>

Loading…
Cancel
Save