...
|
...
|
@@ -8,7 +8,7 @@ |
|
|
<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="IS_DELETE" jdbcType="VARCHAR" property="isDelete" />
|
|
|
<result column="AGENTNO" jdbcType="VARCHAR" property="agentno" />
|
|
|
<result column="AGENTNAME" jdbcType="VARCHAR" property="agentname" />
|
|
|
<result column="COCODE" jdbcType="VARCHAR" property="cocode" />
|
...
|
...
|
@@ -27,12 +27,13 @@ |
|
|
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
|
|
|
<result column="UPDATE_BY" jdbcType="VARCHAR" property="updateBy" />
|
|
|
<result column="UPDATE_DATE" jdbcType="TIMESTAMP" property="updateDate" />
|
|
|
<result column="ISVALID" jdbcType="VARCHAR" property="isvalid" />
|
|
|
</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,
|
|
|
IS_DELETE, AGENTNO, AGENTNAME, COCODE, DRIVERNAME, DRIVERID, STARTPORT, ENDPORT,
|
|
|
STARTSATATION, ENDSTATION, AISLE, BUSINESSTYPE, TURNOVERFLAG, BARCODE, CONTRASTFLAG,
|
|
|
CREATE_BY, CREATE_DATE, UPDATE_BY, UPDATE_DATE
|
|
|
CREATE_BY, CREATE_DATE, UPDATE_BY, UPDATE_DATE, ISVALID
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
...
|
...
|
@@ -58,29 +59,40 @@ |
|
|
and AISLE = #{aisle,jdbcType=VARCHAR}
|
|
|
and TURNOVERFLAG = #{turnoverflag,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
|
|
|
<select id="selectByBarcode" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from land_businesstype_list
|
|
|
where BARCODE = #{barcode,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
delete from land_businesstype_list
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</delete>
|
|
|
|
|
|
<update id="updateByBarCode" parameterType="java.lang.String">
|
|
|
update land_businesstype_list set ISVALID = "1" where BARCODE=#{barcode,jdbcType=VARCHAR};
|
|
|
</update>
|
|
|
<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,
|
|
|
IS_DELETE, AGENTNO, AGENTNAME,
|
|
|
COCODE, DRIVERNAME, DRIVERID,
|
|
|
STARTPORT, ENDPORT, STARTSATATION,
|
|
|
ENDSTATION, AISLE, BUSINESSTYPE,
|
|
|
TURNOVERFLAG, BARCODE, CONTRASTFLAG,
|
|
|
CREATE_BY, CREATE_DATE, UPDATE_BY,
|
|
|
UPDATE_DATE)
|
|
|
UPDATE_DATE, ISVALID)
|
|
|
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},
|
|
|
#{isDelete,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}, #{barcode,jdbcType=VARCHAR}, #{contrastflag,jdbcType=VARCHAR},
|
|
|
#{createBy,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
|
|
|
#{updateDate,jdbcType=TIMESTAMP})
|
|
|
#{updateDate,jdbcType=TIMESTAMP}, #{isvalid,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.sy.model.LandBusinessTypeList">
|
|
|
insert into land_businesstype_list
|
...
|
...
|
@@ -103,8 +115,8 @@ |
|
|
<if test="prodectTime != null">
|
|
|
PRODECT_TIME,
|
|
|
</if>
|
|
|
<if test="returnmessage != null">
|
|
|
RETURNMESSAGE,
|
|
|
<if test="isDelete != null">
|
|
|
IS_DELETE,
|
|
|
</if>
|
|
|
<if test="agentno != null">
|
|
|
AGENTNO,
|
...
|
...
|
@@ -160,6 +172,9 @@ |
|
|
<if test="updateDate != null">
|
|
|
UPDATE_DATE,
|
|
|
</if>
|
|
|
<if test="isvalid != null">
|
|
|
ISVALID,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
...
|
...
|
@@ -180,8 +195,8 @@ |
|
|
<if test="prodectTime != null">
|
|
|
#{prodectTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="returnmessage != null">
|
|
|
#{returnmessage,jdbcType=VARCHAR},
|
|
|
<if test="isDelete != null">
|
|
|
#{isDelete,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="agentno != null">
|
|
|
#{agentno,jdbcType=VARCHAR},
|
...
|
...
|
@@ -237,6 +252,9 @@ |
|
|
<if test="updateDate != null">
|
|
|
#{updateDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="isvalid != null">
|
|
|
#{isvalid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sy.model.LandBusinessTypeList">
|
...
|
...
|
@@ -257,8 +275,8 @@ |
|
|
<if test="prodectTime != null">
|
|
|
PRODECT_TIME = #{prodectTime,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="returnmessage != null">
|
|
|
RETURNMESSAGE = #{returnmessage,jdbcType=VARCHAR},
|
|
|
<if test="isDelete != null">
|
|
|
IS_DELETE = #{isDelete,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="agentno != null">
|
|
|
AGENTNO = #{agentno,jdbcType=VARCHAR},
|
...
|
...
|
@@ -314,6 +332,9 @@ |
|
|
<if test="updateDate != null">
|
|
|
UPDATE_DATE = #{updateDate,jdbcType=TIMESTAMP},
|
|
|
</if>
|
|
|
<if test="isvalid != null">
|
|
|
ISVALID = #{isvalid,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
...
|
...
|
@@ -324,7 +345,7 @@ |
|
|
TRAILER_LICENSE_NO = #{trailerLicenseNo,jdbcType=VARCHAR},
|
|
|
MASTER_LIST = #{masterList,jdbcType=VARCHAR},
|
|
|
PRODECT_TIME = #{prodectTime,jdbcType=TIMESTAMP},
|
|
|
RETURNMESSAGE = #{returnmessage,jdbcType=VARCHAR},
|
|
|
IS_DELETE = #{isDelete,jdbcType=VARCHAR},
|
|
|
AGENTNO = #{agentno,jdbcType=VARCHAR},
|
|
|
AGENTNAME = #{agentname,jdbcType=VARCHAR},
|
|
|
COCODE = #{cocode,jdbcType=VARCHAR},
|
...
|
...
|
@@ -342,7 +363,8 @@ |
|
|
CREATE_BY = #{createBy,jdbcType=VARCHAR},
|
|
|
CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
|
|
|
UPDATE_BY = #{updateBy,jdbcType=VARCHAR},
|
|
|
UPDATE_DATE = #{updateDate,jdbcType=TIMESTAMP}
|
|
|
UPDATE_DATE = #{updateDate,jdbcType=TIMESTAMP},
|
|
|
ISVALID = #{isvalid,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|