|
|
<?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.LandBusinessTypeListMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.sy.model.LandBusinessTypeList">
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
<result column="MASSAGE_ID" jdbcType="VARCHAR" property="massageId" />
|
|
|
<result column="TRAILER_FRAME_NO" jdbcType="VARCHAR" property="trailerFrameNo" />
|
|
|
<result column="TRAILER_LICENSE_NO" jdbcType="VARCHAR" property="trailerLicenseNo" />
|
|
|
<result column="MASTER_LIST" jdbcType="VARCHAR" property="masterList" />
|
|
|
<result column="PRODECT_TIME" jdbcType="TIMESTAMP" property="prodectTime" />
|
|
|
<result column="RETURNMESSAGE" jdbcType="VARCHAR" property="returnmessage" />
|
|
|
<result column="AGENTNO" jdbcType="VARCHAR" property="agentno" />
|
|
|
<result column="AGENTNAME" jdbcType="VARCHAR" property="agentname" />
|
|
|
<result column="COCODE" jdbcType="VARCHAR" property="cocode" />
|
|
|
<result column="DRIVERNAME" jdbcType="VARCHAR" property="drivername" />
|
|
|
<result column="DRIVERID" jdbcType="VARCHAR" property="driverid" />
|
|
|
<result column="STARTPORT" jdbcType="VARCHAR" property="startport" />
|
|
|
<result column="ENDPORT" jdbcType="VARCHAR" property="endport" />
|
|
|
<result column="STARTSATATION" jdbcType="VARCHAR" property="startsatation" />
|
|
|
<result column="ENDSTATION" jdbcType="VARCHAR" property="endstation" />
|
|
|
<result column="AISLE" jdbcType="VARCHAR" property="aisle" />
|
|
|
<result column="BUSINESSTYPE" jdbcType="VARCHAR" property="businesstype" />
|
|
|
<result column="TURNOVERFLAG" jdbcType="VARCHAR" property="turnoverflag" />
|
|
|
<result column="CONTRASTFLAG" jdbcType="VARCHAR" property="contrastflag" />
|
|
|
<result column="CREATE_BY" jdbcType="VARCHAR" property="createBy" />
|
|
|
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
|
|
|
<result column="UPDATE_BY" jdbcType="VARCHAR" property="updateBy" />
|
|
|
<result column="UPDATE_DATE" jdbcType="TIMESTAMP" property="updateDate" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, MASSAGE_ID, TRAILER_FRAME_NO, TRAILER_LICENSE_NO, MASTER_LIST, PRODECT_TIME,
|
|
|
RETURNMESSAGE, AGENTNO, AGENTNAME, COCODE, DRIVERNAME, DRIVERID, STARTPORT, ENDPORT,
|
|
|
STARTSATATION, ENDSTATION, AISLE, BUSINESSTYPE, TURNOVERFLAG, CONTRASTFLAG, CREATE_BY,
|
|
|
CREATE_DATE, UPDATE_BY, UPDATE_DATE
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from land_businesstype_list
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
|
|
|
<select id="selectFrameNoAndType" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from land_businesstype_list
|
|
|
where TRAILER_FRAME_NO = #{trailerFrameNo,jdbcType=VARCHAR}
|
|
|
and TURNOVERFLAG = #{turnoverflag,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
delete from land_businesstype_list
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.sy.model.LandBusinessTypeList">
|
|
|
insert into land_businesstype_list (id, MASSAGE_ID, TRAILER_FRAME_NO,
|
|
|
TRAILER_LICENSE_NO, MASTER_LIST, PRODECT_TIME,
|
|
|
RETURNMESSAGE, AGENTNO, AGENTNAME,
|
|
|
COCODE, DRIVERNAME, DRIVERID,
|
|
|
STARTPORT, ENDPORT, STARTSATATION,
|
|
|
ENDSTATION, AISLE, BUSINESSTYPE,
|
|
|
TURNOVERFLAG, CONTRASTFLAG, CREATE_BY,
|
|
|
CREATE_DATE, UPDATE_BY, UPDATE_DATE
|
|
|
)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{massageId,jdbcType=VARCHAR}, #{trailerFrameNo,jdbcType=VARCHAR},
|
|
|
#{trailerLicenseNo,jdbcType=VARCHAR}, #{masterList,jdbcType=VARCHAR}, #{prodectTime,jdbcType=TIMESTAMP},
|
|
|
#{returnmessage,jdbcType=VARCHAR}, #{agentno,jdbcType=VARCHAR}, #{agentname,jdbcType=VARCHAR},
|
|
|
#{cocode,jdbcType=VARCHAR}, #{drivername,jdbcType=VARCHAR}, #{driverid,jdbcType=VARCHAR},
|
|
|
#{startport,jdbcType=VARCHAR}, #{endport,jdbcType=VARCHAR}, #{startsatation,jdbcType=VARCHAR},
|
|
|
#{endstation,jdbcType=VARCHAR}, #{aisle,jdbcType=VARCHAR}, #{businesstype,jdbcType=VARCHAR},
|
|
|
#{turnoverflag,jdbcType=VARCHAR}, #{contrastflag,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR},
|
|
|
#{createDate,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateDate,jdbcType=TIMESTAMP}
|
|
|
)
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.sy.model.LandBusinessTypeList">
|
|
|
insert into land_businesstype_list
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
id,
|
|
|
</if>
|
|
|
<if test="massageId != null">
|
|
|
MASSAGE_ID,
|
|
|
</if>
|
|
|
<if test="trailerFrameNo != null">
|
|
|
TRAILER_FRAME_NO,
|
|
|
</if>
|
|
|
<if test="trailerLicenseNo != null">
|
|
|
TRAILER_LICENSE_NO,
|
|
|
</if>
|
|
|
<if test="masterList != null">
|
|
|
MASTER_LIST,
|
|
|
</if>
|
|
|
<if test="prodectTime != null">
|
|
|
PRODECT_TIME,
|
|
|
</if>
|
|
|
<if test="returnmessage != null">
|
|
|
RETURNMESSAGE,
|
|
|
</if>
|
|
|
<if test="agentno != null">
|
|
|
AGENTNO,
|
|
|
</if>
|
|
|
<if test="agentname != null">
|
|
|
AGENTNAME,
|
|
|
</if>
|
|
|
<if test="cocode != null">
|
|
|
COCODE,
|
|
|
</if>
|
|
|
<if test="drivername != null">
|
|
|
DRIVERNAME,
|
|
|
</if>
|
|
|
<if test="driverid != null">
|
|
|
DRIVERID,
|
|
|
</if>
|
|
|
<if test="startport != null">
|
|
|
STARTPORT,
|
|
|
</if>
|
|
|
<if test="endport != null">
|
|
|
ENDPORT,
|
|
|
</if>
|
|
|
<if test="startsatation != null">
|
|
|
STARTSATATION,
|
|
|
</if>
|
|
|
<if test="endstation != null">
|
|
|
ENDSTATION,
|
|
|
</if>
|
|
|
<if test="aisle != null">
|
|
|
AISLE,
|
|
|
</if>
|
|
|
<if test="businesstype != null">
|
|
|
BUSINESSTYPE,
|
|
|
</if>
|
|
|
<if test="turnoverflag != null">
|
|
|
TURNOVERFLAG,
|
|
|
</if>
|
|
|
<if test="contrastflag != null">
|
|
|
CONTRASTFLAG,
|
|
|
</if>
|
|
|
<if test="createBy != null">
|
|
|
CREATE_BY,
|
|
|
</if>
|
|
|
<if test="createDate != null">
|
|
|
CREATE_DATE,
|
|
|
</if>
|
|
|
<if test="updateBy != null">
|
|
|
UPDATE_BY,
|
|
|
</if>
|
|
|
<if test="updateDate != null">
|
|
|
UPDATE_DATE,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
#{id,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="massageId != null">
|
|
|
#{massageId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="trailerFrameNo != null">
|
|
|
#{trailerFrameNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="trailerLicenseNo != null">
|
|
|
#{trailerLicenseNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="masterList != null">
|
|
|
#{masterList,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="prodectTime != null">
|
|
|
#{prodectTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="returnmessage != null">
|
|
|
#{returnmessage,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="agentno != null">
|
|
|
#{agentno,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="agentname != null">
|
|
|
#{agentname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cocode != null">
|
|
|
#{cocode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="drivername != null">
|
|
|
#{drivername,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="driverid != null">
|
|
|
#{driverid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="startport != null">
|
|
|
#{startport,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="endport != null">
|
|
|
#{endport,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="startsatation != null">
|
|
|
#{startsatation,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="endstation != null">
|
|
|
#{endstation,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="aisle != null">
|
|
|
#{aisle,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="businesstype != null">
|
|
|
#{businesstype,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="turnoverflag != null">
|
|
|
#{turnoverflag,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="contrastflag != null">
|
|
|
#{contrastflag,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="createBy != null">
|
|
|
#{createBy,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="createDate != null">
|
|
|
#{createDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="updateBy != null">
|
|
|
#{updateBy,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="updateDate != null">
|
|
|
#{updateDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sy.model.LandBusinessTypeList">
|
|
|
update land_businesstype_list
|
|
|
<set>
|
|
|
<if test="massageId != null">
|
|
|
MASSAGE_ID = #{massageId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="trailerFrameNo != null">
|
|
|
TRAILER_FRAME_NO = #{trailerFrameNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="trailerLicenseNo != null">
|
|
|
TRAILER_LICENSE_NO = #{trailerLicenseNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="masterList != null">
|
|
|
MASTER_LIST = #{masterList,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="prodectTime != null">
|
|
|
PRODECT_TIME = #{prodectTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="returnmessage != null">
|
|
|
RETURNMESSAGE = #{returnmessage,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="agentno != null">
|
|
|
AGENTNO = #{agentno,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="agentname != null">
|
|
|
AGENTNAME = #{agentname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="cocode != null">
|
|
|
COCODE = #{cocode,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="drivername != null">
|
|
|
DRIVERNAME = #{drivername,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="driverid != null">
|
|
|
DRIVERID = #{driverid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="startport != null">
|
|
|
STARTPORT = #{startport,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="endport != null">
|
|
|
ENDPORT = #{endport,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="startsatation != null">
|
|
|
STARTSATATION = #{startsatation,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="endstation != null">
|
|
|
ENDSTATION = #{endstation,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="aisle != null">
|
|
|
AISLE = #{aisle,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="businesstype != null">
|
|
|
BUSINESSTYPE = #{businesstype,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="turnoverflag != null">
|
|
|
TURNOVERFLAG = #{turnoverflag,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="contrastflag != null">
|
|
|
CONTRASTFLAG = #{contrastflag,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="createBy != null">
|
|
|
CREATE_BY = #{createBy,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="createDate != null">
|
|
|
CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="updateBy != null">
|
|
|
UPDATE_BY = #{updateBy,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="updateDate != null">
|
|
|
UPDATE_DATE = #{updateDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sy.model.LandBusinessTypeList">
|
|
|
update land_businesstype_list
|
|
|
set MASSAGE_ID = #{massageId,jdbcType=VARCHAR},
|
|
|
TRAILER_FRAME_NO = #{trailerFrameNo,jdbcType=VARCHAR},
|
|
|
TRAILER_LICENSE_NO = #{trailerLicenseNo,jdbcType=VARCHAR},
|
|
|
MASTER_LIST = #{masterList,jdbcType=VARCHAR},
|
|
|
PRODECT_TIME = #{prodectTime,jdbcType=TIMESTAMP},
|
|
|
RETURNMESSAGE = #{returnmessage,jdbcType=VARCHAR},
|
|
|
AGENTNO = #{agentno,jdbcType=VARCHAR},
|
|
|
AGENTNAME = #{agentname,jdbcType=VARCHAR},
|
|
|
COCODE = #{cocode,jdbcType=VARCHAR},
|
|
|
DRIVERNAME = #{drivername,jdbcType=VARCHAR},
|
|
|
DRIVERID = #{driverid,jdbcType=VARCHAR},
|
|
|
STARTPORT = #{startport,jdbcType=VARCHAR},
|
|
|
ENDPORT = #{endport,jdbcType=VARCHAR},
|
|
|
STARTSATATION = #{startsatation,jdbcType=VARCHAR},
|
|
|
ENDSTATION = #{endstation,jdbcType=VARCHAR},
|
|
|
AISLE = #{aisle,jdbcType=VARCHAR},
|
|
|
BUSINESSTYPE = #{businesstype,jdbcType=VARCHAR},
|
|
|
TURNOVERFLAG = #{turnoverflag,jdbcType=VARCHAR},
|
|
|
CONTRASTFLAG = #{contrastflag,jdbcType=VARCHAR},
|
|
|
CREATE_BY = #{createBy,jdbcType=VARCHAR},
|
|
|
CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
|
|
|
UPDATE_BY = #{updateBy,jdbcType=VARCHAR},
|
|
|
UPDATE_DATE = #{updateDate,jdbcType=TIMESTAMP}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|