운행정지 상태관리 기능 추가
parent
46c2c332f6
commit
8ada7f148e
@ -0,0 +1,129 @@
|
||||
package xit.vips.process.model;
|
||||
|
||||
|
||||
import xit.common.model.BaseVO;
|
||||
|
||||
/**
|
||||
*
|
||||
* <ul>
|
||||
* <li>업무 그룹명: 운행정지VO</li>
|
||||
* <li>설 명: </li>
|
||||
* <li>작성일: 2023. 05. 11
|
||||
* </ul>
|
||||
*
|
||||
* @author 최정민
|
||||
*
|
||||
*/
|
||||
public class DisableDriveVO extends BaseVO {
|
||||
|
||||
|
||||
private String atdrc_cd;
|
||||
private String violt_iem_cd;
|
||||
private String manage_year;
|
||||
private String manage_no;
|
||||
private String seq;
|
||||
private String create_dt;
|
||||
private String create_user_cd;
|
||||
private String update_dt;
|
||||
private String update_user_cd;
|
||||
private String delete_yn;
|
||||
|
||||
private String user_cd;
|
||||
private String delete_type;
|
||||
|
||||
public String getDelete_type() {
|
||||
return delete_type;
|
||||
}
|
||||
|
||||
public void setDelete_type(String delete_type) {
|
||||
this.delete_type = delete_type;
|
||||
}
|
||||
|
||||
public String getUser_cd() {
|
||||
return user_cd;
|
||||
}
|
||||
|
||||
public void setUser_cd(String user_cd) {
|
||||
this.user_cd = user_cd;
|
||||
}
|
||||
|
||||
public String getAtdrc_cd() {
|
||||
return atdrc_cd;
|
||||
}
|
||||
|
||||
public void setAtdrc_cd(String atdrc_cd) {
|
||||
this.atdrc_cd = atdrc_cd;
|
||||
}
|
||||
|
||||
public String getViolt_iem_cd() {
|
||||
return violt_iem_cd;
|
||||
}
|
||||
|
||||
public void setViolt_iem_cd(String violt_iem_cd) {
|
||||
this.violt_iem_cd = violt_iem_cd;
|
||||
}
|
||||
|
||||
public String getManage_year() {
|
||||
return manage_year;
|
||||
}
|
||||
|
||||
public void setManage_year(String manage_year) {
|
||||
this.manage_year = manage_year;
|
||||
}
|
||||
|
||||
public String getManage_no() {
|
||||
return manage_no;
|
||||
}
|
||||
|
||||
public void setManage_no(String manage_no) {
|
||||
this.manage_no = manage_no;
|
||||
}
|
||||
|
||||
public String getSeq() {
|
||||
return seq;
|
||||
}
|
||||
|
||||
public void setSeq(String seq) {
|
||||
this.seq = seq;
|
||||
}
|
||||
|
||||
public String getCreate_dt() {
|
||||
return create_dt;
|
||||
}
|
||||
|
||||
public void setCreate_dt(String create_dt) {
|
||||
this.create_dt = create_dt;
|
||||
}
|
||||
|
||||
public String getCreate_user_cd() {
|
||||
return create_user_cd;
|
||||
}
|
||||
|
||||
public void setCreate_user_cd(String create_user_cd) {
|
||||
this.create_user_cd = create_user_cd;
|
||||
}
|
||||
|
||||
public String getUpdate_dt() {
|
||||
return update_dt;
|
||||
}
|
||||
|
||||
public void setUpdate_dt(String update_dt) {
|
||||
this.update_dt = update_dt;
|
||||
}
|
||||
|
||||
public String getUpdate_user_cd() {
|
||||
return update_user_cd;
|
||||
}
|
||||
|
||||
public void setUpdate_user_cd(String update_user_cd) {
|
||||
this.update_user_cd = update_user_cd;
|
||||
}
|
||||
|
||||
public String getDelete_yn() {
|
||||
return delete_yn;
|
||||
}
|
||||
|
||||
public void setDelete_yn(String delete_yn) {
|
||||
this.delete_yn = delete_yn;
|
||||
}
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="xit.vips.category.rev.rev010101.dao.Rev010101Mapper">
|
||||
|
||||
|
||||
<insert id="addDriveDisable">
|
||||
/** addDriveDisable */
|
||||
/** 운행정지 자료 등록 */
|
||||
INSERT INTO TB_DISABLE_DRIVE(
|
||||
ATDRC_CD
|
||||
,VIOLT_IEM_CD
|
||||
,MANAGE_YEAR
|
||||
,MANAGE_NO
|
||||
,SEQ
|
||||
,CREATE_DT
|
||||
,CREATE_USER_CD
|
||||
,DELETE_YN
|
||||
) VALUES (
|
||||
#{atdrc_cd}
|
||||
,#{violt_iem_cd}
|
||||
,#{manage_year}
|
||||
,#{manage_no}
|
||||
,NVL(
|
||||
(SELECT MAX(SEQ)
|
||||
FROM TB_DISABLE_DRIVE
|
||||
WHERE ATDRC_CD = #{atdrc_cd}
|
||||
AND VIOLT_IEM_CD = #{violt_iem_cd}
|
||||
AND MANAGE_YEAR = #{manage_year}
|
||||
AND MANAGE_NO = #{manage_no}
|
||||
), 0
|
||||
) +1
|
||||
,SYSDATE
|
||||
,#{user_cd}
|
||||
,#{delete_yn}
|
||||
)
|
||||
</insert>
|
||||
|
||||
<update id="deleteDriveDisable">
|
||||
/** deleteDriveDisable */
|
||||
/** 운행정지 자료 삭제 */
|
||||
UPDATE TB_DISABLE_DRIVE
|
||||
SET DELETE_YN = 'Y'
|
||||
, UPDATE_DT = SYSDATE
|
||||
, UPDATE_USER_CD = #{user_cd}
|
||||
WHERE ATDRC_CD = #{atdrc_cd}
|
||||
AND VIOLT_IEM_CD = #{violt_iem_cd}
|
||||
AND MANAGE_YEAR = #{manage_year}
|
||||
AND MANAGE_NO = #{manage_no}
|
||||
AND SEQ = (
|
||||
SELECT MAX(SEQ)
|
||||
FROM TB_DISABLE_DRIVE
|
||||
WHERE ATDRC_CD = #{atdrc_cd}
|
||||
AND VIOLT_IEM_CD = #{violt_iem_cd}
|
||||
AND MANAGE_YEAR = #{manage_year}
|
||||
AND MANAGE_NO = #{manage_no}
|
||||
)
|
||||
|
||||
</update>
|
||||
</mapper>
|
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
|
||||
version="4.0">
|
||||
</web-app>
|
Loading…
Reference in New Issue