|
|
<?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="com.tianbo.analysis.dao.TB_ANTIVIRUS_LOGMapper" >
|
|
|
<resultMap id="BaseResultMap" type="com.tianbo.analysis.model.TB_ANTIVIRUS_LOG" >
|
|
|
<id column="AUTOID" property="autoid" jdbcType="VARCHAR" />
|
|
|
<result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" />
|
|
|
<result column="FLIGHT_DATE" property="flightDate" jdbcType="TIMESTAMP" />
|
|
|
<result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
|
|
|
<result column="WAYBILLNOSECONDARY" property="waybillnosecondary" jdbcType="VARCHAR" />
|
|
|
<result column="ANTIVIRUS_PC" property="antivirusPc" jdbcType="DECIMAL" />
|
|
|
<result column="ANTIVIRUS_WT" property="antivirusWt" jdbcType="DECIMAL" />
|
|
|
<result column="ANTIVIRUS_TIME" property="antivirusTime" jdbcType="TIMESTAMP" />
|
|
|
<result column="ANTIVIRUS_NAME" property="antivirusName" jdbcType="VARCHAR" />
|
|
|
<result column="UPDATE_TIME" property="updateTime" jdbcType="TIMESTAMP" />
|
|
|
<result column="ANTIVIRUS_STATUS" property="antivirusStatus" jdbcType="DECIMAL" />
|
|
|
<result column="ANTIVIRUS_DES" property="antivirusDes" jdbcType="VARCHAR" />
|
|
|
<result column="TRAY_NUM" property="trayNum" jdbcType="VARCHAR" />
|
|
|
<result column="IS_DELETE" property="isDelete" jdbcType="DECIMAL" />
|
|
|
<result column="BINDING_AUTOID" property="bindingAutoid" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
AUTOID, FLIGHTNO, FLIGHT_DATE, WAYBILLNOMASTER, WAYBILLNOSECONDARY, ANTIVIRUS_PC,
|
|
|
ANTIVIRUS_WT, ANTIVIRUS_TIME, ANTIVIRUS_NAME, UPDATE_TIME, ANTIVIRUS_STATUS, ANTIVIRUS_DES,
|
|
|
TRAY_NUM, IS_DELETE, BINDING_AUTOID
|
|
|
</sql>
|
|
|
<select id="selectAll" resultMap="BaseResultMap" parameterType="com.tianbo.analysis.model.TB_ANTIVIRUS_LOG" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from CGONMS.TB_ANTIVIRUS_LOG
|
|
|
where
|
|
|
1=1
|
|
|
<if test="tbAntivirusLog.antivirusName != null and tbAntivirusLog.antivirusName != ''" >
|
|
|
and antivirusName = #{tbAntivirusLog.antivirusName,jdbcType=VARCHAR}
|
|
|
</if>
|
|
|
order by antivirusTime desc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from CGONMS.TB_ANTIVIRUS_LOG
|
|
|
where AUTOID = #{autoid,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
|
|
|
delete from CGONMS.TB_ANTIVIRUS_LOG
|
|
|
where AUTOID = #{autoid,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.tianbo.analysis.model.TB_ANTIVIRUS_LOG" >
|
|
|
insert into CGONMS.TB_ANTIVIRUS_LOG (AUTOID, FLIGHTNO, FLIGHT_DATE,
|
|
|
WAYBILLNOMASTER, WAYBILLNOSECONDARY, ANTIVIRUS_PC,
|
|
|
ANTIVIRUS_WT, ANTIVIRUS_TIME, ANTIVIRUS_NAME,
|
|
|
UPDATE_TIME, ANTIVIRUS_STATUS, ANTIVIRUS_DES,
|
|
|
TRAY_NUM, IS_DELETE, BINDING_AUTOID
|
|
|
)
|
|
|
values (#{autoid,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightDate,jdbcType=TIMESTAMP},
|
|
|
#{waybillnomaster,jdbcType=VARCHAR}, #{waybillnosecondary,jdbcType=VARCHAR}, #{antivirusPc,jdbcType=DECIMAL},
|
|
|
#{antivirusWt,jdbcType=DECIMAL}, #{antivirusTime,jdbcType=TIMESTAMP}, #{antivirusName,jdbcType=VARCHAR},
|
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{antivirusStatus,jdbcType=DECIMAL}, #{antivirusDes,jdbcType=VARCHAR},
|
|
|
#{trayNum,jdbcType=VARCHAR}, #{isDelete,jdbcType=DECIMAL}, #{bindingAutoid,jdbcType=VARCHAR}
|
|
|
)
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.tianbo.analysis.model.TB_ANTIVIRUS_LOG" >
|
|
|
insert into CGONMS.TB_ANTIVIRUS_LOG
|
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
<if test="autoid != null" >
|
|
|
AUTOID,
|
|
|
</if>
|
|
|
<if test="flightno != null" >
|
|
|
FLIGHTNO,
|
|
|
</if>
|
|
|
<if test="flightDate != null" >
|
|
|
FLIGHT_DATE,
|
|
|
</if>
|
|
|
<if test="waybillnomaster != null" >
|
|
|
WAYBILLNOMASTER,
|
|
|
</if>
|
|
|
<if test="waybillnosecondary != null" >
|
|
|
WAYBILLNOSECONDARY,
|
|
|
</if>
|
|
|
<if test="antivirusPc != null" >
|
|
|
ANTIVIRUS_PC,
|
|
|
</if>
|
|
|
<if test="antivirusWt != null" >
|
|
|
ANTIVIRUS_WT,
|
|
|
</if>
|
|
|
<if test="antivirusTime != null" >
|
|
|
ANTIVIRUS_TIME,
|
|
|
</if>
|
|
|
<if test="antivirusName != null" >
|
|
|
ANTIVIRUS_NAME,
|
|
|
</if>
|
|
|
<if test="updateTime != null" >
|
|
|
UPDATE_TIME,
|
|
|
</if>
|
|
|
<if test="antivirusStatus != null" >
|
|
|
ANTIVIRUS_STATUS,
|
|
|
</if>
|
|
|
<if test="antivirusDes != null" >
|
|
|
ANTIVIRUS_DES,
|
|
|
</if>
|
|
|
<if test="trayNum != null" >
|
|
|
TRAY_NUM,
|
|
|
</if>
|
|
|
<if test="isDelete != null" >
|
|
|
IS_DELETE,
|
|
|
</if>
|
|
|
<if test="bindingAutoid != null" >
|
|
|
BINDING_AUTOID,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="autoid != null" >
|
|
|
#{autoid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="flightno != null" >
|
|
|
#{flightno,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="flightDate != null" >
|
|
|
#{flightDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="waybillnomaster != null" >
|
|
|
#{waybillnomaster,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="waybillnosecondary != null" >
|
|
|
#{waybillnosecondary,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="antivirusPc != null" >
|
|
|
#{antivirusPc,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="antivirusWt != null" >
|
|
|
#{antivirusWt,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="antivirusTime != null" >
|
|
|
#{antivirusTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="antivirusName != null" >
|
|
|
#{antivirusName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="updateTime != null" >
|
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="antivirusStatus != null" >
|
|
|
#{antivirusStatus,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="antivirusDes != null" >
|
|
|
#{antivirusDes,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="trayNum != null" >
|
|
|
#{trayNum,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="isDelete != null" >
|
|
|
#{isDelete,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="bindingAutoid != null" >
|
|
|
#{bindingAutoid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.TB_ANTIVIRUS_LOG" >
|
|
|
update CGONMS.TB_ANTIVIRUS_LOG
|
|
|
<set >
|
|
|
<if test="flightno != null" >
|
|
|
FLIGHTNO = #{flightno,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="flightDate != null" >
|
|
|
FLIGHT_DATE = #{flightDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="waybillnomaster != null" >
|
|
|
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="waybillnosecondary != null" >
|
|
|
WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="antivirusPc != null" >
|
|
|
ANTIVIRUS_PC = #{antivirusPc,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="antivirusWt != null" >
|
|
|
ANTIVIRUS_WT = #{antivirusWt,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="antivirusTime != null" >
|
|
|
ANTIVIRUS_TIME = #{antivirusTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="antivirusName != null" >
|
|
|
ANTIVIRUS_NAME = #{antivirusName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="updateTime != null" >
|
|
|
UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="antivirusStatus != null" >
|
|
|
ANTIVIRUS_STATUS = #{antivirusStatus,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="antivirusDes != null" >
|
|
|
ANTIVIRUS_DES = #{antivirusDes,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="trayNum != null" >
|
|
|
TRAY_NUM = #{trayNum,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="isDelete != null" >
|
|
|
IS_DELETE = #{isDelete,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="bindingAutoid != null" >
|
|
|
BINDING_AUTOID = #{bindingAutoid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
where AUTOID = #{autoid,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.TB_ANTIVIRUS_LOG" >
|
|
|
update CGONMS.TB_ANTIVIRUS_LOG
|
|
|
set FLIGHTNO = #{flightno,jdbcType=VARCHAR},
|
|
|
FLIGHT_DATE = #{flightDate,jdbcType=TIMESTAMP},
|
|
|
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR},
|
|
|
WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR},
|
|
|
ANTIVIRUS_PC = #{antivirusPc,jdbcType=DECIMAL},
|
|
|
ANTIVIRUS_WT = #{antivirusWt,jdbcType=DECIMAL},
|
|
|
ANTIVIRUS_TIME = #{antivirusTime,jdbcType=TIMESTAMP},
|
|
|
ANTIVIRUS_NAME = #{antivirusName,jdbcType=VARCHAR},
|
|
|
UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
ANTIVIRUS_STATUS = #{antivirusStatus,jdbcType=DECIMAL},
|
|
|
ANTIVIRUS_DES = #{antivirusDes,jdbcType=VARCHAR},
|
|
|
TRAY_NUM = #{trayNum,jdbcType=VARCHAR},
|
|
|
IS_DELETE = #{isDelete,jdbcType=DECIMAL},
|
|
|
BINDING_AUTOID = #{bindingAutoid,jdbcType=VARCHAR}
|
|
|
where AUTOID = #{autoid,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
</mapper> |
...
|
...
|
|