|
@@ -2,46 +2,43 @@
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.steerinfo.dil.mapper.AmsshipCargoTransferResultMapper">
|
|
<mapper namespace="com.steerinfo.dil.mapper.AmsshipCargoTransferResultMapper">
|
|
<resultMap id="BaseResultMap" type="com.steerinfo.dil.model.AmsshipCargoTransferResult">
|
|
<resultMap id="BaseResultMap" type="com.steerinfo.dil.model.AmsshipCargoTransferResult">
|
|
- <id column="CARGO_TRANSFER_RESULT_ID" jdbcType="DECIMAL" property="cargoTransferResultId"/>
|
|
|
|
- <result column="RESULT_NUMBER" jdbcType="VARCHAR" property="resultNumber"/>
|
|
|
|
- <result column="CARRIER_ID" jdbcType="DECIMAL" property="carrierId"/>
|
|
|
|
- <result column="RESULT_CONTACT_PERSON" jdbcType="VARCHAR" property="resultContactPerson"/>
|
|
|
|
- <result column="RESULT_TELEPHONE_FAX" jdbcType="VARCHAR" property="resultTelephoneFax"/>
|
|
|
|
- <result column="GROUP_ID" jdbcType="DECIMAL" property="groupId"/>
|
|
|
|
- <result column="BATCH_ID" jdbcType="DECIMAL" property="batchId"/>
|
|
|
|
- <result column="RESULT_NUMBER_OF_LOANS" jdbcType="DECIMAL" property="resultNumberOfLoans"/>
|
|
|
|
- <result column="RESULT_FREIGHT_FORWARDING_INFO" jdbcType="VARCHAR" property="resultFreightForwardingInfo"/>
|
|
|
|
- <result column="RESULT_MEMO" jdbcType="VARCHAR" property="resultMemo"/>
|
|
|
|
- <result column="DELETE_NAME" jdbcType="VARCHAR" property="deleteName"/>
|
|
|
|
- <result column="DELETE_TIME" jdbcType="VARCHAR" property="deleteTime"/>
|
|
|
|
- <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername"/>
|
|
|
|
- <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime"/>
|
|
|
|
- <result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername"/>
|
|
|
|
- <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
|
|
- <result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark"/>
|
|
|
|
- <result column="DELETED" jdbcType="DECIMAL" property="deleted"/>
|
|
|
|
|
|
+ <id column="CARGO_TRANSFER_RESULT_ID" jdbcType="DECIMAL" property="cargoTransferResultId" />
|
|
|
|
+ <result column="RESULT_NUMBER" jdbcType="VARCHAR" property="resultNumber" />
|
|
|
|
+ <result column="CARRIER_ID" jdbcType="DECIMAL" property="carrierId" />
|
|
|
|
+ <result column="RESULT_CONTACT_PERSON" jdbcType="VARCHAR" property="resultContactPerson" />
|
|
|
|
+ <result column="RESULT_TELEPHONE_FAX" jdbcType="VARCHAR" property="resultTelephoneFax" />
|
|
|
|
+ <result column="GROUP_ID" jdbcType="DECIMAL" property="groupId" />
|
|
|
|
+ <result column="BATCH_ID" jdbcType="DECIMAL" property="batchId" />
|
|
|
|
+ <result column="RESULT_NUMBER_OF_LOANS" jdbcType="DECIMAL" property="resultNumberOfLoans" />
|
|
|
|
+ <result column="RESULT_FREIGHT_FORWARDING_INFO" jdbcType="VARCHAR" property="resultFreightForwardingInfo" />
|
|
|
|
+ <result column="RESULT_MEMO" jdbcType="VARCHAR" property="resultMemo" />
|
|
|
|
+ <result column="DELETE_NAME" jdbcType="VARCHAR" property="deleteName" />
|
|
|
|
+ <result column="DELETE_TIME" jdbcType="VARCHAR" property="deleteTime" />
|
|
|
|
+ <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername" />
|
|
|
|
+ <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime" />
|
|
|
|
+ <result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername" />
|
|
|
|
+ <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
|
+ <result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark" />
|
|
|
|
+ <result column="DELETED" jdbcType="DECIMAL" property="deleted" />
|
|
|
|
+ <result column="RESULT_DATE_OF_LOANS" jdbcType="TIMESTAMP" property="resultDateOfLoans" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
- CARGO_TRANSFER_RESULT_ID, RESULT_NUMBER, CARRIER_ID, RESULT_CONTACT_PERSON, RESULT_TELEPHONE_FAX,
|
|
|
|
- GROUP_ID, BATCH_ID, RESULT_NUMBER_OF_LOANS, RESULT_FREIGHT_FORWARDING_INFO, RESULT_MEMO,
|
|
|
|
- DELETE_NAME, DELETE_TIME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
|
|
- INSERT_UPDATE_REMARK, DELETED
|
|
|
|
|
|
+ CARGO_TRANSFER_RESULT_ID, RESULT_NUMBER, CARRIER_ID, RESULT_CONTACT_PERSON, RESULT_TELEPHONE_FAX,
|
|
|
|
+ GROUP_ID, BATCH_ID, RESULT_NUMBER_OF_LOANS, RESULT_FREIGHT_FORWARDING_INFO, RESULT_MEMO,
|
|
|
|
+ DELETE_NAME, DELETE_TIME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
|
|
+ INSERT_UPDATE_REMARK, DELETED, RESULT_DATE_OF_LOANS
|
|
</sql>
|
|
</sql>
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
- t.CARGO_TRANSFER_RESULT_ID, t.RESULT_NUMBER, t.CARRIER_ID, t.RESULT_CONTACT_PERSON,
|
|
|
|
- t.RESULT_TELEPHONE_FAX, t.GROUP_ID, t.BATCH_ID, t.RESULT_NUMBER_OF_LOANS, t.RESULT_FREIGHT_FORWARDING_INFO,
|
|
|
|
- t.RESULT_MEMO, t.DELETE_NAME, t.DELETE_TIME, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME,
|
|
|
|
- t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.DELETED
|
|
|
|
|
|
+ t.CARGO_TRANSFER_RESULT_ID, t.RESULT_NUMBER, t.CARRIER_ID, t.RESULT_CONTACT_PERSON,
|
|
|
|
+ t.RESULT_TELEPHONE_FAX, t.GROUP_ID, t.BATCH_ID, t.RESULT_NUMBER_OF_LOANS, t.RESULT_FREIGHT_FORWARDING_INFO,
|
|
|
|
+ t.RESULT_MEMO, t.DELETE_NAME, t.DELETE_TIME, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME,
|
|
|
|
+ t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.DELETED, t.RESULT_DATE_OF_LOANS
|
|
</sql>
|
|
</sql>
|
|
<sql id="select">
|
|
<sql id="select">
|
|
- SELECT
|
|
|
|
- <include refid="columns"/>
|
|
|
|
- FROM AMSSHIP_CARGO_TRANSFER_RESULT
|
|
|
|
|
|
+ SELECT <include refid="columns" /> FROM AMSSHIP_CARGO_TRANSFER_RESULT
|
|
</sql>
|
|
</sql>
|
|
<sql id="select_alias">
|
|
<sql id="select_alias">
|
|
- SELECT
|
|
|
|
- <include refid="columns_alias"/>
|
|
|
|
- FROM AMSSHIP_CARGO_TRANSFER_RESULT t
|
|
|
|
|
|
+ SELECT <include refid="columns_alias" /> FROM AMSSHIP_CARGO_TRANSFER_RESULT t
|
|
</sql>
|
|
</sql>
|
|
<sql id="where">
|
|
<sql id="where">
|
|
<where>
|
|
<where>
|
|
@@ -99,6 +96,9 @@
|
|
<if test="deleted != null">
|
|
<if test="deleted != null">
|
|
and DELETED = #{deleted}
|
|
and DELETED = #{deleted}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="resultDateOfLoans != null">
|
|
|
|
+ and TO_CHAR(RESULT_DATE_OF_LOANS,'yyyy-MM-dd') = #{resultDateOfLoans}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -157,11 +157,13 @@
|
|
<if test="deleted != null">
|
|
<if test="deleted != null">
|
|
and DELETED = #{deleted}
|
|
and DELETED = #{deleted}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="resultDateOfLoans != null">
|
|
|
|
+ and TO_CHAR(RESULT_DATE_OF_LOANS,'yyyy-MM-dd') = #{resultDateOfLoans}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
|
|
- delete
|
|
|
|
- from AMSSHIP_CARGO_TRANSFER_RESULT
|
|
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
|
|
+ delete from AMSSHIP_CARGO_TRANSFER_RESULT
|
|
where CARGO_TRANSFER_RESULT_ID = #{cargoTransferResultId,jdbcType=DECIMAL}
|
|
where CARGO_TRANSFER_RESULT_ID = #{cargoTransferResultId,jdbcType=DECIMAL}
|
|
</delete>
|
|
</delete>
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
@@ -218,6 +220,9 @@
|
|
<if test="deleted != null">
|
|
<if test="deleted != null">
|
|
or DELETED = #{deleted}
|
|
or DELETED = #{deleted}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="resultDateOfLoans != null">
|
|
|
|
+ or TO_CHAR(RESULT_DATE_OF_LOANS,'yyyy-MM-dd') = '#{resultDateOfLoans}'
|
|
|
|
+ </if>
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.AmsshipCargoTransferResult">
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.AmsshipCargoTransferResult">
|
|
insert into AMSSHIP_CARGO_TRANSFER_RESULT (CARGO_TRANSFER_RESULT_ID, RESULT_NUMBER,
|
|
insert into AMSSHIP_CARGO_TRANSFER_RESULT (CARGO_TRANSFER_RESULT_ID, RESULT_NUMBER,
|
|
@@ -226,15 +231,16 @@
|
|
RESULT_FREIGHT_FORWARDING_INFO, RESULT_MEMO,
|
|
RESULT_FREIGHT_FORWARDING_INFO, RESULT_MEMO,
|
|
DELETE_NAME, DELETE_TIME, INSERT_USERNAME,
|
|
DELETE_NAME, DELETE_TIME, INSERT_USERNAME,
|
|
INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
- INSERT_UPDATE_REMARK, DELETED)
|
|
|
|
|
|
+ INSERT_UPDATE_REMARK, DELETED, RESULT_DATE_OF_LOANS
|
|
|
|
+ )
|
|
values (#{cargoTransferResultId,jdbcType=DECIMAL}, #{resultNumber,jdbcType=VARCHAR},
|
|
values (#{cargoTransferResultId,jdbcType=DECIMAL}, #{resultNumber,jdbcType=VARCHAR},
|
|
- #{carrierId,jdbcType=DECIMAL}, #{resultContactPerson,jdbcType=VARCHAR},
|
|
|
|
- #{resultTelephoneFax,jdbcType=VARCHAR},
|
|
|
|
|
|
+ #{carrierId,jdbcType=DECIMAL}, #{resultContactPerson,jdbcType=VARCHAR}, #{resultTelephoneFax,jdbcType=VARCHAR},
|
|
#{groupId,jdbcType=DECIMAL}, #{batchId,jdbcType=DECIMAL}, #{resultNumberOfLoans,jdbcType=DECIMAL},
|
|
#{groupId,jdbcType=DECIMAL}, #{batchId,jdbcType=DECIMAL}, #{resultNumberOfLoans,jdbcType=DECIMAL},
|
|
#{resultFreightForwardingInfo,jdbcType=VARCHAR}, #{resultMemo,jdbcType=VARCHAR},
|
|
#{resultFreightForwardingInfo,jdbcType=VARCHAR}, #{resultMemo,jdbcType=VARCHAR},
|
|
#{deleteName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR},
|
|
#{deleteName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR},
|
|
#{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
#{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
- #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL})
|
|
|
|
|
|
+ #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{resultDateOfLoans,jdbcType=TIMESTAMP}
|
|
|
|
+ )
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.AmsshipCargoTransferResult">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.AmsshipCargoTransferResult">
|
|
insert into AMSSHIP_CARGO_TRANSFER_RESULT
|
|
insert into AMSSHIP_CARGO_TRANSFER_RESULT
|
|
@@ -293,6 +299,9 @@
|
|
<if test="deleted != null">
|
|
<if test="deleted != null">
|
|
DELETED,
|
|
DELETED,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="resultDateOfLoans != null">
|
|
|
|
+ RESULT_DATE_OF_LOANS,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="cargoTransferResultId != null">
|
|
<if test="cargoTransferResultId != null">
|
|
@@ -349,27 +358,31 @@
|
|
<if test="deleted != null">
|
|
<if test="deleted != null">
|
|
#{deleted,jdbcType=DECIMAL},
|
|
#{deleted,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="resultDateOfLoans != null">
|
|
|
|
+ #{resultDateOfLoans,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.AmsshipCargoTransferResult">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.AmsshipCargoTransferResult">
|
|
update AMSSHIP_CARGO_TRANSFER_RESULT
|
|
update AMSSHIP_CARGO_TRANSFER_RESULT
|
|
- set RESULT_NUMBER = #{resultNumber,jdbcType=VARCHAR},
|
|
|
|
- CARRIER_ID = #{carrierId,jdbcType=DECIMAL},
|
|
|
|
- RESULT_CONTACT_PERSON = #{resultContactPerson,jdbcType=VARCHAR},
|
|
|
|
- RESULT_TELEPHONE_FAX = #{resultTelephoneFax,jdbcType=VARCHAR},
|
|
|
|
- GROUP_ID = #{groupId,jdbcType=DECIMAL},
|
|
|
|
- BATCH_ID = #{batchId,jdbcType=DECIMAL},
|
|
|
|
- RESULT_NUMBER_OF_LOANS = #{resultNumberOfLoans,jdbcType=DECIMAL},
|
|
|
|
|
|
+ set RESULT_NUMBER = #{resultNumber,jdbcType=VARCHAR},
|
|
|
|
+ CARRIER_ID = #{carrierId,jdbcType=DECIMAL},
|
|
|
|
+ RESULT_CONTACT_PERSON = #{resultContactPerson,jdbcType=VARCHAR},
|
|
|
|
+ RESULT_TELEPHONE_FAX = #{resultTelephoneFax,jdbcType=VARCHAR},
|
|
|
|
+ GROUP_ID = #{groupId,jdbcType=DECIMAL},
|
|
|
|
+ BATCH_ID = #{batchId,jdbcType=DECIMAL},
|
|
|
|
+ RESULT_NUMBER_OF_LOANS = #{resultNumberOfLoans,jdbcType=DECIMAL},
|
|
RESULT_FREIGHT_FORWARDING_INFO = #{resultFreightForwardingInfo,jdbcType=VARCHAR},
|
|
RESULT_FREIGHT_FORWARDING_INFO = #{resultFreightForwardingInfo,jdbcType=VARCHAR},
|
|
- RESULT_MEMO = #{resultMemo,jdbcType=VARCHAR},
|
|
|
|
- DELETE_NAME = #{deleteName,jdbcType=VARCHAR},
|
|
|
|
- DELETE_TIME = #{deleteTime,jdbcType=VARCHAR},
|
|
|
|
- INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
|
|
|
|
- INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
- UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
|
|
|
|
- UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
- INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
|
- DELETED = #{deleted,jdbcType=DECIMAL}
|
|
|
|
|
|
+ RESULT_MEMO = #{resultMemo,jdbcType=VARCHAR},
|
|
|
|
+ DELETE_NAME = #{deleteName,jdbcType=VARCHAR},
|
|
|
|
+ DELETE_TIME = #{deleteTime,jdbcType=VARCHAR},
|
|
|
|
+ INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
|
|
|
|
+ INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
|
|
|
|
+ UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
|
|
|
|
+ UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
+ INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
|
+ DELETED = #{deleted,jdbcType=DECIMAL},
|
|
|
|
+ RESULT_DATE_OF_LOANS = #{resultDateOfLoans,jdbcType=TIMESTAMP}
|
|
where CARGO_TRANSFER_RESULT_ID = #{cargoTransferResultId,jdbcType=DECIMAL}
|
|
where CARGO_TRANSFER_RESULT_ID = #{cargoTransferResultId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.AmsshipCargoTransferResult">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.AmsshipCargoTransferResult">
|
|
@@ -426,20 +439,23 @@
|
|
<if test="deleted != null">
|
|
<if test="deleted != null">
|
|
DELETED = #{deleted,jdbcType=DECIMAL},
|
|
DELETED = #{deleted,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="resultDateOfLoans != null">
|
|
|
|
+ RESULT_DATE_OF_LOANS = #{resultDateOfLoans,jdbcType=TIMESTAMP},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where CARGO_TRANSFER_RESULT_ID = #{cargoTransferResultId,jdbcType=DECIMAL}
|
|
where CARGO_TRANSFER_RESULT_ID = #{cargoTransferResultId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
- <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
|
|
|
|
- <include refid="select"/>
|
|
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
|
|
|
|
+ <include refid="select" />
|
|
where CARGO_TRANSFER_RESULT_ID = #{cargoTransferResultId,jdbcType=DECIMAL}
|
|
where CARGO_TRANSFER_RESULT_ID = #{cargoTransferResultId,jdbcType=DECIMAL}
|
|
</select>
|
|
</select>
|
|
<select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
<select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
- <include refid="select"/>
|
|
|
|
- <include refid="where"/>
|
|
|
|
|
|
+ <include refid="select" />
|
|
|
|
+ <include refid="where" />
|
|
</select>
|
|
</select>
|
|
<select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
<select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
- <include refid="select"/>
|
|
|
|
- <include refid="whereLike"/>
|
|
|
|
|
|
+ <include refid="select" />
|
|
|
|
+ <include refid="whereLike" />
|
|
</select>
|
|
</select>
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
insert into AMSSHIP_CARGO_TRANSFER_RESULT
|
|
insert into AMSSHIP_CARGO_TRANSFER_RESULT
|
|
@@ -451,130 +467,114 @@
|
|
DELETE_NAME, DELETE_TIME, INSERT_USERNAME,
|
|
DELETE_NAME, DELETE_TIME, INSERT_USERNAME,
|
|
INSERT_TIME, UPDATE_USERNAME,
|
|
INSERT_TIME, UPDATE_USERNAME,
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
- DELETED)
|
|
|
|
|
|
+ DELETED, RESULT_DATE_OF_LOANS)
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
select
|
|
select
|
|
#{item.cargoTransferResultId,jdbcType=DECIMAL},
|
|
#{item.cargoTransferResultId,jdbcType=DECIMAL},
|
|
- #{item.resultNumber,jdbcType=VARCHAR}, #{item.carrierId,jdbcType=DECIMAL},
|
|
|
|
- #{item.resultContactPerson,jdbcType=VARCHAR},
|
|
|
|
|
|
+ #{item.resultNumber,jdbcType=VARCHAR}, #{item.carrierId,jdbcType=DECIMAL}, #{item.resultContactPerson,jdbcType=VARCHAR},
|
|
#{item.resultTelephoneFax,jdbcType=VARCHAR}, #{item.groupId,jdbcType=DECIMAL},
|
|
#{item.resultTelephoneFax,jdbcType=VARCHAR}, #{item.groupId,jdbcType=DECIMAL},
|
|
#{item.batchId,jdbcType=DECIMAL}, #{item.resultNumberOfLoans,jdbcType=DECIMAL},
|
|
#{item.batchId,jdbcType=DECIMAL}, #{item.resultNumberOfLoans,jdbcType=DECIMAL},
|
|
#{item.resultFreightForwardingInfo,jdbcType=VARCHAR}, #{item.resultMemo,jdbcType=VARCHAR},
|
|
#{item.resultFreightForwardingInfo,jdbcType=VARCHAR}, #{item.resultMemo,jdbcType=VARCHAR},
|
|
- #{item.deleteName,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=VARCHAR},
|
|
|
|
- #{item.insertUsername,jdbcType=VARCHAR},
|
|
|
|
|
|
+ #{item.deleteName,jdbcType=VARCHAR}, #{item.deleteTime,jdbcType=VARCHAR}, #{item.insertUsername,jdbcType=VARCHAR},
|
|
#{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
|
|
#{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
|
|
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
|
|
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
|
|
- #{item.deleted,jdbcType=DECIMAL} from dual
|
|
|
|
|
|
+ #{item.deleted,jdbcType=DECIMAL}, #{item.resultDateOfLoans,jdbcType=TIMESTAMP} from dual
|
|
</foreach> )
|
|
</foreach> )
|
|
</insert>
|
|
</insert>
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
update AMSSHIP_CARGO_TRANSFER_RESULT
|
|
update AMSSHIP_CARGO_TRANSFER_RESULT
|
|
set
|
|
set
|
|
CARGO_TRANSFER_RESULT_ID=
|
|
CARGO_TRANSFER_RESULT_ID=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CARGO_TRANSFER_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARGO_TRANSFER_RESULT_ID" separator=" ">
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.cargoTransferResultId,jdbcType=DECIMAL}
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.cargoTransferResultId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_NUMBER=
|
|
,RESULT_NUMBER=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CARGO_TRANSFER_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARGO_TRANSFER_RESULT_ID" separator=" ">
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.resultNumber,jdbcType=VARCHAR}
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.resultNumber,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,CARRIER_ID=
|
|
,CARRIER_ID=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CARGO_TRANSFER_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARGO_TRANSFER_RESULT_ID" separator=" ">
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.carrierId,jdbcType=DECIMAL}
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.carrierId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_CONTACT_PERSON=
|
|
,RESULT_CONTACT_PERSON=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CARGO_TRANSFER_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARGO_TRANSFER_RESULT_ID" separator=" ">
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.resultContactPerson,jdbcType=VARCHAR}
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.resultContactPerson,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_TELEPHONE_FAX=
|
|
,RESULT_TELEPHONE_FAX=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CARGO_TRANSFER_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARGO_TRANSFER_RESULT_ID" separator=" ">
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.resultTelephoneFax,jdbcType=VARCHAR}
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.resultTelephoneFax,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,GROUP_ID=
|
|
,GROUP_ID=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CARGO_TRANSFER_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARGO_TRANSFER_RESULT_ID" separator=" ">
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.groupId,jdbcType=DECIMAL}
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.groupId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,BATCH_ID=
|
|
,BATCH_ID=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CARGO_TRANSFER_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARGO_TRANSFER_RESULT_ID" separator=" ">
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.batchId,jdbcType=DECIMAL}
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.batchId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_NUMBER_OF_LOANS=
|
|
,RESULT_NUMBER_OF_LOANS=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CARGO_TRANSFER_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARGO_TRANSFER_RESULT_ID" separator=" ">
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.resultNumberOfLoans,jdbcType=DECIMAL}
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.resultNumberOfLoans,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_FREIGHT_FORWARDING_INFO=
|
|
,RESULT_FREIGHT_FORWARDING_INFO=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CARGO_TRANSFER_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
- when #{item.cargoTransferResultId,jdbcType=DECIMAL} then
|
|
|
|
- #{item.resultFreightForwardingInfo,jdbcType=VARCHAR}
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARGO_TRANSFER_RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.resultFreightForwardingInfo,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_MEMO=
|
|
,RESULT_MEMO=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CARGO_TRANSFER_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARGO_TRANSFER_RESULT_ID" separator=" ">
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.resultMemo,jdbcType=VARCHAR}
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.resultMemo,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,DELETE_NAME=
|
|
,DELETE_NAME=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CARGO_TRANSFER_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARGO_TRANSFER_RESULT_ID" separator=" ">
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.deleteName,jdbcType=VARCHAR}
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.deleteName,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,DELETE_TIME=
|
|
,DELETE_TIME=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CARGO_TRANSFER_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARGO_TRANSFER_RESULT_ID" separator=" ">
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.deleteTime,jdbcType=VARCHAR}
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.deleteTime,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,INSERT_USERNAME=
|
|
,INSERT_USERNAME=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CARGO_TRANSFER_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARGO_TRANSFER_RESULT_ID" separator=" ">
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,INSERT_TIME=
|
|
,INSERT_TIME=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CARGO_TRANSFER_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARGO_TRANSFER_RESULT_ID" separator=" ">
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
</foreach>
|
|
</foreach>
|
|
,UPDATE_USERNAME=
|
|
,UPDATE_USERNAME=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CARGO_TRANSFER_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARGO_TRANSFER_RESULT_ID" separator=" ">
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,UPDATE_TIME=
|
|
,UPDATE_TIME=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CARGO_TRANSFER_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARGO_TRANSFER_RESULT_ID" separator=" ">
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
</foreach>
|
|
</foreach>
|
|
,INSERT_UPDATE_REMARK=
|
|
,INSERT_UPDATE_REMARK=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CARGO_TRANSFER_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARGO_TRANSFER_RESULT_ID" separator=" ">
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,DELETED=
|
|
,DELETED=
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case CARGO_TRANSFER_RESULT_ID"
|
|
|
|
- close="end">
|
|
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARGO_TRANSFER_RESULT_ID" separator=" ">
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
|
|
+ ,RESULT_DATE_OF_LOANS=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case CARGO_TRANSFER_RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.cargoTransferResultId,jdbcType=DECIMAL} then #{item.resultDateOfLoans,jdbcType=TIMESTAMP}
|
|
|
|
+ </foreach>
|
|
where CARGO_TRANSFER_RESULT_ID in
|
|
where CARGO_TRANSFER_RESULT_ID in
|
|
- <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
|
|
|
+ <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
#{item.cargoTransferResultId,jdbcType=DECIMAL}
|
|
#{item.cargoTransferResultId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
</update>
|
|
</update>
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
delete from AMSSHIP_CARGO_TRANSFER_RESULT
|
|
delete from AMSSHIP_CARGO_TRANSFER_RESULT
|
|
where CARGO_TRANSFER_RESULT_ID in
|
|
where CARGO_TRANSFER_RESULT_ID in
|
|
- <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
|
|
|
+ <foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|
|
<!-- 友情提示!!!-->
|
|
<!-- 友情提示!!!-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
|
|
+
|
|
<select id="seletCargoTransfer" resultType="java.util.Map">
|
|
<select id="seletCargoTransfer" resultType="java.util.Map">
|
|
select *
|
|
select *
|
|
from
|
|
from
|
|
@@ -716,5 +716,17 @@
|
|
FROM RMS_PIER
|
|
FROM RMS_PIER
|
|
WHERE PIER_ID = #{pierId}
|
|
WHERE PIER_ID = #{pierId}
|
|
</select>
|
|
</select>
|
|
|
|
+ <!-- 查询船运物资id-->
|
|
|
|
+ <select id="selectMaterialIdByMaterialTypeId" resultType="java.util.LinkedHashMap">
|
|
|
|
+ select RM.MATERIAL_ID "id",
|
|
|
|
+ RM.MATERIAL_ID "value",
|
|
|
|
+ RM.MATERIAL_NAME "label"
|
|
|
|
+
|
|
|
|
+ from RMS_MATERIAL RM
|
|
|
|
+ left join RMS_MATERIAL_TYPE RMT
|
|
|
|
+ on RM.MATERIAL_TYPE_ID=RMT.MATERIAL_TYPE_ID
|
|
|
|
+ where RM.MATERIAL_LENGTH is NULL and RM.MATERIAL_SPECIFICATION is NULL
|
|
|
|
+ and RMT.MATERIAL_TYPE_ID=1
|
|
|
|
+ </select>
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|