|
@@ -23,24 +23,33 @@
|
|
<result column="PORT_ID" jdbcType="DECIMAL" property="portId" />
|
|
<result column="PORT_ID" jdbcType="DECIMAL" property="portId" />
|
|
<result column="PORT_NUM" jdbcType="DECIMAL" property="portNum" />
|
|
<result column="PORT_NUM" jdbcType="DECIMAL" property="portNum" />
|
|
<result column="SHIP_NUM" jdbcType="DECIMAL" property="shipNum" />
|
|
<result column="SHIP_NUM" jdbcType="DECIMAL" property="shipNum" />
|
|
|
|
+ <result column="PREVIEW_FEE" jdbcType="DECIMAL" property="previewFee" />
|
|
|
|
+ <result column="PREVIEW_TONNAGE" jdbcType="DECIMAL" property="previewTonnage" />
|
|
|
|
+ <result column="FEE_MAKE" jdbcType="DECIMAL" property="feeMake" />
|
|
|
|
+ <result column="MAKE_TONNAGE" jdbcType="DECIMAL" property="makeTonnage" />
|
|
|
|
+ <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" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
RESULT_ID, FEE, FEE_TYPE, PURCHASE_ORDER_ID, BATCH_ID, REAL_TONNAGE, UNIT_PRICE,
|
|
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,
|
|
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,
|
|
INSERT_UPDATE_REMARK, DELETED, IMAGE, WAGON_NUMBER, MAKE_TIME, PORT_ID, PORT_NUM,
|
|
- SHIP_NUM
|
|
|
|
|
|
+ SHIP_NUM, PREVIEW_FEE, PREVIEW_TONNAGE, FEE_MAKE, MAKE_TONNAGE, LOAD_WATER_TONNAGE,
|
|
|
|
+ EN_WATER_TONNAGE, TOTAL_RESULT_ID
|
|
</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.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.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.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.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
|
|
</sql>
|
|
</sql>
|
|
<sql id="select">
|
|
<sql id="select">
|
|
- SELECT <include refid="columns" /> FROM BMSSHIP_FEE
|
|
|
|
|
|
+ SELECT <include refid="columns"/> FROM BMSSHIP_FEE
|
|
</sql>
|
|
</sql>
|
|
<sql id="select_alias">
|
|
<sql id="select_alias">
|
|
- SELECT <include refid="columns_alias" /> FROM BMSSHIP_FEE t
|
|
|
|
|
|
+ SELECT <include refid="columns_alias"/> FROM BMSSHIP_FEE t
|
|
</sql>
|
|
</sql>
|
|
<sql id="where">
|
|
<sql id="where">
|
|
<where>
|
|
<where>
|
|
@@ -107,6 +116,27 @@
|
|
<if test="shipNum != null">
|
|
<if test="shipNum != null">
|
|
and SHIP_NUM = #{shipNum}
|
|
and SHIP_NUM = #{shipNum}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="previewFee != null">
|
|
|
|
+ and PREVIEW_FEE = #{previewFee}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="previewTonnage != null">
|
|
|
|
+ and PREVIEW_TONNAGE = #{previewTonnage}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="feeMake != null">
|
|
|
|
+ and FEE_MAKE = #{feeMake}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="makeTonnage != null">
|
|
|
|
+ and MAKE_TONNAGE = #{makeTonnage}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="loadWaterTonnage != null">
|
|
|
|
+ and LOAD_WATER_TONNAGE = #{loadWaterTonnage}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="enWaterTonnage != null">
|
|
|
|
+ and EN_WATER_TONNAGE = #{enWaterTonnage}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="totalResultId != null">
|
|
|
|
+ and TOTAL_RESULT_ID = #{totalResultId}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -174,9 +204,30 @@
|
|
<if test="shipNum != null">
|
|
<if test="shipNum != null">
|
|
and SHIP_NUM = #{shipNum}
|
|
and SHIP_NUM = #{shipNum}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="previewFee != null">
|
|
|
|
+ and PREVIEW_FEE = #{previewFee}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="previewTonnage != null">
|
|
|
|
+ and PREVIEW_TONNAGE = #{previewTonnage}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="feeMake != null">
|
|
|
|
+ and FEE_MAKE = #{feeMake}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="makeTonnage != null">
|
|
|
|
+ and MAKE_TONNAGE = #{makeTonnage}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="loadWaterTonnage != null">
|
|
|
|
+ and LOAD_WATER_TONNAGE = #{loadWaterTonnage}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="enWaterTonnage != null">
|
|
|
|
+ and EN_WATER_TONNAGE = #{enWaterTonnage}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="totalResultId != null">
|
|
|
|
+ and TOTAL_RESULT_ID = #{totalResultId}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
delete from BMSSHIP_FEE
|
|
delete from BMSSHIP_FEE
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
</delete>
|
|
</delete>
|
|
@@ -243,6 +294,27 @@
|
|
<if test="shipNum != null">
|
|
<if test="shipNum != null">
|
|
or SHIP_NUM = #{shipNum}
|
|
or SHIP_NUM = #{shipNum}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="previewFee != null">
|
|
|
|
+ or PREVIEW_FEE = #{previewFee}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="previewTonnage != null">
|
|
|
|
+ or PREVIEW_TONNAGE = #{previewTonnage}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="feeMake != null">
|
|
|
|
+ or FEE_MAKE = #{feeMake}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="makeTonnage != null">
|
|
|
|
+ or MAKE_TONNAGE = #{makeTonnage}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="loadWaterTonnage != null">
|
|
|
|
+ or LOAD_WATER_TONNAGE = #{loadWaterTonnage}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="enWaterTonnage != null">
|
|
|
|
+ or EN_WATER_TONNAGE = #{enWaterTonnage}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="totalResultId != null">
|
|
|
|
+ or TOTAL_RESULT_ID = #{totalResultId}
|
|
|
|
+ </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,
|
|
@@ -251,16 +323,20 @@
|
|
INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,
|
|
INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME,
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED,
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED,
|
|
IMAGE, WAGON_NUMBER, MAKE_TIME,
|
|
IMAGE, WAGON_NUMBER, MAKE_TIME,
|
|
- PORT_ID, PORT_NUM, SHIP_NUM
|
|
|
|
- )
|
|
|
|
|
|
+ PORT_ID, PORT_NUM, SHIP_NUM,
|
|
|
|
+ PREVIEW_FEE, PREVIEW_TONNAGE, FEE_MAKE,
|
|
|
|
+ MAKE_TONNAGE, LOAD_WATER_TONNAGE, EN_WATER_TONNAGE,
|
|
|
|
+ TOTAL_RESULT_ID)
|
|
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},
|
|
#{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR},
|
|
#{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR},
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL},
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL},
|
|
#{image,jdbcType=VARCHAR}, #{wagonNumber,jdbcType=DECIMAL}, #{makeTime,jdbcType=TIMESTAMP},
|
|
#{image,jdbcType=VARCHAR}, #{wagonNumber,jdbcType=DECIMAL}, #{makeTime,jdbcType=TIMESTAMP},
|
|
- #{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},
|
|
|
|
+ #{makeTonnage,jdbcType=DECIMAL}, #{loadWaterTonnage,jdbcType=DECIMAL}, #{enWaterTonnage,jdbcType=DECIMAL},
|
|
|
|
+ #{totalResultId,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
|
|
@@ -328,6 +404,27 @@
|
|
<if test="shipNum != null">
|
|
<if test="shipNum != null">
|
|
SHIP_NUM,
|
|
SHIP_NUM,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="previewFee != null">
|
|
|
|
+ PREVIEW_FEE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="previewTonnage != null">
|
|
|
|
+ PREVIEW_TONNAGE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="feeMake != null">
|
|
|
|
+ FEE_MAKE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="makeTonnage != null">
|
|
|
|
+ MAKE_TONNAGE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="loadWaterTonnage != null">
|
|
|
|
+ LOAD_WATER_TONNAGE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="enWaterTonnage != null">
|
|
|
|
+ EN_WATER_TONNAGE,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="totalResultId != null">
|
|
|
|
+ TOTAL_RESULT_ID,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="resultId != null">
|
|
<if test="resultId != null">
|
|
@@ -393,6 +490,27 @@
|
|
<if test="shipNum != null">
|
|
<if test="shipNum != null">
|
|
#{shipNum,jdbcType=DECIMAL},
|
|
#{shipNum,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="previewFee != null">
|
|
|
|
+ #{previewFee,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="previewTonnage != null">
|
|
|
|
+ #{previewTonnage,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="feeMake != null">
|
|
|
|
+ #{feeMake,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="makeTonnage != null">
|
|
|
|
+ #{makeTonnage,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="loadWaterTonnage != null">
|
|
|
|
+ #{loadWaterTonnage,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="enWaterTonnage != null">
|
|
|
|
+ #{enWaterTonnage,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="totalResultId != null">
|
|
|
|
+ #{totalResultId,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">
|
|
@@ -416,7 +534,14 @@
|
|
MAKE_TIME = #{makeTime,jdbcType=TIMESTAMP},
|
|
MAKE_TIME = #{makeTime,jdbcType=TIMESTAMP},
|
|
PORT_ID = #{portId,jdbcType=DECIMAL},
|
|
PORT_ID = #{portId,jdbcType=DECIMAL},
|
|
PORT_NUM = #{portNum,jdbcType=DECIMAL},
|
|
PORT_NUM = #{portNum,jdbcType=DECIMAL},
|
|
- SHIP_NUM = #{shipNum,jdbcType=DECIMAL}
|
|
|
|
|
|
+ SHIP_NUM = #{shipNum,jdbcType=DECIMAL},
|
|
|
|
+ PREVIEW_FEE = #{previewFee,jdbcType=DECIMAL},
|
|
|
|
+ PREVIEW_TONNAGE = #{previewTonnage,jdbcType=DECIMAL},
|
|
|
|
+ FEE_MAKE = #{feeMake,jdbcType=DECIMAL},
|
|
|
|
+ MAKE_TONNAGE = #{makeTonnage,jdbcType=DECIMAL},
|
|
|
|
+ LOAD_WATER_TONNAGE = #{loadWaterTonnage,jdbcType=DECIMAL},
|
|
|
|
+ EN_WATER_TONNAGE = #{enWaterTonnage,jdbcType=DECIMAL},
|
|
|
|
+ TOTAL_RESULT_ID = #{totalResultId,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">
|
|
@@ -482,20 +607,41 @@
|
|
<if test="shipNum != null">
|
|
<if test="shipNum != null">
|
|
SHIP_NUM = #{shipNum,jdbcType=DECIMAL},
|
|
SHIP_NUM = #{shipNum,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="previewFee != null">
|
|
|
|
+ PREVIEW_FEE = #{previewFee,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="previewTonnage != null">
|
|
|
|
+ PREVIEW_TONNAGE = #{previewTonnage,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="feeMake != null">
|
|
|
|
+ FEE_MAKE = #{feeMake,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="makeTonnage != null">
|
|
|
|
+ MAKE_TONNAGE = #{makeTonnage,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="loadWaterTonnage != null">
|
|
|
|
+ LOAD_WATER_TONNAGE = #{loadWaterTonnage,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="enWaterTonnage != null">
|
|
|
|
+ EN_WATER_TONNAGE = #{enWaterTonnage,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="totalResultId != null">
|
|
|
|
+ TOTAL_RESULT_ID = #{totalResultId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
|
|
|
|
- <include refid="select" />
|
|
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
|
|
|
|
+ <include refid="select"/>
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
where RESULT_ID = #{resultId,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 BMSSHIP_FEE
|
|
insert into BMSSHIP_FEE
|
|
@@ -507,7 +653,10 @@
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
DELETED, IMAGE, WAGON_NUMBER,
|
|
DELETED, IMAGE, WAGON_NUMBER,
|
|
MAKE_TIME, PORT_ID, PORT_NUM,
|
|
MAKE_TIME, PORT_ID, PORT_NUM,
|
|
- SHIP_NUM)
|
|
|
|
|
|
+ SHIP_NUM, PREVIEW_FEE, PREVIEW_TONNAGE,
|
|
|
|
+ FEE_MAKE, MAKE_TONNAGE, LOAD_WATER_TONNAGE,
|
|
|
|
+ EN_WATER_TONNAGE, TOTAL_RESULT_ID
|
|
|
|
+ )
|
|
( <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},
|
|
@@ -518,116 +667,144 @@
|
|
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
|
|
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
|
|
#{item.deleted,jdbcType=DECIMAL}, #{item.image,jdbcType=VARCHAR}, #{item.wagonNumber,jdbcType=DECIMAL},
|
|
#{item.deleted,jdbcType=DECIMAL}, #{item.image,jdbcType=VARCHAR}, #{item.wagonNumber,jdbcType=DECIMAL},
|
|
#{item.makeTime,jdbcType=TIMESTAMP}, #{item.portId,jdbcType=DECIMAL}, #{item.portNum,jdbcType=DECIMAL},
|
|
#{item.makeTime,jdbcType=TIMESTAMP}, #{item.portId,jdbcType=DECIMAL}, #{item.portNum,jdbcType=DECIMAL},
|
|
- #{item.shipNum,jdbcType=DECIMAL} from dual
|
|
|
|
|
|
+ #{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}
|
|
|
|
+ from dual
|
|
</foreach> )
|
|
</foreach> )
|
|
</insert>
|
|
</insert>
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
update BMSSHIP_FEE
|
|
update BMSSHIP_FEE
|
|
set
|
|
set
|
|
RESULT_ID=
|
|
RESULT_ID=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultId,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,FEE=
|
|
,FEE=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.fee,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.fee,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,FEE_TYPE=
|
|
,FEE_TYPE=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.feeType,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.feeType,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,PURCHASE_ORDER_ID=
|
|
,PURCHASE_ORDER_ID=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.purchaseOrderId,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.purchaseOrderId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,BATCH_ID=
|
|
,BATCH_ID=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.batchId,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.batchId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,REAL_TONNAGE=
|
|
,REAL_TONNAGE=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.realTonnage,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.realTonnage,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,UNIT_PRICE=
|
|
,UNIT_PRICE=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.unitPrice,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.unitPrice,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,UNIT_PRICE_ID=
|
|
,UNIT_PRICE_ID=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.unitPriceId,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.unitPriceId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,RESULT_REMARKS=
|
|
,RESULT_REMARKS=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultRemarks,jdbcType=VARCHAR}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.resultRemarks,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,INSERT_USERNAME=
|
|
,INSERT_USERNAME=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,INSERT_TIME=
|
|
,INSERT_TIME=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
|
|
</foreach>
|
|
</foreach>
|
|
,UPDATE_USERNAME=
|
|
,UPDATE_USERNAME=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,UPDATE_TIME=
|
|
,UPDATE_TIME=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
|
|
</foreach>
|
|
</foreach>
|
|
,INSERT_UPDATE_REMARK=
|
|
,INSERT_UPDATE_REMARK=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,DELETED=
|
|
,DELETED=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,IMAGE=
|
|
,IMAGE=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.image,jdbcType=VARCHAR}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.image,jdbcType=VARCHAR}
|
|
</foreach>
|
|
</foreach>
|
|
,WAGON_NUMBER=
|
|
,WAGON_NUMBER=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.wagonNumber,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.wagonNumber,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,MAKE_TIME=
|
|
,MAKE_TIME=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.makeTime,jdbcType=TIMESTAMP}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.makeTime,jdbcType=TIMESTAMP}
|
|
</foreach>
|
|
</foreach>
|
|
,PORT_ID=
|
|
,PORT_ID=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.portId,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.portId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,PORT_NUM=
|
|
,PORT_NUM=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.portNum,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.portNum,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
,SHIP_NUM=
|
|
,SHIP_NUM=
|
|
- <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.shipNum,jdbcType=DECIMAL}
|
|
when #{item.resultId,jdbcType=DECIMAL} then #{item.shipNum,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
|
|
+ ,PREVIEW_FEE=
|
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
|
+ 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">
|
|
|
|
+ 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">
|
|
|
|
+ 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">
|
|
|
|
+ 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">
|
|
|
|
+ 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">
|
|
|
|
+ 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">
|
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.totalResultId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
where RESULT_ID in
|
|
where RESULT_ID in
|
|
- <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
|
|
|
+ <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|
|
#{item.resultId,jdbcType=DECIMAL}
|
|
#{item.resultId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
</update>
|
|
</update>
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
delete from BMSSHIP_FEE
|
|
delete from BMSSHIP_FEE
|
|
where RESULT_ID in
|
|
where RESULT_ID in
|
|
- <foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
|
|
|
|
+ <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|
|
<!-- 友情提示!!!-->
|
|
<!-- 友情提示!!!-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
<!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
|
|
- <!-- 根据userId查找用户名-->
|
|
|
|
<select id="getPersonnelNameByUserId" resultType="java.lang.String" parameterType="java.lang.String">
|
|
<select id="getPersonnelNameByUserId" resultType="java.lang.String" parameterType="java.lang.String">
|
|
select RP.PERSONNEL_NAME "personnelName"
|
|
select RP.PERSONNEL_NAME "personnelName"
|
|
from RMS_PERSONNEL RP
|
|
from RMS_PERSONNEL RP
|
|
WHERE RP.PERSONNEL_SSO_ID =#{userId}
|
|
WHERE RP.PERSONNEL_SSO_ID =#{userId}
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
-
|
|
|
|
</mapper>
|
|
</mapper>
|