|
|
<?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.sy.mapper.commandLogMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.sy.model.commandLog">
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
<result column="barcode" jdbcType="VARCHAR" property="barcode" />
|
|
|
<result column="area_id" jdbcType="VARCHAR" property="areaId" />
|
|
|
<result column="chnl_no" jdbcType="VARCHAR" property="chnlNo" />
|
|
|
<result column="busness_type" jdbcType="VARCHAR" property="busnessType" />
|
|
|
<result column="reason_code" jdbcType="VARCHAR" property="reasonCode" />
|
|
|
<result column="reason_text" jdbcType="VARCHAR" property="reasonText" />
|
|
|
<result column="ve_name" jdbcType="VARCHAR" property="veName" />
|
|
|
<result column="ve_weight" jdbcType="DOUBLE" property="veWeight" />
|
|
|
<result column="ie_type" jdbcType="VARCHAR" property="ieType" />
|
|
|
<result column="exit_gross_weight" jdbcType="DOUBLE" property="exitGrossWeight" />
|
|
|
<result column="in_gross_weight" jdbcType="DOUBLE" property="inGrossWeight" />
|
|
|
<result column="goods_weight" jdbcType="DOUBLE" property="goodsWeight" />
|
|
|
<result column="actual_goods_weight" jdbcType="DOUBLE" property="actualGoodsWeight" />
|
|
|
<result column="creat_time" jdbcType="TIMESTAMP" property="creatTime" />
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
<result column="master_list" jdbcType="VARCHAR" property="masterList" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, barcode, area_id, chnl_no, busness_type, reason_code, reason_text, ve_name, ve_weight,
|
|
|
ie_type, exit_gross_weight, in_gross_weight, goods_weight, actual_goods_weight, creat_time,
|
|
|
update_time, master_list
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from command_log
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
delete from command_log
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.sy.model.commandLog">
|
|
|
insert into command_log (id, barcode, area_id,
|
|
|
chnl_no, busness_type, reason_code,
|
|
|
reason_text, ve_name, ve_weight,
|
|
|
ie_type, exit_gross_weight, in_gross_weight,
|
|
|
goods_weight, actual_goods_weight, creat_time,
|
|
|
update_time, master_list)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{barcode,jdbcType=VARCHAR}, #{areaId,jdbcType=VARCHAR},
|
|
|
#{chnlNo,jdbcType=VARCHAR}, #{busnessType,jdbcType=VARCHAR}, #{reasonCode,jdbcType=VARCHAR},
|
|
|
#{reasonText,jdbcType=VARCHAR}, #{veName,jdbcType=VARCHAR}, #{veWeight,jdbcType=DOUBLE},
|
|
|
#{ieType,jdbcType=VARCHAR}, #{exitGrossWeight,jdbcType=DOUBLE}, #{inGrossWeight,jdbcType=DOUBLE},
|
|
|
#{goodsWeight,jdbcType=DOUBLE}, #{actualGoodsWeight,jdbcType=DOUBLE}, #{creatTime,jdbcType=TIMESTAMP},
|
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{masterList,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.sy.model.commandLog">
|
|
|
insert into command_log
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
id,
|
|
|
</if>
|
|
|
<if test="barcode != null">
|
|
|
barcode,
|
|
|
</if>
|
|
|
<if test="areaId != null">
|
|
|
area_id,
|
|
|
</if>
|
|
|
<if test="chnlNo != null">
|
|
|
chnl_no,
|
|
|
</if>
|
|
|
<if test="busnessType != null">
|
|
|
busness_type,
|
|
|
</if>
|
|
|
<if test="reasonCode != null">
|
|
|
reason_code,
|
|
|
</if>
|
|
|
<if test="reasonText != null">
|
|
|
reason_text,
|
|
|
</if>
|
|
|
<if test="veName != null">
|
|
|
ve_name,
|
|
|
</if>
|
|
|
<if test="veWeight != null">
|
|
|
ve_weight,
|
|
|
</if>
|
|
|
<if test="ieType != null">
|
|
|
ie_type,
|
|
|
</if>
|
|
|
<if test="exitGrossWeight != null">
|
|
|
exit_gross_weight,
|
|
|
</if>
|
|
|
<if test="inGrossWeight != null">
|
|
|
in_gross_weight,
|
|
|
</if>
|
|
|
<if test="goodsWeight != null">
|
|
|
goods_weight,
|
|
|
</if>
|
|
|
<if test="actualGoodsWeight != null">
|
|
|
actual_goods_weight,
|
|
|
</if>
|
|
|
<if test="creatTime != null">
|
|
|
creat_time,
|
|
|
</if>
|
|
|
<if test="updateTime != null">
|
|
|
update_time,
|
|
|
</if>
|
|
|
<if test="masterList != null">
|
|
|
master_list,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
#{id,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="barcode != null">
|
|
|
#{barcode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="areaId != null">
|
|
|
#{areaId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="chnlNo != null">
|
|
|
#{chnlNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="busnessType != null">
|
|
|
#{busnessType,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="reasonCode != null">
|
|
|
#{reasonCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="reasonText != null">
|
|
|
#{reasonText,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="veName != null">
|
|
|
#{veName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="veWeight != null">
|
|
|
#{veWeight,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
<if test="ieType != null">
|
|
|
#{ieType,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="exitGrossWeight != null">
|
|
|
#{exitGrossWeight,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
<if test="inGrossWeight != null">
|
|
|
#{inGrossWeight,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
<if test="goodsWeight != null">
|
|
|
#{goodsWeight,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
<if test="actualGoodsWeight != null">
|
|
|
#{actualGoodsWeight,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
<if test="creatTime != null">
|
|
|
#{creatTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="updateTime != null">
|
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="masterList != null">
|
|
|
#{masterList,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sy.model.commandLog">
|
|
|
update command_log
|
|
|
<set>
|
|
|
<if test="barcode != null">
|
|
|
barcode = #{barcode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="areaId != null">
|
|
|
area_id = #{areaId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="chnlNo != null">
|
|
|
chnl_no = #{chnlNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="busnessType != null">
|
|
|
busness_type = #{busnessType,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="reasonCode != null">
|
|
|
reason_code = #{reasonCode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="reasonText != null">
|
|
|
reason_text = #{reasonText,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="veName != null">
|
|
|
ve_name = #{veName,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="veWeight != null">
|
|
|
ve_weight = #{veWeight,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
<if test="ieType != null">
|
|
|
ie_type = #{ieType,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="exitGrossWeight != null">
|
|
|
exit_gross_weight = #{exitGrossWeight,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
<if test="inGrossWeight != null">
|
|
|
in_gross_weight = #{inGrossWeight,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
<if test="goodsWeight != null">
|
|
|
goods_weight = #{goodsWeight,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
<if test="actualGoodsWeight != null">
|
|
|
actual_goods_weight = #{actualGoodsWeight,jdbcType=DOUBLE},
|
|
|
</if>
|
|
|
<if test="creatTime != null">
|
|
|
creat_time = #{creatTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="updateTime != null">
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="masterList != null">
|
|
|
master_list = #{masterList,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sy.model.commandLog">
|
|
|
update command_log
|
|
|
set barcode = #{barcode,jdbcType=VARCHAR},
|
|
|
area_id = #{areaId,jdbcType=VARCHAR},
|
|
|
chnl_no = #{chnlNo,jdbcType=VARCHAR},
|
|
|
busness_type = #{busnessType,jdbcType=VARCHAR},
|
|
|
reason_code = #{reasonCode,jdbcType=VARCHAR},
|
|
|
reason_text = #{reasonText,jdbcType=VARCHAR},
|
|
|
ve_name = #{veName,jdbcType=VARCHAR},
|
|
|
ve_weight = #{veWeight,jdbcType=DOUBLE},
|
|
|
ie_type = #{ieType,jdbcType=VARCHAR},
|
|
|
exit_gross_weight = #{exitGrossWeight,jdbcType=DOUBLE},
|
|
|
in_gross_weight = #{inGrossWeight,jdbcType=DOUBLE},
|
|
|
goods_weight = #{goodsWeight,jdbcType=DOUBLE},
|
|
|
actual_goods_weight = #{actualGoodsWeight,jdbcType=DOUBLE},
|
|
|
creat_time = #{creatTime,jdbcType=TIMESTAMP},
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
master_list = #{masterList,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|