|
@@ -2,47 +2,45 @@
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="com.steerinfo.dil.mapper.TmsshipWaterQualityResultMapper">
|
|
|
<resultMap id="BaseResultMap" type="com.steerinfo.dil.model.TmsshipWaterQualityResult">
|
|
|
- <id column="RESULT_ID" jdbcType="DECIMAL" property="resultId"/>
|
|
|
- <result column="TOTAL_RESULT_ID" jdbcType="DECIMAL" property="totalResultId"/>
|
|
|
- <result column="RESULT_PLANNED_DATE" jdbcType="TIMESTAMP" property="resultPlannedDate"/>
|
|
|
- <result column="RESULT_CARGO_RIGHTS_DATE" jdbcType="TIMESTAMP" property="resultCargoRightsDate"/>
|
|
|
- <result column="RESULT_SHIPMENT_RATIO" jdbcType="DECIMAL" property="resultShipmentRatio"/>
|
|
|
- <result column="RESULT_EMPTY_HEAVY_WATER_METER" jdbcType="DECIMAL" property="resultEmptyHeavyWaterMeter"/>
|
|
|
- <result column="RESULT_MOISTURE_CONTENT" jdbcType="DECIMAL" property="resultMoistureContent"/>
|
|
|
- <result column="RESULT_WATER_TONNAGE" jdbcType="DECIMAL" property="resultWaterTonnage"/>
|
|
|
- <result column="RESULT_INSPECTION_FEES" jdbcType="DECIMAL" property="resultInspectionFees"/>
|
|
|
- <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="RESULT_ES_DELIVERY_DATE" jdbcType="TIMESTAMP" property="resultEsDeliveryDate"/>
|
|
|
- <result column="DELETED" jdbcType="DECIMAL" property="deleted"/>
|
|
|
+ <id column="RESULT_ID" jdbcType="DECIMAL" property="resultId" />
|
|
|
+ <result column="TOTAL_RESULT_ID" jdbcType="DECIMAL" property="totalResultId" />
|
|
|
+ <result column="RESULT_PLANNED_DATE" jdbcType="TIMESTAMP" property="resultPlannedDate" />
|
|
|
+ <result column="RESULT_CARGO_RIGHTS_DATE" jdbcType="TIMESTAMP" property="resultCargoRightsDate" />
|
|
|
+ <result column="RESULT_SHIPMENT_RATIO" jdbcType="DECIMAL" property="resultShipmentRatio" />
|
|
|
+ <result column="RESULT_EMPTY_HEAVY_WATER_METER" jdbcType="VARCHAR" property="resultEmptyHeavyWaterMeter" />
|
|
|
+ <result column="RESULT_MOISTURE_CONTENT" jdbcType="DECIMAL" property="resultMoistureContent" />
|
|
|
+ <result column="RESULT_WATER_TONNAGE" jdbcType="DECIMAL" property="resultWaterTonnage" />
|
|
|
+ <result column="RESULT_INSPECTION_FEES" jdbcType="DECIMAL" property="resultInspectionFees" />
|
|
|
+ <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="RESULT_ES_DELIVERY_DATE" jdbcType="TIMESTAMP" property="resultEsDeliveryDate" />
|
|
|
+ <result column="DELETED" jdbcType="DECIMAL" property="deleted" />
|
|
|
+ <result column="WATER_UNIT_PRICE" jdbcType="DECIMAL" property="waterUnitPrice" />
|
|
|
+ <result column="IS_NEED_ASSEMBLE" jdbcType="VARCHAR" property="isNeedAssemble" />
|
|
|
</resultMap>
|
|
|
<sql id="columns">
|
|
|
RESULT_ID, TOTAL_RESULT_ID, RESULT_PLANNED_DATE, RESULT_CARGO_RIGHTS_DATE, RESULT_SHIPMENT_RATIO,
|
|
|
RESULT_EMPTY_HEAVY_WATER_METER, RESULT_MOISTURE_CONTENT, RESULT_WATER_TONNAGE, RESULT_INSPECTION_FEES,
|
|
|
DELETE_NAME, DELETE_TIME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
|
- INSERT_UPDATE_REMARK, RESULT_ES_DELIVERY_DATE, DELETED
|
|
|
+ INSERT_UPDATE_REMARK, RESULT_ES_DELIVERY_DATE, DELETED, WATER_UNIT_PRICE, IS_NEED_ASSEMBLE
|
|
|
</sql>
|
|
|
<sql id="columns_alias">
|
|
|
t.RESULT_ID, t.TOTAL_RESULT_ID, t.RESULT_PLANNED_DATE, t.RESULT_CARGO_RIGHTS_DATE,
|
|
|
t.RESULT_SHIPMENT_RATIO, t.RESULT_EMPTY_HEAVY_WATER_METER, t.RESULT_MOISTURE_CONTENT,
|
|
|
t.RESULT_WATER_TONNAGE, t.RESULT_INSPECTION_FEES, t.DELETE_NAME, t.DELETE_TIME, t.INSERT_USERNAME,
|
|
|
t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.RESULT_ES_DELIVERY_DATE,
|
|
|
- t.DELETED
|
|
|
+ t.DELETED, t.WATER_UNIT_PRICE, t.IS_NEED_ASSEMBLE
|
|
|
</sql>
|
|
|
<sql id="select">
|
|
|
- SELECT
|
|
|
- <include refid="columns"/>
|
|
|
- FROM TMSSHIP_WATER_QUALITY_RESULT
|
|
|
+ SELECT <include refid="columns" /> FROM TMSSHIP_WATER_QUALITY_RESULT
|
|
|
</sql>
|
|
|
<sql id="select_alias">
|
|
|
- SELECT
|
|
|
- <include refid="columns_alias"/>
|
|
|
- FROM TMSSHIP_WATER_QUALITY_RESULT t
|
|
|
+ SELECT <include refid="columns_alias" /> FROM TMSSHIP_WATER_QUALITY_RESULT t
|
|
|
</sql>
|
|
|
<sql id="where">
|
|
|
<where>
|
|
@@ -61,7 +59,7 @@
|
|
|
<if test="resultShipmentRatio != null">
|
|
|
and RESULT_SHIPMENT_RATIO = #{resultShipmentRatio}
|
|
|
</if>
|
|
|
- <if test="resultEmptyHeavyWaterMeter != null">
|
|
|
+ <if test="resultEmptyHeavyWaterMeter != null and resultEmptyHeavyWaterMeter != ''">
|
|
|
and RESULT_EMPTY_HEAVY_WATER_METER = #{resultEmptyHeavyWaterMeter}
|
|
|
</if>
|
|
|
<if test="resultMoistureContent != null">
|
|
@@ -100,6 +98,12 @@
|
|
|
<if test="deleted != null">
|
|
|
and DELETED = #{deleted}
|
|
|
</if>
|
|
|
+ <if test="waterUnitPrice != null">
|
|
|
+ and WATER_UNIT_PRICE = #{waterUnitPrice}
|
|
|
+ </if>
|
|
|
+ <if test="isNeedAssemble != null and isNeedAssemble != ''">
|
|
|
+ and IS_NEED_ASSEMBLE = #{isNeedAssemble}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="whereLike">
|
|
@@ -119,8 +123,8 @@
|
|
|
<if test="resultShipmentRatio != null">
|
|
|
and RESULT_SHIPMENT_RATIO = #{resultShipmentRatio}
|
|
|
</if>
|
|
|
- <if test="resultEmptyHeavyWaterMeter != null">
|
|
|
- and RESULT_EMPTY_HEAVY_WATER_METER = #{resultEmptyHeavyWaterMeter}
|
|
|
+ <if test="resultEmptyHeavyWaterMeter != null and resultEmptyHeavyWaterMeter != ''">
|
|
|
+ and RESULT_EMPTY_HEAVY_WATER_METER LIKE '%${resultEmptyHeavyWaterMeter}%'
|
|
|
</if>
|
|
|
<if test="resultMoistureContent != null">
|
|
|
and RESULT_MOISTURE_CONTENT = #{resultMoistureContent}
|
|
@@ -158,11 +162,16 @@
|
|
|
<if test="deleted != null">
|
|
|
and DELETED = #{deleted}
|
|
|
</if>
|
|
|
+ <if test="waterUnitPrice != null">
|
|
|
+ and WATER_UNIT_PRICE = #{waterUnitPrice}
|
|
|
+ </if>
|
|
|
+ <if test="isNeedAssemble != null and isNeedAssemble != ''">
|
|
|
+ and IS_NEED_ASSEMBLE LIKE '%${isNeedAssemble}%'
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
|
- delete
|
|
|
- from TMSSHIP_WATER_QUALITY_RESULT
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
|
+ delete from TMSSHIP_WATER_QUALITY_RESULT
|
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
|
</delete>
|
|
|
<delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
|
|
@@ -180,7 +189,7 @@
|
|
|
<if test="resultShipmentRatio != null">
|
|
|
or RESULT_SHIPMENT_RATIO = #{resultShipmentRatio}
|
|
|
</if>
|
|
|
- <if test="resultEmptyHeavyWaterMeter != null">
|
|
|
+ <if test="resultEmptyHeavyWaterMeter != null and resultEmptyHeavyWaterMeter != ''">
|
|
|
or RESULT_EMPTY_HEAVY_WATER_METER = #{resultEmptyHeavyWaterMeter}
|
|
|
</if>
|
|
|
<if test="resultMoistureContent != null">
|
|
@@ -219,6 +228,12 @@
|
|
|
<if test="deleted != null">
|
|
|
or DELETED = #{deleted}
|
|
|
</if>
|
|
|
+ <if test="waterUnitPrice != null">
|
|
|
+ or WATER_UNIT_PRICE = #{waterUnitPrice}
|
|
|
+ </if>
|
|
|
+ <if test="isNeedAssemble != null and isNeedAssemble != ''">
|
|
|
+ or IS_NEED_ASSEMBLE = #{isNeedAssemble}
|
|
|
+ </if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.TmsshipWaterQualityResult">
|
|
|
insert into TMSSHIP_WATER_QUALITY_RESULT (RESULT_ID, TOTAL_RESULT_ID, RESULT_PLANNED_DATE,
|
|
@@ -228,16 +243,17 @@
|
|
|
DELETE_NAME, DELETE_TIME, INSERT_USERNAME,
|
|
|
INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
|
INSERT_UPDATE_REMARK, RESULT_ES_DELIVERY_DATE,
|
|
|
- DELETED)
|
|
|
- values (#{resultId,jdbcType=DECIMAL}, #{totalResultId,jdbcType=DECIMAL},
|
|
|
- #{resultPlannedDate,jdbcType=TIMESTAMP},
|
|
|
+ DELETED, WATER_UNIT_PRICE, IS_NEED_ASSEMBLE
|
|
|
+ )
|
|
|
+ values (#{resultId,jdbcType=DECIMAL}, #{totalResultId,jdbcType=DECIMAL}, #{resultPlannedDate,jdbcType=TIMESTAMP},
|
|
|
#{resultCargoRightsDate,jdbcType=TIMESTAMP}, #{resultShipmentRatio,jdbcType=DECIMAL},
|
|
|
- #{resultEmptyHeavyWaterMeter,jdbcType=DECIMAL}, #{resultMoistureContent,jdbcType=DECIMAL},
|
|
|
+ #{resultEmptyHeavyWaterMeter,jdbcType=VARCHAR}, #{resultMoistureContent,jdbcType=DECIMAL},
|
|
|
#{resultWaterTonnage,jdbcType=DECIMAL}, #{resultInspectionFees,jdbcType=DECIMAL},
|
|
|
#{deleteName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR},
|
|
|
#{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
#{insertUpdateRemark,jdbcType=VARCHAR}, #{resultEsDeliveryDate,jdbcType=TIMESTAMP},
|
|
|
- #{deleted,jdbcType=DECIMAL})
|
|
|
+ #{deleted,jdbcType=DECIMAL}, #{waterUnitPrice,jdbcType=DECIMAL}, #{isNeedAssemble,jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.TmsshipWaterQualityResult">
|
|
|
insert into TMSSHIP_WATER_QUALITY_RESULT
|
|
@@ -296,6 +312,12 @@
|
|
|
<if test="deleted != null">
|
|
|
DELETED,
|
|
|
</if>
|
|
|
+ <if test="waterUnitPrice != null">
|
|
|
+ WATER_UNIT_PRICE,
|
|
|
+ </if>
|
|
|
+ <if test="isNeedAssemble != null">
|
|
|
+ IS_NEED_ASSEMBLE,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="resultId != null">
|
|
@@ -314,7 +336,7 @@
|
|
|
#{resultShipmentRatio,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="resultEmptyHeavyWaterMeter != null">
|
|
|
- #{resultEmptyHeavyWaterMeter,jdbcType=DECIMAL},
|
|
|
+ #{resultEmptyHeavyWaterMeter,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="resultMoistureContent != null">
|
|
|
#{resultMoistureContent,jdbcType=DECIMAL},
|
|
@@ -352,27 +374,35 @@
|
|
|
<if test="deleted != null">
|
|
|
#{deleted,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="waterUnitPrice != null">
|
|
|
+ #{waterUnitPrice,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="isNeedAssemble != null">
|
|
|
+ #{isNeedAssemble,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.TmsshipWaterQualityResult">
|
|
|
update TMSSHIP_WATER_QUALITY_RESULT
|
|
|
- set TOTAL_RESULT_ID = #{totalResultId,jdbcType=DECIMAL},
|
|
|
- RESULT_PLANNED_DATE = #{resultPlannedDate,jdbcType=TIMESTAMP},
|
|
|
- RESULT_CARGO_RIGHTS_DATE = #{resultCargoRightsDate,jdbcType=TIMESTAMP},
|
|
|
- RESULT_SHIPMENT_RATIO = #{resultShipmentRatio,jdbcType=DECIMAL},
|
|
|
- RESULT_EMPTY_HEAVY_WATER_METER = #{resultEmptyHeavyWaterMeter,jdbcType=DECIMAL},
|
|
|
- RESULT_MOISTURE_CONTENT = #{resultMoistureContent,jdbcType=DECIMAL},
|
|
|
- RESULT_WATER_TONNAGE = #{resultWaterTonnage,jdbcType=DECIMAL},
|
|
|
- RESULT_INSPECTION_FEES = #{resultInspectionFees,jdbcType=DECIMAL},
|
|
|
- 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},
|
|
|
- RESULT_ES_DELIVERY_DATE = #{resultEsDeliveryDate,jdbcType=TIMESTAMP},
|
|
|
- DELETED = #{deleted,jdbcType=DECIMAL}
|
|
|
+ set TOTAL_RESULT_ID = #{totalResultId,jdbcType=DECIMAL},
|
|
|
+ RESULT_PLANNED_DATE = #{resultPlannedDate,jdbcType=TIMESTAMP},
|
|
|
+ RESULT_CARGO_RIGHTS_DATE = #{resultCargoRightsDate,jdbcType=TIMESTAMP},
|
|
|
+ RESULT_SHIPMENT_RATIO = #{resultShipmentRatio,jdbcType=DECIMAL},
|
|
|
+ RESULT_EMPTY_HEAVY_WATER_METER = #{resultEmptyHeavyWaterMeter,jdbcType=VARCHAR},
|
|
|
+ RESULT_MOISTURE_CONTENT = #{resultMoistureContent,jdbcType=DECIMAL},
|
|
|
+ RESULT_WATER_TONNAGE = #{resultWaterTonnage,jdbcType=DECIMAL},
|
|
|
+ RESULT_INSPECTION_FEES = #{resultInspectionFees,jdbcType=DECIMAL},
|
|
|
+ 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},
|
|
|
+ RESULT_ES_DELIVERY_DATE = #{resultEsDeliveryDate,jdbcType=TIMESTAMP},
|
|
|
+ DELETED = #{deleted,jdbcType=DECIMAL},
|
|
|
+ WATER_UNIT_PRICE = #{waterUnitPrice,jdbcType=DECIMAL},
|
|
|
+ IS_NEED_ASSEMBLE = #{isNeedAssemble,jdbcType=VARCHAR}
|
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.TmsshipWaterQualityResult">
|
|
@@ -391,7 +421,7 @@
|
|
|
RESULT_SHIPMENT_RATIO = #{resultShipmentRatio,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
<if test="resultEmptyHeavyWaterMeter != null">
|
|
|
- RESULT_EMPTY_HEAVY_WATER_METER = #{resultEmptyHeavyWaterMeter,jdbcType=DECIMAL},
|
|
|
+ RESULT_EMPTY_HEAVY_WATER_METER = #{resultEmptyHeavyWaterMeter,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
<if test="resultMoistureContent != null">
|
|
|
RESULT_MOISTURE_CONTENT = #{resultMoistureContent,jdbcType=DECIMAL},
|
|
@@ -429,20 +459,26 @@
|
|
|
<if test="deleted != null">
|
|
|
DELETED = #{deleted,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="waterUnitPrice != null">
|
|
|
+ WATER_UNIT_PRICE = #{waterUnitPrice,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="isNeedAssemble != null">
|
|
|
+ IS_NEED_ASSEMBLE = #{isNeedAssemble,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where RESULT_ID = #{resultId,jdbcType=DECIMAL}
|
|
|
</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 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 TMSSHIP_WATER_QUALITY_RESULT
|
|
@@ -454,20 +490,21 @@
|
|
|
DELETE_NAME, DELETE_TIME, INSERT_USERNAME,
|
|
|
INSERT_TIME, UPDATE_USERNAME,
|
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
|
- RESULT_ES_DELIVERY_DATE, DELETED
|
|
|
+ RESULT_ES_DELIVERY_DATE, DELETED,
|
|
|
+ WATER_UNIT_PRICE, IS_NEED_ASSEMBLE
|
|
|
)
|
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
|
select
|
|
|
#{item.resultId,jdbcType=DECIMAL},
|
|
|
#{item.totalResultId,jdbcType=DECIMAL}, #{item.resultPlannedDate,jdbcType=TIMESTAMP},
|
|
|
#{item.resultCargoRightsDate,jdbcType=TIMESTAMP}, #{item.resultShipmentRatio,jdbcType=DECIMAL},
|
|
|
- #{item.resultEmptyHeavyWaterMeter,jdbcType=DECIMAL}, #{item.resultMoistureContent,jdbcType=DECIMAL},
|
|
|
+ #{item.resultEmptyHeavyWaterMeter,jdbcType=VARCHAR}, #{item.resultMoistureContent,jdbcType=DECIMAL},
|
|
|
#{item.resultWaterTonnage,jdbcType=DECIMAL}, #{item.resultInspectionFees,jdbcType=DECIMAL},
|
|
|
- #{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.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
|
|
|
- #{item.resultEsDeliveryDate,jdbcType=TIMESTAMP}, #{item.deleted,jdbcType=DECIMAL}
|
|
|
+ #{item.resultEsDeliveryDate,jdbcType=TIMESTAMP}, #{item.deleted,jdbcType=DECIMAL},
|
|
|
+ #{item.waterUnitPrice,jdbcType=DECIMAL}, #{item.isNeedAssemble,jdbcType=VARCHAR}
|
|
|
from dual
|
|
|
</foreach> )
|
|
|
</insert>
|
|
@@ -475,86 +512,94 @@
|
|
|
update TMSSHIP_WATER_QUALITY_RESULT
|
|
|
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>
|
|
|
,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>
|
|
|
,RESULT_PLANNED_DATE=
|
|
|
- <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.resultPlannedDate,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
|
,RESULT_CARGO_RIGHTS_DATE=
|
|
|
- <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.resultCargoRightsDate,jdbcType=TIMESTAMP}
|
|
|
</foreach>
|
|
|
,RESULT_SHIPMENT_RATIO=
|
|
|
- <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.resultShipmentRatio,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,RESULT_EMPTY_HEAVY_WATER_METER=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case RESULT_ID" close="end">
|
|
|
- when #{item.resultId,jdbcType=DECIMAL} then #{item.resultEmptyHeavyWaterMeter,jdbcType=DECIMAL}
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.resultEmptyHeavyWaterMeter,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
|
,RESULT_MOISTURE_CONTENT=
|
|
|
- <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.resultMoistureContent,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,RESULT_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.resultWaterTonnage,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,RESULT_INSPECTION_FEES=
|
|
|
- <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.resultInspectionFees,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
,DELETE_NAME=
|
|
|
- <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.deleteName,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
|
,DELETE_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.deleteTime,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>
|
|
|
,RESULT_ES_DELIVERY_DATE=
|
|
|
- <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.resultEsDeliveryDate,jdbcType=TIMESTAMP}
|
|
|
</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>
|
|
|
+ ,WATER_UNIT_PRICE=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.waterUnitPrice,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,IS_NEED_ASSEMBLE=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case RESULT_ID" separator=" ">
|
|
|
+ when #{item.resultId,jdbcType=DECIMAL} then #{item.isNeedAssemble,jdbcType=VARCHAR}
|
|
|
+ </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 TMSSHIP_WATER_QUALITY_RESULT
|
|
|
where RESULT_ID in
|
|
|
- <foreach collection="list" item="id" open="(" close=")" separator=",">
|
|
|
+ <foreach close=")" collection="list" item="id" open="(" separator=",">
|
|
|
#{id}
|
|
|
</foreach>
|
|
|
</delete>
|
|
@@ -622,8 +667,8 @@
|
|
|
LEFT JOIN AMSSHIP_CARGO_TRANSFER_RESULT actr
|
|
|
ON actr.BATCH_ID=db.BATCH_ID
|
|
|
WHERE twqr.DELETED = 0 and tlsr.DELETED=0 and ada.DELETED=0 and
|
|
|
- adn.DELETED=0 and actr.DELETED=0 and osi.DELETED=0
|
|
|
- and oic.DELETED=0)
|
|
|
+ adn.DELETED=0 and actr.DELETED=0 and osi.DELETED=0
|
|
|
+ and oic.DELETED=0)
|
|
|
<where>
|
|
|
<if test="materialName != null">
|
|
|
and
|
|
@@ -762,18 +807,18 @@
|
|
|
<select id="getPurchaseContractMoisture" parameterType="DECIMAL" resultType="java.lang.String">
|
|
|
SELECT
|
|
|
ADN.PURCHASE_CONTRACT_MOISTURE AS "purchaseContractMoisture"
|
|
|
- FROM DIL_BATCH DB
|
|
|
- LEFT JOIN AMSSHIP_DELIVERY_NOTICE ADN
|
|
|
- ON DB.BATCH_ID=ADN.BATCH_ID
|
|
|
- WHERE DB.BATCH_ID=#{batchId}
|
|
|
+ FROM DIL_BATCH_INFACOTRY DBI
|
|
|
+ LEFT JOIN AMSSHIP_DELIVERY_NOTICE ADN
|
|
|
+ ON DBI.BATCH_INFACOTRY_ID=ADN.BATCH_ID
|
|
|
+ WHERE DBI.BATCH_INFACOTRY_ID=#{batchInfactoryId}
|
|
|
</select>
|
|
|
|
|
|
<select id="getResultActualInstallations" parameterType="DECIMAL" resultType="java.util.Map">
|
|
|
SELECT
|
|
|
TLSR.RESULT_ACTUAL_INSTALLATIONS AS "resultActualInstallations"
|
|
|
FROM DIL_BATCH DB
|
|
|
- LEFT JOIN TMSSHIP_LOAD_SHIP_RESULT TLSR
|
|
|
- ON DB.BATCH_ID=TLSR.BATCH_ID
|
|
|
+ LEFT JOIN TMSSHIP_LOAD_SHIP_RESULT TLSR
|
|
|
+ ON DB.BATCH_ID=TLSR.BATCH_ID
|
|
|
WHERE DB.BATCH_ID=#{batchId}
|
|
|
</select>
|
|
|
</mapper>
|