|
|
@@ -30,26 +30,29 @@
|
|
|
<result column="LOAD_WATER_TONNAGE" jdbcType="DECIMAL" property="loadWaterTonnage" />
|
|
|
<result column="EN_WATER_TONNAGE" jdbcType="DECIMAL" property="enWaterTonnage" />
|
|
|
<result column="TOTAL_RESULT_ID" jdbcType="DECIMAL" property="totalResultId" />
|
|
|
+ <result column="STATEMENT_ID" jdbcType="DECIMAL" property="statementId" />
|
|
|
+ <result column="LOADING_PROPORTION" jdbcType="DECIMAL" property="loadingProportion" />
|
|
|
</resultMap>
|
|
|
<sql id="columns">
|
|
|
RESULT_ID, FEE, FEE_TYPE, PURCHASE_ORDER_ID, BATCH_ID, REAL_TONNAGE, UNIT_PRICE,
|
|
|
UNIT_PRICE_ID, RESULT_REMARKS, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
|
INSERT_UPDATE_REMARK, DELETED, IMAGE, WAGON_NUMBER, MAKE_TIME, PORT_ID, PORT_NUM,
|
|
|
SHIP_NUM, PREVIEW_FEE, PREVIEW_TONNAGE, FEE_MAKE, MAKE_TONNAGE, LOAD_WATER_TONNAGE,
|
|
|
- EN_WATER_TONNAGE, TOTAL_RESULT_ID
|
|
|
+ EN_WATER_TONNAGE, TOTAL_RESULT_ID, STATEMENT_ID, LOADING_PROPORTION
|
|
|
</sql>
|
|
|
<sql id="columns_alias">
|
|
|
t.RESULT_ID, t.FEE, t.FEE_TYPE, t.PURCHASE_ORDER_ID, t.BATCH_ID, t.REAL_TONNAGE,
|
|
|
t.UNIT_PRICE, t.UNIT_PRICE_ID, t.RESULT_REMARKS, t.INSERT_USERNAME, t.INSERT_TIME,
|
|
|
t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.DELETED, t.IMAGE, t.WAGON_NUMBER,
|
|
|
t.MAKE_TIME, t.PORT_ID, t.PORT_NUM, t.SHIP_NUM, t.PREVIEW_FEE, t.PREVIEW_TONNAGE,
|
|
|
- t.FEE_MAKE, t.MAKE_TONNAGE, t.LOAD_WATER_TONNAGE, t.EN_WATER_TONNAGE, t.TOTAL_RESULT_ID
|
|
|
+ t.FEE_MAKE, t.MAKE_TONNAGE, t.LOAD_WATER_TONNAGE, t.EN_WATER_TONNAGE, t.TOTAL_RESULT_ID,
|
|
|
+ t.STATEMENT_ID, t.LOADING_PROPORTION
|
|
|
</sql>
|
|
|
<sql id="select">
|
|
|
- SELECT <include refid="columns"/> FROM BMSSHIP_FEE
|
|
|
+ SELECT <include refid="columns" /> FROM BMSSHIP_FEE
|
|
|
</sql>
|
|
|
<sql id="select_alias">
|
|
|
- SELECT <include refid="columns_alias"/> FROM BMSSHIP_FEE t
|
|
|
+ SELECT <include refid="columns_alias" /> FROM BMSSHIP_FEE t
|
|
|
</sql>
|
|
|
<sql id="where">
|
|
|
<where>
|
|
|
@@ -137,6 +140,12 @@
|
|
|
<if test="totalResultId != null">
|
|
|
and TOTAL_RESULT_ID = #{totalResultId}
|
|
|
</if>
|
|
|
+ <if test="statementId != null">
|
|
|
+ and STATEMENT_ID = #{statementId}
|
|
|
+ </if>
|
|
|
+ <if test="loadingProportion != null">
|
|
|
+ and LOADING_PROPORTION = #{loadingProportion}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="whereLike">
|
|
|
@@ -225,6 +234,12 @@
|
|
|
<if test="totalResultId != null">
|
|
|
and TOTAL_RESULT_ID = #{totalResultId}
|
|
|
</if>
|
|
|
+ <if test="statementId != null">
|
|
|
+ and STATEMENT_ID = #{statementId}
|
|
|
+ </if>
|
|
|
+ <if test="loadingProportion != null">
|
|
|
+ and LOADING_PROPORTION = #{loadingProportion}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
|
@@ -315,6 +330,12 @@
|
|
|
<if test="totalResultId != null">
|
|
|
or TOTAL_RESULT_ID = #{totalResultId}
|
|
|
</if>
|
|
|
+ <if test="statementId != null">
|
|
|
+ or STATEMENT_ID = #{statementId}
|
|
|
+ </if>
|
|
|
+ <if test="loadingProportion != null">
|
|
|
+ or LOADING_PROPORTION = #{loadingProportion}
|
|
|
+ </if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.BmsshipFee">
|
|
|
insert into BMSSHIP_FEE (RESULT_ID, FEE, FEE_TYPE,
|
|
|
@@ -326,7 +347,8 @@
|
|
|
PORT_ID, PORT_NUM, SHIP_NUM,
|
|
|
PREVIEW_FEE, PREVIEW_TONNAGE, FEE_MAKE,
|
|
|
MAKE_TONNAGE, LOAD_WATER_TONNAGE, EN_WATER_TONNAGE,
|
|
|
- TOTAL_RESULT_ID)
|
|
|
+ TOTAL_RESULT_ID, STATEMENT_ID, LOADING_PROPORTION
|
|
|
+ )
|
|
|
values (#{resultId,jdbcType=DECIMAL}, #{fee,jdbcType=DECIMAL}, #{feeType,jdbcType=DECIMAL},
|
|
|
#{purchaseOrderId,jdbcType=DECIMAL}, #{batchId,jdbcType=DECIMAL}, #{realTonnage,jdbcType=DECIMAL},
|
|
|
#{unitPrice,jdbcType=DECIMAL}, #{unitPriceId,jdbcType=DECIMAL}, #{resultRemarks,jdbcType=VARCHAR},
|
|
|
@@ -336,7 +358,8 @@
|
|
|
#{portId,jdbcType=DECIMAL}, #{portNum,jdbcType=DECIMAL}, #{shipNum,jdbcType=DECIMAL},
|
|
|
#{previewFee,jdbcType=DECIMAL}, #{previewTonnage,jdbcType=DECIMAL}, #{feeMake,jdbcType=DECIMAL},
|
|
|
#{makeTonnage,jdbcType=DECIMAL}, #{loadWaterTonnage,jdbcType=DECIMAL}, #{enWaterTonnage,jdbcType=DECIMAL},
|
|
|
- #{totalResultId,jdbcType=DECIMAL})
|
|
|
+ #{totalResultId,jdbcType=DECIMAL}, #{statementId,jdbcType=DECIMAL}, #{loadingProportion,jdbcType=DECIMAL}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.BmsshipFee">
|
|
|
insert into BMSSHIP_FEE
|
|
|
@@ -425,6 +448,12 @@
|
|
|
<if test="totalResultId != null">
|
|
|
TOTAL_RESULT_ID,
|
|
|
</if>
|
|
|
+ <if test="statementId != null">
|
|
|
+ STATEMENT_ID,
|
|
|
+ </if>
|
|
|
+ <if test="loadingProportion != null">
|
|
|
+ LOADING_PROPORTION,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="resultId != null">
|
|
|
@@ -511,6 +540,12 @@
|
|
|
<if test="totalResultId != null">
|
|
|
#{totalResultId,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="statementId != null">
|
|
|
+ #{statementId,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="loadingProportion != null">
|
|
|
+ #{loadingProportion,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.BmsshipFee">
|
|
|
@@ -541,7 +576,9 @@
|
|
|
MAKE_TONNAGE = #{makeTonnage,jdbcType=DECIMAL},
|
|
|
LOAD_WATER_TONNAGE = #{loadWaterTonnage,jdbcType=DECIMAL},
|
|
|
EN_WATER_TONNAGE = #{enWaterTonnage,jdbcType=DECIMAL},
|
|
|
- TOTAL_RESULT_ID = #{totalResultId,jdbcType=DECIMAL}
|
|
|
+ TOTAL_RESULT_ID = #{totalResultId,jdbcType=DECIMAL},
|
|
|
+ STATEMENT_ID = #{statementId,jdbcType=DECIMAL},
|
|
|
+ LOADING_PROPORTION = #{loadingProportion,jdbcType=DECIMAL}
|
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.BmsshipFee">
|
|
|
@@ -628,20 +665,26 @@
|
|
|
<if test="totalResultId != null">
|
|
|
TOTAL_RESULT_ID = #{totalResultId,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="statementId != null">
|
|
|
+ STATEMENT_ID = #{statementId,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="loadingProportion != null">
|
|
|
+ LOADING_PROPORTION = #{loadingProportion,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
|
</update>
|
|
|
<select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
|
|
|
- <include refid="select"/>
|
|
|
+ <include refid="select" />
|
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
|
</select>
|
|
|
<select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
- <include refid="select"/>
|
|
|
- <include refid="where"/>
|
|
|
+ <include refid="select" />
|
|
|
+ <include refid="where" />
|
|
|
</select>
|
|
|
<select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
- <include refid="select"/>
|
|
|
- <include refid="whereLike"/>
|
|
|
+ <include refid="select" />
|
|
|
+ <include refid="whereLike" />
|
|
|
</select>
|
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
|
insert into BMSSHIP_FEE
|
|
|
@@ -655,7 +698,8 @@
|
|
|
MAKE_TIME, PORT_ID, PORT_NUM,
|
|
|
SHIP_NUM, PREVIEW_FEE, PREVIEW_TONNAGE,
|
|
|
FEE_MAKE, MAKE_TONNAGE, LOAD_WATER_TONNAGE,
|
|
|
- EN_WATER_TONNAGE, TOTAL_RESULT_ID
|
|
|
+ EN_WATER_TONNAGE, TOTAL_RESULT_ID,
|
|
|
+ STATEMENT_ID, LOADING_PROPORTION
|
|
|
)
|
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
|
select
|
|
|
@@ -669,7 +713,8 @@
|
|
|
#{item.makeTime,jdbcType=TIMESTAMP}, #{item.portId,jdbcType=DECIMAL}, #{item.portNum,jdbcType=DECIMAL},
|
|
|
#{item.shipNum,jdbcType=DECIMAL}, #{item.previewFee,jdbcType=DECIMAL}, #{item.previewTonnage,jdbcType=DECIMAL},
|
|
|
#{item.feeMake,jdbcType=DECIMAL}, #{item.makeTonnage,jdbcType=DECIMAL}, #{item.loadWaterTonnage,jdbcType=DECIMAL},
|
|
|
- #{item.enWaterTonnage,jdbcType=DECIMAL}, #{item.totalResultId,jdbcType=DECIMAL}
|
|
|
+ #{item.enWaterTonnage,jdbcType=DECIMAL}, #{item.totalResultId,jdbcType=DECIMAL},
|
|
|
+ #{item.statementId,jdbcType=DECIMAL}, #{item.loadingProportion,jdbcType=DECIMAL}
|
|
|
from dual
|
|
|
</foreach> )
|
|
|
</insert>
|
|
|
@@ -677,126 +722,134 @@
|
|
|
update BMSSHIP_FEE
|
|
|
set
|
|
|
RESULT_ID=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultId,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,FEE=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.fee,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,FEE_TYPE=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.feeType,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,PURCHASE_ORDER_ID=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.purchaseOrderId,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,BATCH_ID=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.batchId,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,REAL_TONNAGE=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.realTonnage,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,UNIT_PRICE=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.unitPrice,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,UNIT_PRICE_ID=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.unitPriceId,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,RESULT_REMARKS=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultRemarks,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
|
,INSERT_USERNAME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
|
,INSERT_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
|
,UPDATE_USERNAME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
|
,UPDATE_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
|
,INSERT_UPDATE_REMARK=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
|
,DELETED=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,IMAGE=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.image,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
|
,WAGON_NUMBER=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.wagonNumber,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,MAKE_TIME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.makeTime,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
|
,PORT_ID=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.portId,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,PORT_NUM=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.portNum,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,SHIP_NUM=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.shipNum,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,PREVIEW_FEE=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.previewFee,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,PREVIEW_TONNAGE=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.previewTonnage,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,FEE_MAKE=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.feeMake,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,MAKE_TONNAGE=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.makeTonnage,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,LOAD_WATER_TONNAGE=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.loadWaterTonnage,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,EN_WATER_TONNAGE=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.enWaterTonnage,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,TOTAL_RESULT_ID=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.totalResultId,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
+ ,STATEMENT_ID=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.statementId,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,LOADING_PROPORTION=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.loadingProportion,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
where RESULT_ID in
|
|
|
- <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
|
+ <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
#{item.resultId,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
</update>
|
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
|
delete from BMSSHIP_FEE
|
|
|
where RESULT_ID in
|
|
|
- <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
+ <foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
</delete>
|