|
|
@@ -65,44 +65,77 @@
|
|
|
<result column="HEAT_NO" jdbcType="VARCHAR" property="heatNo" />
|
|
|
<result column="ID_NUM" jdbcType="VARCHAR" property="idNum" />
|
|
|
<result column="PREDICTION_SOURCE" jdbcType="VARCHAR" property="predictionSource" />
|
|
|
- <result column="METER_PIER_NAME" jdbcType="VARCHAR" property="meterPierName" />
|
|
|
- <result column="METER_PIER_NO" jdbcType="VARCHAR" property="meterPierNo" />
|
|
|
<result column="CREATE_DEPNAME" jdbcType="VARCHAR" property="createDepname" />
|
|
|
<result column="CREATE_DEPID" jdbcType="VARCHAR" property="createDepid" />
|
|
|
<result column="LINE_DESC" jdbcType="VARCHAR" property="lineDesc" />
|
|
|
- <result column="LINE_CODE" jdbcType="VARCHAR" property="lineCode" />
|
|
|
- <result column="SHIP_NO" jdbcType="VARCHAR" property="shipNo" />
|
|
|
+ <result column="VOUCHER_IDENTITY" jdbcType="VARCHAR" property="voucherIdentity" />
|
|
|
+ <result column="VOUCHER_ITEM" jdbcType="VARCHAR" property="voucherItem" />
|
|
|
+ <result column="BUSINESS_GROUP" jdbcType="VARCHAR" property="businessGroup" />
|
|
|
+ <result column="TEMP_CONVEYANCE" jdbcType="VARCHAR" property="tempConveyance" />
|
|
|
+ <result column="CONVEYANCE_TYPE" jdbcType="VARCHAR" property="conveyanceType" />
|
|
|
+ <result column="RESOURCE_SYSTEM" jdbcType="VARCHAR" property="resourceSystem" />
|
|
|
+ <result column="GROUP_PACKAGE_AMOUNT" jdbcType="DECIMAL" property="groupPackageAmount" />
|
|
|
+ <result column="GROUP_PACKAGE_UNIT" jdbcType="VARCHAR" property="groupPackageUnit" />
|
|
|
+ <result column="PACKAGE_AMOUNT" jdbcType="DECIMAL" property="packageAmount" />
|
|
|
+ <result column="PACKAGE_UNIT" jdbcType="VARCHAR" property="packageUnit" />
|
|
|
+ <result column="THEORY_AMOUNT" jdbcType="DECIMAL" property="theoryAmount" />
|
|
|
+ <result column="MEASURE_BATCH" jdbcType="VARCHAR" property="measureBatch" />
|
|
|
+ <result column="MEASURE_BATCH_COUNT" jdbcType="DECIMAL" property="measureBatchCount" />
|
|
|
+ <result column="SENDER_TYPE" jdbcType="VARCHAR" property="senderType" />
|
|
|
+ <result column="SENDER_REMARK" jdbcType="VARCHAR" property="senderRemark" />
|
|
|
+ <result column="RECEIVER_TYPE" jdbcType="VARCHAR" property="receiverType" />
|
|
|
+ <result column="RECEIVER_REMARK" jdbcType="VARCHAR" property="receiverRemark" />
|
|
|
+ <result column="TRUST_DEPARTMENT_NAME" jdbcType="VARCHAR" property="trustDepartmentName" />
|
|
|
+ <result column="TRUST_DEPARTMENT" jdbcType="VARCHAR" property="trustDepartment" />
|
|
|
+ <result column="TRUSTOR" jdbcType="VARCHAR" property="trustor" />
|
|
|
+ <result column="TRUST_DATE_TIME" jdbcType="TIMESTAMP" property="trustDateTime" />
|
|
|
+ <result column="TRUST_AVAILABILITY_TIME" jdbcType="TIMESTAMP" property="trustAvailabilityTime" />
|
|
|
+ <result column="TRUST_IP" jdbcType="VARCHAR" property="trustIp" />
|
|
|
+ <result column="STATION_TYPE" jdbcType="VARCHAR" property="stationType" />
|
|
|
+ <result column="MEASURE_STATION" jdbcType="VARCHAR" property="measureStation" />
|
|
|
+ <result column="MEASURE_STATION_NAME" jdbcType="VARCHAR" property="measureStationName" />
|
|
|
+ <result column="AMOUNT_UNIT" jdbcType="VARCHAR" property="amountUnit" />
|
|
|
+ <result column="TRUST_DAY" jdbcType="DECIMAL" property="trustDay" />
|
|
|
</resultMap>
|
|
|
<sql id="columns">
|
|
|
- PREDICTION_NO, NOTICE_NO, CAR_NO, TRAILER_NO, MATTER_NO, MATTER_NAME, CONTRACT_NO,
|
|
|
- BATCH_NO, CUSTOMER_SUPPLIER_NO, CUSTOMER_SUPPLIER_NAME, SOURCE_AREA, FORWARDING_UNIT_NO,
|
|
|
- FORWARDING_UNIT_NAME, RECEIVING_UINT_NO, RECEIVING_UINT_NAME, MATERIAL_NO, MATERIAL_NAME,
|
|
|
- SPEC_NO, SPEC_NAME, SHIPMENT_GROSS_WEIGHT, SHIPMENT_NET_WEIGHT, SHIPMENT_NUM, ADD_WEIGHT_SUM,
|
|
|
- BIND_CARD_NO, LOAD_POINT_NO, LOAD_POINT_NAME, SAMPLE_NO, SAMPLE_VOUCHER, CARRIER_UNIT_NO,
|
|
|
- CARRIER_UNIT_NAME, PREDICTION_TYPE, PREDICTION_COMBINATION, METER_TYPE_NO, METER_TYPE_NAME,
|
|
|
- USED_TYPE, EFFECTIVE_START_TIME, EFFECTIVE_END_TIME, EFFECTIVE_WEIGHT, EFFECTIVE_NUM,
|
|
|
- METER_WEIGHT, METER_NUM, RAILWAY_NO, METER_PROCESS_NO, METER_PROCESS_EDITION_NO,
|
|
|
- MEMO, VALUE_FLAG, USED_TIME, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO,
|
|
|
- UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME, P_VALUE_FLAG,
|
|
|
- CAR_ALLOCATION_TIME, IS_COMPLETED, LIMS_SAMPLING_FLAG, HEAT_NO, ID_NUM, PREDICTION_SOURCE,
|
|
|
- METER_PIER_NAME, METER_PIER_NO, CREATE_DEPNAME, CREATE_DEPID, LINE_DESC, LINE_CODE,
|
|
|
- SHIP_NO
|
|
|
+ PREDICTION_NO, NOTICE_NO, CAR_NO, TRAILER_NO, MATTER_NO, MATTER_NAME, CONTRACT_NO,
|
|
|
+ BATCH_NO, CUSTOMER_SUPPLIER_NO, CUSTOMER_SUPPLIER_NAME, SOURCE_AREA, FORWARDING_UNIT_NO,
|
|
|
+ FORWARDING_UNIT_NAME, RECEIVING_UINT_NO, RECEIVING_UINT_NAME, MATERIAL_NO, MATERIAL_NAME,
|
|
|
+ SPEC_NO, SPEC_NAME, SHIPMENT_GROSS_WEIGHT, SHIPMENT_NET_WEIGHT, SHIPMENT_NUM, ADD_WEIGHT_SUM,
|
|
|
+ BIND_CARD_NO, LOAD_POINT_NO, LOAD_POINT_NAME, SAMPLE_NO, SAMPLE_VOUCHER, CARRIER_UNIT_NO,
|
|
|
+ CARRIER_UNIT_NAME, PREDICTION_TYPE, PREDICTION_COMBINATION, METER_TYPE_NO, METER_TYPE_NAME,
|
|
|
+ USED_TYPE, EFFECTIVE_START_TIME, EFFECTIVE_END_TIME, EFFECTIVE_WEIGHT, EFFECTIVE_NUM,
|
|
|
+ METER_WEIGHT, METER_NUM, RAILWAY_NO, METER_PROCESS_NO, METER_PROCESS_EDITION_NO,
|
|
|
+ MEMO, VALUE_FLAG, USED_TIME, CREATE_MAN_NO, CREATE_MAN_NAME, CREATE_TIME, UPDATE_MAN_NO,
|
|
|
+ UPDATE_MAN_NAME, UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME, DELETE_TIME, P_VALUE_FLAG,
|
|
|
+ CAR_ALLOCATION_TIME, IS_COMPLETED, LIMS_SAMPLING_FLAG, HEAT_NO, ID_NUM, PREDICTION_SOURCE,
|
|
|
+ CREATE_DEPNAME, CREATE_DEPID, LINE_DESC, VOUCHER_IDENTITY, VOUCHER_ITEM, BUSINESS_GROUP,
|
|
|
+ TEMP_CONVEYANCE, CONVEYANCE_TYPE, RESOURCE_SYSTEM, GROUP_PACKAGE_AMOUNT, GROUP_PACKAGE_UNIT,
|
|
|
+ PACKAGE_AMOUNT, PACKAGE_UNIT, THEORY_AMOUNT, MEASURE_BATCH, MEASURE_BATCH_COUNT,
|
|
|
+ SENDER_TYPE, SENDER_REMARK, RECEIVER_TYPE, RECEIVER_REMARK, TRUST_DEPARTMENT_NAME,
|
|
|
+ TRUST_DEPARTMENT, TRUSTOR, TRUST_DATE_TIME, TRUST_AVAILABILITY_TIME, TRUST_IP, STATION_TYPE,
|
|
|
+ MEASURE_STATION, MEASURE_STATION_NAME, AMOUNT_UNIT, TRUST_DAY
|
|
|
</sql>
|
|
|
<sql id="columns_alias">
|
|
|
- t.PREDICTION_NO, t.NOTICE_NO, t.CAR_NO, t.TRAILER_NO, t.MATTER_NO, t.MATTER_NAME,
|
|
|
- t.CONTRACT_NO, t.BATCH_NO, t.CUSTOMER_SUPPLIER_NO, t.CUSTOMER_SUPPLIER_NAME, t.SOURCE_AREA,
|
|
|
- t.FORWARDING_UNIT_NO, t.FORWARDING_UNIT_NAME, t.RECEIVING_UINT_NO, t.RECEIVING_UINT_NAME,
|
|
|
- t.MATERIAL_NO, t.MATERIAL_NAME, t.SPEC_NO, t.SPEC_NAME, t.SHIPMENT_GROSS_WEIGHT,
|
|
|
- t.SHIPMENT_NET_WEIGHT, t.SHIPMENT_NUM, t.ADD_WEIGHT_SUM, t.BIND_CARD_NO, t.LOAD_POINT_NO,
|
|
|
- t.LOAD_POINT_NAME, t.SAMPLE_NO, t.SAMPLE_VOUCHER, t.CARRIER_UNIT_NO, t.CARRIER_UNIT_NAME,
|
|
|
- t.PREDICTION_TYPE, t.PREDICTION_COMBINATION, t.METER_TYPE_NO, t.METER_TYPE_NAME,
|
|
|
- t.USED_TYPE, t.EFFECTIVE_START_TIME, t.EFFECTIVE_END_TIME, t.EFFECTIVE_WEIGHT, t.EFFECTIVE_NUM,
|
|
|
- t.METER_WEIGHT, t.METER_NUM, t.RAILWAY_NO, t.METER_PROCESS_NO, t.METER_PROCESS_EDITION_NO,
|
|
|
- t.MEMO, t.VALUE_FLAG, t.USED_TIME, t.CREATE_MAN_NO, t.CREATE_MAN_NAME, t.CREATE_TIME,
|
|
|
- t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, t.UPDATE_TIME, t.DELETE_MAN_NO, t.DELETE_MAN_NAME,
|
|
|
- t.DELETE_TIME, t.P_VALUE_FLAG, t.CAR_ALLOCATION_TIME, t.IS_COMPLETED, t.LIMS_SAMPLING_FLAG,
|
|
|
- t.HEAT_NO, t.ID_NUM, t.PREDICTION_SOURCE, t.METER_PIER_NAME, t.METER_PIER_NO, t.CREATE_DEPNAME,
|
|
|
- t.CREATE_DEPID, t.LINE_DESC, t.LINE_CODE, t.SHIP_NO
|
|
|
+ t.PREDICTION_NO, t.NOTICE_NO, t.CAR_NO, t.TRAILER_NO, t.MATTER_NO, t.MATTER_NAME,
|
|
|
+ t.CONTRACT_NO, t.BATCH_NO, t.CUSTOMER_SUPPLIER_NO, t.CUSTOMER_SUPPLIER_NAME, t.SOURCE_AREA,
|
|
|
+ t.FORWARDING_UNIT_NO, t.FORWARDING_UNIT_NAME, t.RECEIVING_UINT_NO, t.RECEIVING_UINT_NAME,
|
|
|
+ t.MATERIAL_NO, t.MATERIAL_NAME, t.SPEC_NO, t.SPEC_NAME, t.SHIPMENT_GROSS_WEIGHT,
|
|
|
+ t.SHIPMENT_NET_WEIGHT, t.SHIPMENT_NUM, t.ADD_WEIGHT_SUM, t.BIND_CARD_NO, t.LOAD_POINT_NO,
|
|
|
+ t.LOAD_POINT_NAME, t.SAMPLE_NO, t.SAMPLE_VOUCHER, t.CARRIER_UNIT_NO, t.CARRIER_UNIT_NAME,
|
|
|
+ t.PREDICTION_TYPE, t.PREDICTION_COMBINATION, t.METER_TYPE_NO, t.METER_TYPE_NAME,
|
|
|
+ t.USED_TYPE, t.EFFECTIVE_START_TIME, t.EFFECTIVE_END_TIME, t.EFFECTIVE_WEIGHT, t.EFFECTIVE_NUM,
|
|
|
+ t.METER_WEIGHT, t.METER_NUM, t.RAILWAY_NO, t.METER_PROCESS_NO, t.METER_PROCESS_EDITION_NO,
|
|
|
+ t.MEMO, t.VALUE_FLAG, t.USED_TIME, t.CREATE_MAN_NO, t.CREATE_MAN_NAME, t.CREATE_TIME,
|
|
|
+ t.UPDATE_MAN_NO, t.UPDATE_MAN_NAME, t.UPDATE_TIME, t.DELETE_MAN_NO, t.DELETE_MAN_NAME,
|
|
|
+ t.DELETE_TIME, t.P_VALUE_FLAG, t.CAR_ALLOCATION_TIME, t.IS_COMPLETED, t.LIMS_SAMPLING_FLAG,
|
|
|
+ t.HEAT_NO, t.ID_NUM, t.PREDICTION_SOURCE, t.CREATE_DEPNAME, t.CREATE_DEPID, t.LINE_DESC,
|
|
|
+ t.VOUCHER_IDENTITY, t.VOUCHER_ITEM, t.BUSINESS_GROUP, t.TEMP_CONVEYANCE, t.CONVEYANCE_TYPE,
|
|
|
+ t.RESOURCE_SYSTEM, t.GROUP_PACKAGE_AMOUNT, t.GROUP_PACKAGE_UNIT, t.PACKAGE_AMOUNT,
|
|
|
+ t.PACKAGE_UNIT, t.THEORY_AMOUNT, t.MEASURE_BATCH, t.MEASURE_BATCH_COUNT, t.SENDER_TYPE,
|
|
|
+ t.SENDER_REMARK, t.RECEIVER_TYPE, t.RECEIVER_REMARK, t.TRUST_DEPARTMENT_NAME, t.TRUST_DEPARTMENT,
|
|
|
+ t.TRUSTOR, t.TRUST_DATE_TIME, t.TRUST_AVAILABILITY_TIME, t.TRUST_IP, t.STATION_TYPE,
|
|
|
+ t.MEASURE_STATION, t.MEASURE_STATION_NAME, t.AMOUNT_UNIT, t.TRUST_DAY
|
|
|
</sql>
|
|
|
<sql id="select">
|
|
|
SELECT <include refid="columns"/> FROM PRE_TRACK_SCALE
|
|
|
@@ -301,12 +334,6 @@
|
|
|
<if test="predictionSource != null and predictionSource != ''">
|
|
|
and PREDICTION_SOURCE = #{predictionSource}
|
|
|
</if>
|
|
|
- <if test="meterPierName != null and meterPierName != ''">
|
|
|
- and METER_PIER_NAME = #{meterPierName}
|
|
|
- </if>
|
|
|
- <if test="meterPierNo != null and meterPierNo != ''">
|
|
|
- and METER_PIER_NO = #{meterPierNo}
|
|
|
- </if>
|
|
|
<if test="createDepname != null and createDepname != ''">
|
|
|
and CREATE_DEPNAME = #{createDepname}
|
|
|
</if>
|
|
|
@@ -316,11 +343,89 @@
|
|
|
<if test="lineDesc != null and lineDesc != ''">
|
|
|
and LINE_DESC = #{lineDesc}
|
|
|
</if>
|
|
|
- <if test="lineCode != null and lineCode != ''">
|
|
|
- and LINE_CODE = #{lineCode}
|
|
|
+ <if test="voucherIdentity != null and voucherIdentity != ''">
|
|
|
+ and VOUCHER_IDENTITY = #{voucherIdentity}
|
|
|
+ </if>
|
|
|
+ <if test="voucherItem != null and voucherItem != ''">
|
|
|
+ and VOUCHER_ITEM = #{voucherItem}
|
|
|
+ </if>
|
|
|
+ <if test="businessGroup != null and businessGroup != ''">
|
|
|
+ and BUSINESS_GROUP = #{businessGroup}
|
|
|
+ </if>
|
|
|
+ <if test="tempConveyance != null and tempConveyance != ''">
|
|
|
+ and TEMP_CONVEYANCE = #{tempConveyance}
|
|
|
+ </if>
|
|
|
+ <if test="conveyanceType != null and conveyanceType != ''">
|
|
|
+ and CONVEYANCE_TYPE = #{conveyanceType}
|
|
|
+ </if>
|
|
|
+ <if test="resourceSystem != null and resourceSystem != ''">
|
|
|
+ and RESOURCE_SYSTEM = #{resourceSystem}
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageAmount != null">
|
|
|
+ and GROUP_PACKAGE_AMOUNT = #{groupPackageAmount}
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageUnit != null and groupPackageUnit != ''">
|
|
|
+ and GROUP_PACKAGE_UNIT = #{groupPackageUnit}
|
|
|
+ </if>
|
|
|
+ <if test="packageAmount != null">
|
|
|
+ and PACKAGE_AMOUNT = #{packageAmount}
|
|
|
+ </if>
|
|
|
+ <if test="packageUnit != null and packageUnit != ''">
|
|
|
+ and PACKAGE_UNIT = #{packageUnit}
|
|
|
+ </if>
|
|
|
+ <if test="theoryAmount != null">
|
|
|
+ and THEORY_AMOUNT = #{theoryAmount}
|
|
|
+ </if>
|
|
|
+ <if test="measureBatch != null and measureBatch != ''">
|
|
|
+ and MEASURE_BATCH = #{measureBatch}
|
|
|
+ </if>
|
|
|
+ <if test="measureBatchCount != null">
|
|
|
+ and MEASURE_BATCH_COUNT = #{measureBatchCount}
|
|
|
+ </if>
|
|
|
+ <if test="senderType != null and senderType != ''">
|
|
|
+ and SENDER_TYPE = #{senderType}
|
|
|
+ </if>
|
|
|
+ <if test="senderRemark != null and senderRemark != ''">
|
|
|
+ and SENDER_REMARK = #{senderRemark}
|
|
|
+ </if>
|
|
|
+ <if test="receiverType != null and receiverType != ''">
|
|
|
+ and RECEIVER_TYPE = #{receiverType}
|
|
|
+ </if>
|
|
|
+ <if test="receiverRemark != null and receiverRemark != ''">
|
|
|
+ and RECEIVER_REMARK = #{receiverRemark}
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartmentName != null and trustDepartmentName != ''">
|
|
|
+ and TRUST_DEPARTMENT_NAME = #{trustDepartmentName}
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartment != null and trustDepartment != ''">
|
|
|
+ and TRUST_DEPARTMENT = #{trustDepartment}
|
|
|
+ </if>
|
|
|
+ <if test="trustor != null and trustor != ''">
|
|
|
+ and TRUSTOR = #{trustor}
|
|
|
+ </if>
|
|
|
+ <if test="trustDateTime != null">
|
|
|
+ and TO_CHAR(TRUST_DATE_TIME,'yyyy-MM-dd') = #{trustDateTime}
|
|
|
+ </if>
|
|
|
+ <if test="trustAvailabilityTime != null">
|
|
|
+ and TO_CHAR(TRUST_AVAILABILITY_TIME,'yyyy-MM-dd') = #{trustAvailabilityTime}
|
|
|
+ </if>
|
|
|
+ <if test="trustIp != null and trustIp != ''">
|
|
|
+ and TRUST_IP = #{trustIp}
|
|
|
+ </if>
|
|
|
+ <if test="stationType != null and stationType != ''">
|
|
|
+ and STATION_TYPE = #{stationType}
|
|
|
+ </if>
|
|
|
+ <if test="measureStation != null and measureStation != ''">
|
|
|
+ and MEASURE_STATION = #{measureStation}
|
|
|
+ </if>
|
|
|
+ <if test="measureStationName != null and measureStationName != ''">
|
|
|
+ and MEASURE_STATION_NAME = #{measureStationName}
|
|
|
+ </if>
|
|
|
+ <if test="amountUnit != null and amountUnit != ''">
|
|
|
+ and AMOUNT_UNIT = #{amountUnit}
|
|
|
</if>
|
|
|
- <if test="shipNo != null and shipNo != ''">
|
|
|
- and SHIP_NO = #{shipNo}
|
|
|
+ <if test="trustDay != null">
|
|
|
+ and TRUST_DAY = #{trustDay}
|
|
|
</if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
@@ -515,12 +620,6 @@
|
|
|
<if test="predictionSource != null and predictionSource != ''">
|
|
|
and PREDICTION_SOURCE LIKE '%${predictionSource}%'
|
|
|
</if>
|
|
|
- <if test="meterPierName != null and meterPierName != ''">
|
|
|
- and METER_PIER_NAME LIKE '%${meterPierName}%'
|
|
|
- </if>
|
|
|
- <if test="meterPierNo != null and meterPierNo != ''">
|
|
|
- and METER_PIER_NO LIKE '%${meterPierNo}%'
|
|
|
- </if>
|
|
|
<if test="createDepname != null and createDepname != ''">
|
|
|
and CREATE_DEPNAME LIKE '%${createDepname}%'
|
|
|
</if>
|
|
|
@@ -530,11 +629,89 @@
|
|
|
<if test="lineDesc != null and lineDesc != ''">
|
|
|
and LINE_DESC LIKE '%${lineDesc}%'
|
|
|
</if>
|
|
|
- <if test="lineCode != null and lineCode != ''">
|
|
|
- and LINE_CODE LIKE '%${lineCode}%'
|
|
|
+ <if test="voucherIdentity != null and voucherIdentity != ''">
|
|
|
+ and VOUCHER_IDENTITY LIKE '%${voucherIdentity}%'
|
|
|
+ </if>
|
|
|
+ <if test="voucherItem != null and voucherItem != ''">
|
|
|
+ and VOUCHER_ITEM LIKE '%${voucherItem}%'
|
|
|
+ </if>
|
|
|
+ <if test="businessGroup != null and businessGroup != ''">
|
|
|
+ and BUSINESS_GROUP LIKE '%${businessGroup}%'
|
|
|
+ </if>
|
|
|
+ <if test="tempConveyance != null and tempConveyance != ''">
|
|
|
+ and TEMP_CONVEYANCE LIKE '%${tempConveyance}%'
|
|
|
+ </if>
|
|
|
+ <if test="conveyanceType != null and conveyanceType != ''">
|
|
|
+ and CONVEYANCE_TYPE LIKE '%${conveyanceType}%'
|
|
|
+ </if>
|
|
|
+ <if test="resourceSystem != null and resourceSystem != ''">
|
|
|
+ and RESOURCE_SYSTEM LIKE '%${resourceSystem}%'
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageAmount != null">
|
|
|
+ and GROUP_PACKAGE_AMOUNT = #{groupPackageAmount}
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageUnit != null and groupPackageUnit != ''">
|
|
|
+ and GROUP_PACKAGE_UNIT LIKE '%${groupPackageUnit}%'
|
|
|
+ </if>
|
|
|
+ <if test="packageAmount != null">
|
|
|
+ and PACKAGE_AMOUNT = #{packageAmount}
|
|
|
+ </if>
|
|
|
+ <if test="packageUnit != null and packageUnit != ''">
|
|
|
+ and PACKAGE_UNIT LIKE '%${packageUnit}%'
|
|
|
+ </if>
|
|
|
+ <if test="theoryAmount != null">
|
|
|
+ and THEORY_AMOUNT = #{theoryAmount}
|
|
|
+ </if>
|
|
|
+ <if test="measureBatch != null and measureBatch != ''">
|
|
|
+ and MEASURE_BATCH LIKE '%${measureBatch}%'
|
|
|
+ </if>
|
|
|
+ <if test="measureBatchCount != null">
|
|
|
+ and MEASURE_BATCH_COUNT = #{measureBatchCount}
|
|
|
+ </if>
|
|
|
+ <if test="senderType != null and senderType != ''">
|
|
|
+ and SENDER_TYPE LIKE '%${senderType}%'
|
|
|
+ </if>
|
|
|
+ <if test="senderRemark != null and senderRemark != ''">
|
|
|
+ and SENDER_REMARK LIKE '%${senderRemark}%'
|
|
|
+ </if>
|
|
|
+ <if test="receiverType != null and receiverType != ''">
|
|
|
+ and RECEIVER_TYPE LIKE '%${receiverType}%'
|
|
|
+ </if>
|
|
|
+ <if test="receiverRemark != null and receiverRemark != ''">
|
|
|
+ and RECEIVER_REMARK LIKE '%${receiverRemark}%'
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartmentName != null and trustDepartmentName != ''">
|
|
|
+ and TRUST_DEPARTMENT_NAME LIKE '%${trustDepartmentName}%'
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartment != null and trustDepartment != ''">
|
|
|
+ and TRUST_DEPARTMENT LIKE '%${trustDepartment}%'
|
|
|
+ </if>
|
|
|
+ <if test="trustor != null and trustor != ''">
|
|
|
+ and TRUSTOR LIKE '%${trustor}%'
|
|
|
+ </if>
|
|
|
+ <if test="trustDateTime != null">
|
|
|
+ and TO_CHAR(TRUST_DATE_TIME,'yyyy-MM-dd') = #{trustDateTime}
|
|
|
+ </if>
|
|
|
+ <if test="trustAvailabilityTime != null">
|
|
|
+ and TO_CHAR(TRUST_AVAILABILITY_TIME,'yyyy-MM-dd') = #{trustAvailabilityTime}
|
|
|
+ </if>
|
|
|
+ <if test="trustIp != null and trustIp != ''">
|
|
|
+ and TRUST_IP LIKE '%${trustIp}%'
|
|
|
+ </if>
|
|
|
+ <if test="stationType != null and stationType != ''">
|
|
|
+ and STATION_TYPE LIKE '%${stationType}%'
|
|
|
+ </if>
|
|
|
+ <if test="measureStation != null and measureStation != ''">
|
|
|
+ and MEASURE_STATION LIKE '%${measureStation}%'
|
|
|
+ </if>
|
|
|
+ <if test="measureStationName != null and measureStationName != ''">
|
|
|
+ and MEASURE_STATION_NAME LIKE '%${measureStationName}%'
|
|
|
+ </if>
|
|
|
+ <if test="amountUnit != null and amountUnit != ''">
|
|
|
+ and AMOUNT_UNIT LIKE '%${amountUnit}%'
|
|
|
</if>
|
|
|
- <if test="shipNo != null and shipNo != ''">
|
|
|
- and SHIP_NO LIKE '%${shipNo}%'
|
|
|
+ <if test="trustDay != null">
|
|
|
+ and TRUST_DAY = #{trustDay}
|
|
|
</if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
@@ -731,12 +908,6 @@
|
|
|
<if test="predictionSource != null and predictionSource != ''">
|
|
|
or PREDICTION_SOURCE = #{predictionSource}
|
|
|
</if>
|
|
|
- <if test="meterPierName != null and meterPierName != ''">
|
|
|
- or METER_PIER_NAME = #{meterPierName}
|
|
|
- </if>
|
|
|
- <if test="meterPierNo != null and meterPierNo != ''">
|
|
|
- or METER_PIER_NO = #{meterPierNo}
|
|
|
- </if>
|
|
|
<if test="createDepname != null and createDepname != ''">
|
|
|
or CREATE_DEPNAME = #{createDepname}
|
|
|
</if>
|
|
|
@@ -746,11 +917,89 @@
|
|
|
<if test="lineDesc != null and lineDesc != ''">
|
|
|
or LINE_DESC = #{lineDesc}
|
|
|
</if>
|
|
|
- <if test="lineCode != null and lineCode != ''">
|
|
|
- or LINE_CODE = #{lineCode}
|
|
|
+ <if test="voucherIdentity != null and voucherIdentity != ''">
|
|
|
+ or VOUCHER_IDENTITY = #{voucherIdentity}
|
|
|
+ </if>
|
|
|
+ <if test="voucherItem != null and voucherItem != ''">
|
|
|
+ or VOUCHER_ITEM = #{voucherItem}
|
|
|
+ </if>
|
|
|
+ <if test="businessGroup != null and businessGroup != ''">
|
|
|
+ or BUSINESS_GROUP = #{businessGroup}
|
|
|
+ </if>
|
|
|
+ <if test="tempConveyance != null and tempConveyance != ''">
|
|
|
+ or TEMP_CONVEYANCE = #{tempConveyance}
|
|
|
+ </if>
|
|
|
+ <if test="conveyanceType != null and conveyanceType != ''">
|
|
|
+ or CONVEYANCE_TYPE = #{conveyanceType}
|
|
|
+ </if>
|
|
|
+ <if test="resourceSystem != null and resourceSystem != ''">
|
|
|
+ or RESOURCE_SYSTEM = #{resourceSystem}
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageAmount != null">
|
|
|
+ or GROUP_PACKAGE_AMOUNT = #{groupPackageAmount}
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageUnit != null and groupPackageUnit != ''">
|
|
|
+ or GROUP_PACKAGE_UNIT = #{groupPackageUnit}
|
|
|
+ </if>
|
|
|
+ <if test="packageAmount != null">
|
|
|
+ or PACKAGE_AMOUNT = #{packageAmount}
|
|
|
+ </if>
|
|
|
+ <if test="packageUnit != null and packageUnit != ''">
|
|
|
+ or PACKAGE_UNIT = #{packageUnit}
|
|
|
+ </if>
|
|
|
+ <if test="theoryAmount != null">
|
|
|
+ or THEORY_AMOUNT = #{theoryAmount}
|
|
|
+ </if>
|
|
|
+ <if test="measureBatch != null and measureBatch != ''">
|
|
|
+ or MEASURE_BATCH = #{measureBatch}
|
|
|
+ </if>
|
|
|
+ <if test="measureBatchCount != null">
|
|
|
+ or MEASURE_BATCH_COUNT = #{measureBatchCount}
|
|
|
+ </if>
|
|
|
+ <if test="senderType != null and senderType != ''">
|
|
|
+ or SENDER_TYPE = #{senderType}
|
|
|
+ </if>
|
|
|
+ <if test="senderRemark != null and senderRemark != ''">
|
|
|
+ or SENDER_REMARK = #{senderRemark}
|
|
|
+ </if>
|
|
|
+ <if test="receiverType != null and receiverType != ''">
|
|
|
+ or RECEIVER_TYPE = #{receiverType}
|
|
|
+ </if>
|
|
|
+ <if test="receiverRemark != null and receiverRemark != ''">
|
|
|
+ or RECEIVER_REMARK = #{receiverRemark}
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartmentName != null and trustDepartmentName != ''">
|
|
|
+ or TRUST_DEPARTMENT_NAME = #{trustDepartmentName}
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartment != null and trustDepartment != ''">
|
|
|
+ or TRUST_DEPARTMENT = #{trustDepartment}
|
|
|
+ </if>
|
|
|
+ <if test="trustor != null and trustor != ''">
|
|
|
+ or TRUSTOR = #{trustor}
|
|
|
+ </if>
|
|
|
+ <if test="trustDateTime != null">
|
|
|
+ or TO_CHAR(TRUST_DATE_TIME,'yyyy-MM-dd') = '#{trustDateTime}'
|
|
|
+ </if>
|
|
|
+ <if test="trustAvailabilityTime != null">
|
|
|
+ or TO_CHAR(TRUST_AVAILABILITY_TIME,'yyyy-MM-dd') = '#{trustAvailabilityTime}'
|
|
|
+ </if>
|
|
|
+ <if test="trustIp != null and trustIp != ''">
|
|
|
+ or TRUST_IP = #{trustIp}
|
|
|
+ </if>
|
|
|
+ <if test="stationType != null and stationType != ''">
|
|
|
+ or STATION_TYPE = #{stationType}
|
|
|
+ </if>
|
|
|
+ <if test="measureStation != null and measureStation != ''">
|
|
|
+ or MEASURE_STATION = #{measureStation}
|
|
|
+ </if>
|
|
|
+ <if test="measureStationName != null and measureStationName != ''">
|
|
|
+ or MEASURE_STATION_NAME = #{measureStationName}
|
|
|
+ </if>
|
|
|
+ <if test="amountUnit != null and amountUnit != ''">
|
|
|
+ or AMOUNT_UNIT = #{amountUnit}
|
|
|
</if>
|
|
|
- <if test="shipNo != null and shipNo != ''">
|
|
|
- or SHIP_NO = #{shipNo}
|
|
|
+ <if test="trustDay != null">
|
|
|
+ or TRUST_DAY = #{trustDay}
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.steerinfo.pretrack.pretrackscale.model.PreTrackScale">
|
|
|
@@ -775,9 +1024,17 @@
|
|
|
UPDATE_TIME, DELETE_MAN_NO, DELETE_MAN_NAME,
|
|
|
DELETE_TIME, P_VALUE_FLAG, CAR_ALLOCATION_TIME,
|
|
|
IS_COMPLETED, LIMS_SAMPLING_FLAG, HEAT_NO,
|
|
|
- ID_NUM, PREDICTION_SOURCE, METER_PIER_NAME,
|
|
|
- METER_PIER_NO, CREATE_DEPNAME, CREATE_DEPID,
|
|
|
- LINE_DESC, LINE_CODE, SHIP_NO
|
|
|
+ ID_NUM, PREDICTION_SOURCE, CREATE_DEPNAME,
|
|
|
+ CREATE_DEPID, LINE_DESC, VOUCHER_IDENTITY,
|
|
|
+ VOUCHER_ITEM, BUSINESS_GROUP, TEMP_CONVEYANCE,
|
|
|
+ CONVEYANCE_TYPE, RESOURCE_SYSTEM, GROUP_PACKAGE_AMOUNT,
|
|
|
+ GROUP_PACKAGE_UNIT, PACKAGE_AMOUNT, PACKAGE_UNIT,
|
|
|
+ THEORY_AMOUNT, MEASURE_BATCH, MEASURE_BATCH_COUNT,
|
|
|
+ SENDER_TYPE, SENDER_REMARK, RECEIVER_TYPE,
|
|
|
+ RECEIVER_REMARK, TRUST_DEPARTMENT_NAME, TRUST_DEPARTMENT,
|
|
|
+ TRUSTOR, TRUST_DATE_TIME, TRUST_AVAILABILITY_TIME,
|
|
|
+ TRUST_IP, STATION_TYPE, MEASURE_STATION,
|
|
|
+ MEASURE_STATION_NAME, AMOUNT_UNIT, TRUST_DAY
|
|
|
)
|
|
|
values (#{predictionNo,jdbcType=VARCHAR}, #{noticeNo,jdbcType=VARCHAR}, #{carNo,jdbcType=VARCHAR},
|
|
|
#{trailerNo,jdbcType=VARCHAR}, #{matterNo,jdbcType=VARCHAR}, #{matterName,jdbcType=VARCHAR},
|
|
|
@@ -800,9 +1057,17 @@
|
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{deleteManNo,jdbcType=VARCHAR}, #{deleteManName,jdbcType=VARCHAR},
|
|
|
#{deleteTime,jdbcType=TIMESTAMP}, #{pValueFlag,jdbcType=VARCHAR}, #{carAllocationTime,jdbcType=TIMESTAMP},
|
|
|
#{isCompleted,jdbcType=VARCHAR}, #{limsSamplingFlag,jdbcType=VARCHAR}, #{heatNo,jdbcType=VARCHAR},
|
|
|
- #{idNum,jdbcType=VARCHAR}, #{predictionSource,jdbcType=VARCHAR}, #{meterPierName,jdbcType=VARCHAR},
|
|
|
- #{meterPierNo,jdbcType=VARCHAR}, #{createDepname,jdbcType=VARCHAR}, #{createDepid,jdbcType=VARCHAR},
|
|
|
- #{lineDesc,jdbcType=VARCHAR}, #{lineCode,jdbcType=VARCHAR}, #{shipNo,jdbcType=VARCHAR}
|
|
|
+ #{idNum,jdbcType=VARCHAR}, #{predictionSource,jdbcType=VARCHAR}, #{createDepname,jdbcType=VARCHAR},
|
|
|
+ #{createDepid,jdbcType=VARCHAR}, #{lineDesc,jdbcType=VARCHAR}, #{voucherIdentity,jdbcType=VARCHAR},
|
|
|
+ #{voucherItem,jdbcType=VARCHAR}, #{businessGroup,jdbcType=VARCHAR}, #{tempConveyance,jdbcType=VARCHAR},
|
|
|
+ #{conveyanceType,jdbcType=VARCHAR}, #{resourceSystem,jdbcType=VARCHAR}, #{groupPackageAmount,jdbcType=DECIMAL},
|
|
|
+ #{groupPackageUnit,jdbcType=VARCHAR}, #{packageAmount,jdbcType=DECIMAL}, #{packageUnit,jdbcType=VARCHAR},
|
|
|
+ #{theoryAmount,jdbcType=DECIMAL}, #{measureBatch,jdbcType=VARCHAR}, #{measureBatchCount,jdbcType=DECIMAL},
|
|
|
+ #{senderType,jdbcType=VARCHAR}, #{senderRemark,jdbcType=VARCHAR}, #{receiverType,jdbcType=VARCHAR},
|
|
|
+ #{receiverRemark,jdbcType=VARCHAR}, #{trustDepartmentName,jdbcType=VARCHAR}, #{trustDepartment,jdbcType=VARCHAR},
|
|
|
+ #{trustor,jdbcType=VARCHAR}, #{trustDateTime,jdbcType=TIMESTAMP}, #{trustAvailabilityTime,jdbcType=TIMESTAMP},
|
|
|
+ #{trustIp,jdbcType=VARCHAR}, #{stationType,jdbcType=VARCHAR}, #{measureStation,jdbcType=VARCHAR},
|
|
|
+ #{measureStationName,jdbcType=VARCHAR}, #{amountUnit,jdbcType=VARCHAR}, #{trustDay,jdbcType=DECIMAL}
|
|
|
)
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.steerinfo.pretrack.pretrackscale.model.PreTrackScale">
|
|
|
@@ -997,12 +1262,6 @@
|
|
|
<if test="predictionSource != null">
|
|
|
PREDICTION_SOURCE,
|
|
|
</if>
|
|
|
- <if test="meterPierName != null">
|
|
|
- METER_PIER_NAME,
|
|
|
- </if>
|
|
|
- <if test="meterPierNo != null">
|
|
|
- METER_PIER_NO,
|
|
|
- </if>
|
|
|
<if test="createDepname != null">
|
|
|
CREATE_DEPNAME,
|
|
|
</if>
|
|
|
@@ -1012,11 +1271,89 @@
|
|
|
<if test="lineDesc != null">
|
|
|
LINE_DESC,
|
|
|
</if>
|
|
|
- <if test="lineCode != null">
|
|
|
- LINE_CODE,
|
|
|
+ <if test="voucherIdentity != null">
|
|
|
+ VOUCHER_IDENTITY,
|
|
|
+ </if>
|
|
|
+ <if test="voucherItem != null">
|
|
|
+ VOUCHER_ITEM,
|
|
|
+ </if>
|
|
|
+ <if test="businessGroup != null">
|
|
|
+ BUSINESS_GROUP,
|
|
|
+ </if>
|
|
|
+ <if test="tempConveyance != null">
|
|
|
+ TEMP_CONVEYANCE,
|
|
|
+ </if>
|
|
|
+ <if test="conveyanceType != null">
|
|
|
+ CONVEYANCE_TYPE,
|
|
|
+ </if>
|
|
|
+ <if test="resourceSystem != null">
|
|
|
+ RESOURCE_SYSTEM,
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageAmount != null">
|
|
|
+ GROUP_PACKAGE_AMOUNT,
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageUnit != null">
|
|
|
+ GROUP_PACKAGE_UNIT,
|
|
|
+ </if>
|
|
|
+ <if test="packageAmount != null">
|
|
|
+ PACKAGE_AMOUNT,
|
|
|
+ </if>
|
|
|
+ <if test="packageUnit != null">
|
|
|
+ PACKAGE_UNIT,
|
|
|
+ </if>
|
|
|
+ <if test="theoryAmount != null">
|
|
|
+ THEORY_AMOUNT,
|
|
|
+ </if>
|
|
|
+ <if test="measureBatch != null">
|
|
|
+ MEASURE_BATCH,
|
|
|
+ </if>
|
|
|
+ <if test="measureBatchCount != null">
|
|
|
+ MEASURE_BATCH_COUNT,
|
|
|
+ </if>
|
|
|
+ <if test="senderType != null">
|
|
|
+ SENDER_TYPE,
|
|
|
+ </if>
|
|
|
+ <if test="senderRemark != null">
|
|
|
+ SENDER_REMARK,
|
|
|
+ </if>
|
|
|
+ <if test="receiverType != null">
|
|
|
+ RECEIVER_TYPE,
|
|
|
+ </if>
|
|
|
+ <if test="receiverRemark != null">
|
|
|
+ RECEIVER_REMARK,
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartmentName != null">
|
|
|
+ TRUST_DEPARTMENT_NAME,
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartment != null">
|
|
|
+ TRUST_DEPARTMENT,
|
|
|
+ </if>
|
|
|
+ <if test="trustor != null">
|
|
|
+ TRUSTOR,
|
|
|
+ </if>
|
|
|
+ <if test="trustDateTime != null">
|
|
|
+ TRUST_DATE_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="trustAvailabilityTime != null">
|
|
|
+ TRUST_AVAILABILITY_TIME,
|
|
|
+ </if>
|
|
|
+ <if test="trustIp != null">
|
|
|
+ TRUST_IP,
|
|
|
+ </if>
|
|
|
+ <if test="stationType != null">
|
|
|
+ STATION_TYPE,
|
|
|
+ </if>
|
|
|
+ <if test="measureStation != null">
|
|
|
+ MEASURE_STATION,
|
|
|
+ </if>
|
|
|
+ <if test="measureStationName != null">
|
|
|
+ MEASURE_STATION_NAME,
|
|
|
+ </if>
|
|
|
+ <if test="amountUnit != null">
|
|
|
+ AMOUNT_UNIT,
|
|
|
</if>
|
|
|
- <if test="shipNo != null">
|
|
|
- SHIP_NO,
|
|
|
+ <if test="trustDay != null">
|
|
|
+ TRUST_DAY,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
@@ -1209,12 +1546,6 @@
|
|
|
<if test="predictionSource != null">
|
|
|
#{predictionSource,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="meterPierName != null">
|
|
|
- #{meterPierName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="meterPierNo != null">
|
|
|
- #{meterPierNo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="createDepname != null">
|
|
|
#{createDepname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -1224,11 +1555,89 @@
|
|
|
<if test="lineDesc != null">
|
|
|
#{lineDesc,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="lineCode != null">
|
|
|
- #{lineCode,jdbcType=VARCHAR},
|
|
|
+ <if test="voucherIdentity != null">
|
|
|
+ #{voucherIdentity,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="voucherItem != null">
|
|
|
+ #{voucherItem,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="businessGroup != null">
|
|
|
+ #{businessGroup,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="tempConveyance != null">
|
|
|
+ #{tempConveyance,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="conveyanceType != null">
|
|
|
+ #{conveyanceType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="resourceSystem != null">
|
|
|
+ #{resourceSystem,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageAmount != null">
|
|
|
+ #{groupPackageAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageUnit != null">
|
|
|
+ #{groupPackageUnit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="packageAmount != null">
|
|
|
+ #{packageAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="packageUnit != null">
|
|
|
+ #{packageUnit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="theoryAmount != null">
|
|
|
+ #{theoryAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="measureBatch != null">
|
|
|
+ #{measureBatch,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="measureBatchCount != null">
|
|
|
+ #{measureBatchCount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="senderType != null">
|
|
|
+ #{senderType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="senderRemark != null">
|
|
|
+ #{senderRemark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="receiverType != null">
|
|
|
+ #{receiverType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="receiverRemark != null">
|
|
|
+ #{receiverRemark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartmentName != null">
|
|
|
+ #{trustDepartmentName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartment != null">
|
|
|
+ #{trustDepartment,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="trustor != null">
|
|
|
+ #{trustor,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="trustDateTime != null">
|
|
|
+ #{trustDateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="trustAvailabilityTime != null">
|
|
|
+ #{trustAvailabilityTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="trustIp != null">
|
|
|
+ #{trustIp,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="stationType != null">
|
|
|
+ #{stationType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="measureStation != null">
|
|
|
+ #{measureStation,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="measureStationName != null">
|
|
|
+ #{measureStationName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="amountUnit != null">
|
|
|
+ #{amountUnit,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="shipNo != null">
|
|
|
- #{shipNo,jdbcType=VARCHAR},
|
|
|
+ <if test="trustDay != null">
|
|
|
+ #{trustDay,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
@@ -1296,13 +1705,37 @@
|
|
|
HEAT_NO = #{heatNo,jdbcType=VARCHAR},
|
|
|
ID_NUM = #{idNum,jdbcType=VARCHAR},
|
|
|
PREDICTION_SOURCE = #{predictionSource,jdbcType=VARCHAR},
|
|
|
- METER_PIER_NAME = #{meterPierName,jdbcType=VARCHAR},
|
|
|
- METER_PIER_NO = #{meterPierNo,jdbcType=VARCHAR},
|
|
|
CREATE_DEPNAME = #{createDepname,jdbcType=VARCHAR},
|
|
|
CREATE_DEPID = #{createDepid,jdbcType=VARCHAR},
|
|
|
LINE_DESC = #{lineDesc,jdbcType=VARCHAR},
|
|
|
- LINE_CODE = #{lineCode,jdbcType=VARCHAR},
|
|
|
- SHIP_NO = #{shipNo,jdbcType=VARCHAR}
|
|
|
+ VOUCHER_IDENTITY = #{voucherIdentity,jdbcType=VARCHAR},
|
|
|
+ VOUCHER_ITEM = #{voucherItem,jdbcType=VARCHAR},
|
|
|
+ BUSINESS_GROUP = #{businessGroup,jdbcType=VARCHAR},
|
|
|
+ TEMP_CONVEYANCE = #{tempConveyance,jdbcType=VARCHAR},
|
|
|
+ CONVEYANCE_TYPE = #{conveyanceType,jdbcType=VARCHAR},
|
|
|
+ RESOURCE_SYSTEM = #{resourceSystem,jdbcType=VARCHAR},
|
|
|
+ GROUP_PACKAGE_AMOUNT = #{groupPackageAmount,jdbcType=DECIMAL},
|
|
|
+ GROUP_PACKAGE_UNIT = #{groupPackageUnit,jdbcType=VARCHAR},
|
|
|
+ PACKAGE_AMOUNT = #{packageAmount,jdbcType=DECIMAL},
|
|
|
+ PACKAGE_UNIT = #{packageUnit,jdbcType=VARCHAR},
|
|
|
+ THEORY_AMOUNT = #{theoryAmount,jdbcType=DECIMAL},
|
|
|
+ MEASURE_BATCH = #{measureBatch,jdbcType=VARCHAR},
|
|
|
+ MEASURE_BATCH_COUNT = #{measureBatchCount,jdbcType=DECIMAL},
|
|
|
+ SENDER_TYPE = #{senderType,jdbcType=VARCHAR},
|
|
|
+ SENDER_REMARK = #{senderRemark,jdbcType=VARCHAR},
|
|
|
+ RECEIVER_TYPE = #{receiverType,jdbcType=VARCHAR},
|
|
|
+ RECEIVER_REMARK = #{receiverRemark,jdbcType=VARCHAR},
|
|
|
+ TRUST_DEPARTMENT_NAME = #{trustDepartmentName,jdbcType=VARCHAR},
|
|
|
+ TRUST_DEPARTMENT = #{trustDepartment,jdbcType=VARCHAR},
|
|
|
+ TRUSTOR = #{trustor,jdbcType=VARCHAR},
|
|
|
+ TRUST_DATE_TIME = #{trustDateTime,jdbcType=TIMESTAMP},
|
|
|
+ TRUST_AVAILABILITY_TIME = #{trustAvailabilityTime,jdbcType=TIMESTAMP},
|
|
|
+ TRUST_IP = #{trustIp,jdbcType=VARCHAR},
|
|
|
+ STATION_TYPE = #{stationType,jdbcType=VARCHAR},
|
|
|
+ MEASURE_STATION = #{measureStation,jdbcType=VARCHAR},
|
|
|
+ MEASURE_STATION_NAME = #{measureStationName,jdbcType=VARCHAR},
|
|
|
+ AMOUNT_UNIT = #{amountUnit,jdbcType=VARCHAR},
|
|
|
+ TRUST_DAY = #{trustDay,jdbcType=DECIMAL}
|
|
|
where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.pretrack.pretrackscale.model.PreTrackScale">
|
|
|
@@ -1494,12 +1927,6 @@
|
|
|
<if test="predictionSource != null">
|
|
|
PREDICTION_SOURCE = #{predictionSource,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="meterPierName != null">
|
|
|
- METER_PIER_NAME = #{meterPierName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="meterPierNo != null">
|
|
|
- METER_PIER_NO = #{meterPierNo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
<if test="createDepname != null">
|
|
|
CREATE_DEPNAME = #{createDepname,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
@@ -1509,11 +1936,89 @@
|
|
|
<if test="lineDesc != null">
|
|
|
LINE_DESC = #{lineDesc,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="lineCode != null">
|
|
|
- LINE_CODE = #{lineCode,jdbcType=VARCHAR},
|
|
|
+ <if test="voucherIdentity != null">
|
|
|
+ VOUCHER_IDENTITY = #{voucherIdentity,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="voucherItem != null">
|
|
|
+ VOUCHER_ITEM = #{voucherItem,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="businessGroup != null">
|
|
|
+ BUSINESS_GROUP = #{businessGroup,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="tempConveyance != null">
|
|
|
+ TEMP_CONVEYANCE = #{tempConveyance,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="conveyanceType != null">
|
|
|
+ CONVEYANCE_TYPE = #{conveyanceType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="resourceSystem != null">
|
|
|
+ RESOURCE_SYSTEM = #{resourceSystem,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageAmount != null">
|
|
|
+ GROUP_PACKAGE_AMOUNT = #{groupPackageAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="groupPackageUnit != null">
|
|
|
+ GROUP_PACKAGE_UNIT = #{groupPackageUnit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="packageAmount != null">
|
|
|
+ PACKAGE_AMOUNT = #{packageAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="packageUnit != null">
|
|
|
+ PACKAGE_UNIT = #{packageUnit,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="theoryAmount != null">
|
|
|
+ THEORY_AMOUNT = #{theoryAmount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="measureBatch != null">
|
|
|
+ MEASURE_BATCH = #{measureBatch,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="measureBatchCount != null">
|
|
|
+ MEASURE_BATCH_COUNT = #{measureBatchCount,jdbcType=DECIMAL},
|
|
|
+ </if>
|
|
|
+ <if test="senderType != null">
|
|
|
+ SENDER_TYPE = #{senderType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="senderRemark != null">
|
|
|
+ SENDER_REMARK = #{senderRemark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="receiverType != null">
|
|
|
+ RECEIVER_TYPE = #{receiverType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="receiverRemark != null">
|
|
|
+ RECEIVER_REMARK = #{receiverRemark,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartmentName != null">
|
|
|
+ TRUST_DEPARTMENT_NAME = #{trustDepartmentName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="trustDepartment != null">
|
|
|
+ TRUST_DEPARTMENT = #{trustDepartment,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="trustor != null">
|
|
|
+ TRUSTOR = #{trustor,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="trustDateTime != null">
|
|
|
+ TRUST_DATE_TIME = #{trustDateTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="trustAvailabilityTime != null">
|
|
|
+ TRUST_AVAILABILITY_TIME = #{trustAvailabilityTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="trustIp != null">
|
|
|
+ TRUST_IP = #{trustIp,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="stationType != null">
|
|
|
+ STATION_TYPE = #{stationType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="measureStation != null">
|
|
|
+ MEASURE_STATION = #{measureStation,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="measureStationName != null">
|
|
|
+ MEASURE_STATION_NAME = #{measureStationName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="amountUnit != null">
|
|
|
+ AMOUNT_UNIT = #{amountUnit,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
- <if test="shipNo != null">
|
|
|
- SHIP_NO = #{shipNo,jdbcType=VARCHAR},
|
|
|
+ <if test="trustDay != null">
|
|
|
+ TRUST_DAY = #{trustDay,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
</set>
|
|
|
where PREDICTION_NO = #{predictionNo,jdbcType=VARCHAR}
|
|
|
@@ -1525,12 +2030,10 @@
|
|
|
<select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
<include refid="select"/>
|
|
|
<include refid="where"/>
|
|
|
- order by CREATE_TIME desc
|
|
|
</select>
|
|
|
<select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
<include refid="select"/>
|
|
|
<include refid="whereLike"/>
|
|
|
- order by CREATE_TIME desc
|
|
|
</select>
|
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
|
insert into PRE_TRACK_SCALE
|
|
|
@@ -1560,9 +2063,20 @@
|
|
|
P_VALUE_FLAG, CAR_ALLOCATION_TIME,
|
|
|
IS_COMPLETED, LIMS_SAMPLING_FLAG,
|
|
|
HEAT_NO, ID_NUM, PREDICTION_SOURCE,
|
|
|
- METER_PIER_NAME, METER_PIER_NO, CREATE_DEPNAME,
|
|
|
- CREATE_DEPID, LINE_DESC, LINE_CODE,
|
|
|
- SHIP_NO)
|
|
|
+ CREATE_DEPNAME, CREATE_DEPID, LINE_DESC,
|
|
|
+ VOUCHER_IDENTITY, VOUCHER_ITEM,
|
|
|
+ BUSINESS_GROUP, TEMP_CONVEYANCE,
|
|
|
+ CONVEYANCE_TYPE, RESOURCE_SYSTEM,
|
|
|
+ GROUP_PACKAGE_AMOUNT, GROUP_PACKAGE_UNIT,
|
|
|
+ PACKAGE_AMOUNT, PACKAGE_UNIT, THEORY_AMOUNT,
|
|
|
+ MEASURE_BATCH, MEASURE_BATCH_COUNT,
|
|
|
+ SENDER_TYPE, SENDER_REMARK, RECEIVER_TYPE,
|
|
|
+ RECEIVER_REMARK, TRUST_DEPARTMENT_NAME,
|
|
|
+ TRUST_DEPARTMENT, TRUSTOR, TRUST_DATE_TIME,
|
|
|
+ TRUST_AVAILABILITY_TIME, TRUST_IP,
|
|
|
+ STATION_TYPE, MEASURE_STATION,
|
|
|
+ MEASURE_STATION_NAME, AMOUNT_UNIT,
|
|
|
+ TRUST_DAY)
|
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
|
select
|
|
|
#{item.predictionNo,jdbcType=VARCHAR},
|
|
|
@@ -1591,9 +2105,20 @@
|
|
|
#{item.pValueFlag,jdbcType=VARCHAR}, #{item.carAllocationTime,jdbcType=TIMESTAMP},
|
|
|
#{item.isCompleted,jdbcType=VARCHAR}, #{item.limsSamplingFlag,jdbcType=VARCHAR},
|
|
|
#{item.heatNo,jdbcType=VARCHAR}, #{item.idNum,jdbcType=VARCHAR}, #{item.predictionSource,jdbcType=VARCHAR},
|
|
|
- #{item.meterPierName,jdbcType=VARCHAR}, #{item.meterPierNo,jdbcType=VARCHAR}, #{item.createDepname,jdbcType=VARCHAR},
|
|
|
- #{item.createDepid,jdbcType=VARCHAR}, #{item.lineDesc,jdbcType=VARCHAR}, #{item.lineCode,jdbcType=VARCHAR},
|
|
|
- #{item.shipNo,jdbcType=VARCHAR} from dual
|
|
|
+ #{item.createDepname,jdbcType=VARCHAR}, #{item.createDepid,jdbcType=VARCHAR}, #{item.lineDesc,jdbcType=VARCHAR},
|
|
|
+ #{item.voucherIdentity,jdbcType=VARCHAR}, #{item.voucherItem,jdbcType=VARCHAR},
|
|
|
+ #{item.businessGroup,jdbcType=VARCHAR}, #{item.tempConveyance,jdbcType=VARCHAR},
|
|
|
+ #{item.conveyanceType,jdbcType=VARCHAR}, #{item.resourceSystem,jdbcType=VARCHAR},
|
|
|
+ #{item.groupPackageAmount,jdbcType=DECIMAL}, #{item.groupPackageUnit,jdbcType=VARCHAR},
|
|
|
+ #{item.packageAmount,jdbcType=DECIMAL}, #{item.packageUnit,jdbcType=VARCHAR}, #{item.theoryAmount,jdbcType=DECIMAL},
|
|
|
+ #{item.measureBatch,jdbcType=VARCHAR}, #{item.measureBatchCount,jdbcType=DECIMAL},
|
|
|
+ #{item.senderType,jdbcType=VARCHAR}, #{item.senderRemark,jdbcType=VARCHAR}, #{item.receiverType,jdbcType=VARCHAR},
|
|
|
+ #{item.receiverRemark,jdbcType=VARCHAR}, #{item.trustDepartmentName,jdbcType=VARCHAR},
|
|
|
+ #{item.trustDepartment,jdbcType=VARCHAR}, #{item.trustor,jdbcType=VARCHAR}, #{item.trustDateTime,jdbcType=TIMESTAMP},
|
|
|
+ #{item.trustAvailabilityTime,jdbcType=TIMESTAMP}, #{item.trustIp,jdbcType=VARCHAR},
|
|
|
+ #{item.stationType,jdbcType=VARCHAR}, #{item.measureStation,jdbcType=VARCHAR},
|
|
|
+ #{item.measureStationName,jdbcType=VARCHAR}, #{item.amountUnit,jdbcType=VARCHAR},
|
|
|
+ #{item.trustDay,jdbcType=DECIMAL} from dual
|
|
|
</foreach> )
|
|
|
</insert>
|
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
|
@@ -1851,14 +2376,6 @@
|
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
when #{item.predictionNo,jdbcType=VARCHAR} then #{item.predictionSource,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
|
- ,METER_PIER_NAME=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
- when #{item.predictionNo,jdbcType=VARCHAR} then #{item.meterPierName,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
- ,METER_PIER_NO=
|
|
|
- <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
- when #{item.predictionNo,jdbcType=VARCHAR} then #{item.meterPierNo,jdbcType=VARCHAR}
|
|
|
- </foreach>
|
|
|
,CREATE_DEPNAME=
|
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
when #{item.predictionNo,jdbcType=VARCHAR} then #{item.createDepname,jdbcType=VARCHAR}
|
|
|
@@ -1871,13 +2388,117 @@
|
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
when #{item.predictionNo,jdbcType=VARCHAR} then #{item.lineDesc,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
|
- ,LINE_CODE=
|
|
|
+ ,VOUCHER_IDENTITY=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.voucherIdentity,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,VOUCHER_ITEM=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.voucherItem,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,BUSINESS_GROUP=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.businessGroup,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,TEMP_CONVEYANCE=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.tempConveyance,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,CONVEYANCE_TYPE=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.conveyanceType,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,RESOURCE_SYSTEM=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.resourceSystem,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,GROUP_PACKAGE_AMOUNT=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.groupPackageAmount,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,GROUP_PACKAGE_UNIT=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.groupPackageUnit,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,PACKAGE_AMOUNT=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.packageAmount,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,PACKAGE_UNIT=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.packageUnit,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,THEORY_AMOUNT=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.theoryAmount,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,MEASURE_BATCH=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureBatch,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,MEASURE_BATCH_COUNT=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureBatchCount,jdbcType=DECIMAL}
|
|
|
+ </foreach>
|
|
|
+ ,SENDER_TYPE=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.senderType,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,SENDER_REMARK=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.senderRemark,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,RECEIVER_TYPE=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.receiverType,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,RECEIVER_REMARK=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.receiverRemark,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,TRUST_DEPARTMENT_NAME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDepartmentName,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,TRUST_DEPARTMENT=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDepartment,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,TRUSTOR=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustor,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,TRUST_DATE_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDateTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,TRUST_AVAILABILITY_TIME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustAvailabilityTime,jdbcType=TIMESTAMP}
|
|
|
+ </foreach>
|
|
|
+ ,TRUST_IP=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustIp,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,STATION_TYPE=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.stationType,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,MEASURE_STATION=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureStation,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,MEASURE_STATION_NAME=
|
|
|
+ <foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.measureStationName,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
+ ,AMOUNT_UNIT=
|
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
- when #{item.predictionNo,jdbcType=VARCHAR} then #{item.lineCode,jdbcType=VARCHAR}
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.amountUnit,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
|
- ,SHIP_NO=
|
|
|
+ ,TRUST_DAY=
|
|
|
<foreach collection="list" item="item" index="index" separator=" " open="case PREDICTION_NO" close="end">
|
|
|
- when #{item.predictionNo,jdbcType=VARCHAR} then #{item.shipNo,jdbcType=VARCHAR}
|
|
|
+ when #{item.predictionNo,jdbcType=VARCHAR} then #{item.trustDay,jdbcType=DECIMAL}
|
|
|
</foreach>
|
|
|
where PREDICTION_NO in
|
|
|
<foreach collection="list" index="index" item="item" separator="," open="(" close=")">
|