|
@@ -32,21 +32,22 @@
|
|
<result column="TOTAL_RESULT_ID" jdbcType="DECIMAL" property="totalResultId" />
|
|
<result column="TOTAL_RESULT_ID" jdbcType="DECIMAL" property="totalResultId" />
|
|
<result column="STATEMENT_ID" jdbcType="DECIMAL" property="statementId" />
|
|
<result column="STATEMENT_ID" jdbcType="DECIMAL" property="statementId" />
|
|
<result column="LOADING_PROPORTION" jdbcType="DECIMAL" property="loadingProportion" />
|
|
<result column="LOADING_PROPORTION" jdbcType="DECIMAL" property="loadingProportion" />
|
|
|
|
+ <result column="INSPECTIONS_FEE" jdbcType="DECIMAL" property="inspectionsFee" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="columns">
|
|
<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, STATEMENT_ID, LOADING_PROPORTION
|
|
|
|
|
|
+ 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, STATEMENT_ID, LOADING_PROPORTION, INSPECTIONS_FEE
|
|
</sql>
|
|
</sql>
|
|
<sql id="columns_alias">
|
|
<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.STATEMENT_ID, t.LOADING_PROPORTION
|
|
|
|
|
|
+ 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.STATEMENT_ID, t.LOADING_PROPORTION, t.INSPECTIONS_FEE
|
|
</sql>
|
|
</sql>
|
|
<sql id="select">
|
|
<sql id="select">
|
|
SELECT <include refid="columns" /> FROM BMSSHIP_FEE
|
|
SELECT <include refid="columns" /> FROM BMSSHIP_FEE
|
|
@@ -146,6 +147,9 @@
|
|
<if test="loadingProportion != null">
|
|
<if test="loadingProportion != null">
|
|
and LOADING_PROPORTION = #{loadingProportion}
|
|
and LOADING_PROPORTION = #{loadingProportion}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="inspectionsFee != null">
|
|
|
|
+ and INSPECTIONS_FEE = #{inspectionsFee}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -240,6 +244,9 @@
|
|
<if test="loadingProportion != null">
|
|
<if test="loadingProportion != null">
|
|
and LOADING_PROPORTION = #{loadingProportion}
|
|
and LOADING_PROPORTION = #{loadingProportion}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="inspectionsFee != null">
|
|
|
|
+ and INSPECTIONS_FEE = #{inspectionsFee}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
@@ -336,6 +343,9 @@
|
|
<if test="loadingProportion != null">
|
|
<if test="loadingProportion != null">
|
|
or LOADING_PROPORTION = #{loadingProportion}
|
|
or LOADING_PROPORTION = #{loadingProportion}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="inspectionsFee != null">
|
|
|
|
+ or INSPECTIONS_FEE = #{inspectionsFee}
|
|
|
|
+ </if>
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.BmsshipFee">
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.BmsshipFee">
|
|
insert into BMSSHIP_FEE (RESULT_ID, FEE, FEE_TYPE,
|
|
insert into BMSSHIP_FEE (RESULT_ID, FEE, FEE_TYPE,
|
|
@@ -347,8 +357,8 @@
|
|
PORT_ID, PORT_NUM, SHIP_NUM,
|
|
PORT_ID, PORT_NUM, SHIP_NUM,
|
|
PREVIEW_FEE, PREVIEW_TONNAGE, FEE_MAKE,
|
|
PREVIEW_FEE, PREVIEW_TONNAGE, FEE_MAKE,
|
|
MAKE_TONNAGE, LOAD_WATER_TONNAGE, EN_WATER_TONNAGE,
|
|
MAKE_TONNAGE, LOAD_WATER_TONNAGE, EN_WATER_TONNAGE,
|
|
- TOTAL_RESULT_ID, STATEMENT_ID, LOADING_PROPORTION
|
|
|
|
- )
|
|
|
|
|
|
+ TOTAL_RESULT_ID, STATEMENT_ID, LOADING_PROPORTION,
|
|
|
|
+ INSPECTIONS_FEE)
|
|
values (#{resultId,jdbcType=DECIMAL}, #{fee,jdbcType=DECIMAL}, #{feeType,jdbcType=DECIMAL},
|
|
values (#{resultId,jdbcType=DECIMAL}, #{fee,jdbcType=DECIMAL}, #{feeType,jdbcType=DECIMAL},
|
|
#{purchaseOrderId,jdbcType=DECIMAL}, #{batchId,jdbcType=DECIMAL}, #{realTonnage,jdbcType=DECIMAL},
|
|
#{purchaseOrderId,jdbcType=DECIMAL}, #{batchId,jdbcType=DECIMAL}, #{realTonnage,jdbcType=DECIMAL},
|
|
#{unitPrice,jdbcType=DECIMAL}, #{unitPriceId,jdbcType=DECIMAL}, #{resultRemarks,jdbcType=VARCHAR},
|
|
#{unitPrice,jdbcType=DECIMAL}, #{unitPriceId,jdbcType=DECIMAL}, #{resultRemarks,jdbcType=VARCHAR},
|
|
@@ -358,8 +368,8 @@
|
|
#{portId,jdbcType=DECIMAL}, #{portNum,jdbcType=DECIMAL}, #{shipNum,jdbcType=DECIMAL},
|
|
#{portId,jdbcType=DECIMAL}, #{portNum,jdbcType=DECIMAL}, #{shipNum,jdbcType=DECIMAL},
|
|
#{previewFee,jdbcType=DECIMAL}, #{previewTonnage,jdbcType=DECIMAL}, #{feeMake,jdbcType=DECIMAL},
|
|
#{previewFee,jdbcType=DECIMAL}, #{previewTonnage,jdbcType=DECIMAL}, #{feeMake,jdbcType=DECIMAL},
|
|
#{makeTonnage,jdbcType=DECIMAL}, #{loadWaterTonnage,jdbcType=DECIMAL}, #{enWaterTonnage,jdbcType=DECIMAL},
|
|
#{makeTonnage,jdbcType=DECIMAL}, #{loadWaterTonnage,jdbcType=DECIMAL}, #{enWaterTonnage,jdbcType=DECIMAL},
|
|
- #{totalResultId,jdbcType=DECIMAL}, #{statementId,jdbcType=DECIMAL}, #{loadingProportion,jdbcType=DECIMAL}
|
|
|
|
- )
|
|
|
|
|
|
+ #{totalResultId,jdbcType=DECIMAL}, #{statementId,jdbcType=DECIMAL}, #{loadingProportion,jdbcType=DECIMAL},
|
|
|
|
+ #{inspectionsFee,jdbcType=DECIMAL})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.BmsshipFee">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.BmsshipFee">
|
|
insert into BMSSHIP_FEE
|
|
insert into BMSSHIP_FEE
|
|
@@ -454,6 +464,9 @@
|
|
<if test="loadingProportion != null">
|
|
<if test="loadingProportion != null">
|
|
LOADING_PROPORTION,
|
|
LOADING_PROPORTION,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="inspectionsFee != null">
|
|
|
|
+ INSPECTIONS_FEE,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="resultId != null">
|
|
<if test="resultId != null">
|
|
@@ -546,6 +559,9 @@
|
|
<if test="loadingProportion != null">
|
|
<if test="loadingProportion != null">
|
|
#{loadingProportion,jdbcType=DECIMAL},
|
|
#{loadingProportion,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="inspectionsFee != null">
|
|
|
|
+ #{inspectionsFee,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.BmsshipFee">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.BmsshipFee">
|
|
@@ -578,7 +594,8 @@
|
|
EN_WATER_TONNAGE = #{enWaterTonnage,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},
|
|
STATEMENT_ID = #{statementId,jdbcType=DECIMAL},
|
|
- LOADING_PROPORTION = #{loadingProportion,jdbcType=DECIMAL}
|
|
|
|
|
|
+ LOADING_PROPORTION = #{loadingProportion,jdbcType=DECIMAL},
|
|
|
|
+ INSPECTIONS_FEE = #{inspectionsFee,jdbcType=DECIMAL}
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.BmsshipFee">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.BmsshipFee">
|
|
@@ -671,6 +688,9 @@
|
|
<if test="loadingProportion != null">
|
|
<if test="loadingProportion != null">
|
|
LOADING_PROPORTION = #{loadingProportion,jdbcType=DECIMAL},
|
|
LOADING_PROPORTION = #{loadingProportion,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="inspectionsFee != null">
|
|
|
|
+ INSPECTIONS_FEE = #{inspectionsFee,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
@@ -699,8 +719,8 @@
|
|
SHIP_NUM, PREVIEW_FEE, PREVIEW_TONNAGE,
|
|
SHIP_NUM, PREVIEW_FEE, PREVIEW_TONNAGE,
|
|
FEE_MAKE, MAKE_TONNAGE, LOAD_WATER_TONNAGE,
|
|
FEE_MAKE, MAKE_TONNAGE, LOAD_WATER_TONNAGE,
|
|
EN_WATER_TONNAGE, TOTAL_RESULT_ID,
|
|
EN_WATER_TONNAGE, TOTAL_RESULT_ID,
|
|
- STATEMENT_ID, LOADING_PROPORTION
|
|
|
|
- )
|
|
|
|
|
|
+ STATEMENT_ID, LOADING_PROPORTION,
|
|
|
|
+ INSPECTIONS_FEE)
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
select
|
|
select
|
|
#{item.resultId,jdbcType=DECIMAL},
|
|
#{item.resultId,jdbcType=DECIMAL},
|
|
@@ -714,8 +734,8 @@
|
|
#{item.shipNum,jdbcType=DECIMAL}, #{item.previewFee,jdbcType=DECIMAL}, #{item.previewTonnage,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.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
|
|
|
|
|
|
+ #{item.statementId,jdbcType=DECIMAL}, #{item.loadingProportion,jdbcType=DECIMAL},
|
|
|
|
+ #{item.inspectionsFee,jdbcType=DECIMAL} from dual
|
|
</foreach> )
|
|
</foreach> )
|
|
</insert>
|
|
</insert>
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
@@ -841,6 +861,10 @@
|
|
<foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
<foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.loadingProportion,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.loadingProportion,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
|
|
+ ,INSPECTIONS_FEE=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.inspectionsFee,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
where RESULT_ID in
|
|
where RESULT_ID in
|
|
<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
#{item.resultId,jdbcType=DECIMAL}
|
|
#{item.resultId,jdbcType=DECIMAL}
|