|
@@ -3757,27 +3757,49 @@
|
|
|
<if test="valueFlag != null and valueFlag != ''">
|
|
<if test="valueFlag != null and valueFlag != ''">
|
|
|
and VALUE_FLAG = #{valueFlag}
|
|
and VALUE_FLAG = #{valueFlag}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ and ( lc_no in
|
|
|
|
|
+ <foreach collection="lcNoTemp" item="item" open="(" separator="," close=")">
|
|
|
|
|
+ #{item}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ <if test="lcNoNull != null and lcNoNull != ''">
|
|
|
|
|
+ or lc_no is null )
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="lcNoNull == null or lcNoNull == ''">
|
|
|
|
|
+ and lc_no is not null)
|
|
|
|
|
+ </if>
|
|
|
<!--and RAILWAY_NO like '%${railwayNo}%'-->
|
|
<!--and RAILWAY_NO like '%${railwayNo}%'-->
|
|
|
<if test="railwayTypeNo != null and railwayTypeNo != ''">
|
|
<if test="railwayTypeNo != null and railwayTypeNo != ''">
|
|
|
and RAILWAY_TYPE_NO = #{railwayTypeNo}
|
|
and RAILWAY_TYPE_NO = #{railwayTypeNo}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="lcNo != null and lcNo != ''">
|
|
|
|
|
- and lc_No like '%${lcNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
|
|
+<!-- <if test="lcNo != null and lcNo != ''">-->
|
|
|
|
|
+<!-- and lc_No like '%${lcNo}%'-->
|
|
|
|
|
+<!-- </if>-->
|
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
|
and net_time >= TO_DATE(#{startTime}, 'yyyy-MM-dd HH24:mi:ss') and net_time <= TO_DATE(#{endTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
and net_time >= TO_DATE(#{startTime}, 'yyyy-MM-dd HH24:mi:ss') and net_time <= TO_DATE(#{endTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="baseSpotName != null and baseSpotName != ''">
|
|
|
|
|
- and base_spot_name = #{baseSpotName}
|
|
|
|
|
|
|
+ <if test="matterNo != null and matterNo != ''">
|
|
|
|
|
+ and matter_no like '%${matterNo}%'
|
|
|
</if>
|
|
</if>
|
|
|
<if test="matterName != null and matterName != ''">
|
|
<if test="matterName != null and matterName != ''">
|
|
|
- and matter_name = #{matterName}
|
|
|
|
|
|
|
+ and matter_name like '%${matterName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo != null and baseSpotNo != ''">
|
|
|
|
|
+ and net_spot3_No like '%${baseSpotNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName != null and baseSpotName != ''">
|
|
|
|
|
+ and net_spot3_name like '%${baseSpotName}%'
|
|
|
</if>
|
|
</if>
|
|
|
<if test="predictionNo != null and predictionNo != ''">
|
|
<if test="predictionNo != null and predictionNo != ''">
|
|
|
- and prediction_no = #{predictionNo}
|
|
|
|
|
|
|
+ and prediction_no like '%${predictionNo}%'
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="railwayNo != null and railwayNo != ''">
|
|
|
|
|
- and RAILWAY_NO like '%${railwayNo}%'
|
|
|
|
|
|
|
+ <if test="forwardingUnitName != null and forwardingUnitName != ''">
|
|
|
|
|
+ and forwarding_Unit_Name like '%${forwardingUnitName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUintName != null and receivingUintName != ''">
|
|
|
|
|
+ and receiving_uint_name like '%${receivingUintName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="valueFlag != null and valueFlag != ''">
|
|
|
|
|
+ and VALUE_FLAG = #{valueFlag}
|
|
|
</if>
|
|
</if>
|
|
|
and value_flag != '0'
|
|
and value_flag != '0'
|
|
|
</select>
|
|
</select>
|
|
@@ -3796,20 +3818,35 @@
|
|
|
<if test="railwayNo != null and railwayNo != ''">
|
|
<if test="railwayNo != null and railwayNo != ''">
|
|
|
and railway_no like '%${railwayNo}%'
|
|
and railway_no like '%${railwayNo}%'
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="baseSpotNo != null and baseSpotNo != ''">
|
|
|
|
|
+ and net_spot3_no like '%${baseSpotNo}%'
|
|
|
|
|
+ </if>
|
|
|
<if test="baseSpotName != null and baseSpotName != ''">
|
|
<if test="baseSpotName != null and baseSpotName != ''">
|
|
|
- and base_spot_name = #{baseSpotName}
|
|
|
|
|
|
|
+ and net_spot3_name like '%${baseSpotName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterNo != null and matterNo != ''">
|
|
|
|
|
+ and matter_no like '%${matterNo}%'
|
|
|
</if>
|
|
</if>
|
|
|
<if test="matterName != null and matterName != ''">
|
|
<if test="matterName != null and matterName != ''">
|
|
|
- and matter_name = #{matterName}
|
|
|
|
|
|
|
+ and matter_name like '%${matterName}%'
|
|
|
</if>
|
|
</if>
|
|
|
<if test="predictionNo != null and predictionNo != ''">
|
|
<if test="predictionNo != null and predictionNo != ''">
|
|
|
- and prediction_no = #{predictionNo}
|
|
|
|
|
|
|
+ and prediction_no like '%${predictionNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitName != null and forwardingUnitName != ''">
|
|
|
|
|
+ and forwarding_Unit_Name like '%${forwardingUnitName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUintName != null and receivingUintName != ''">
|
|
|
|
|
+ and receiving_Uint_Name like '%${receivingUintName}%'
|
|
|
</if>
|
|
</if>
|
|
|
<if test="valueFlag != null and valueFlag != ''">
|
|
<if test="valueFlag != null and valueFlag != ''">
|
|
|
and value_flag = #{valueFlag}
|
|
and value_flag = #{valueFlag}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="lcNo != null and lcNo != ''">
|
|
|
|
|
+ and lc_No like '%${lcNo}%'
|
|
|
|
|
+ </if>
|
|
|
and value_flag != '0'
|
|
and value_flag != '0'
|
|
|
- and lc_no is not null
|
|
|
|
|
|
|
+-- and lc_no is not null
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectActual" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
<select id="selectActual" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
@@ -3827,222 +3864,243 @@
|
|
|
<select id="likeByDesc" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
<select id="likeByDesc" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
<include refid="select" />
|
|
<include refid="select" />
|
|
|
<where>
|
|
<where>
|
|
|
- 1 = 1
|
|
|
|
|
- <if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
|
|
|
- and net_time >= TO_DATE(#{startTime}, 'yyyy-MM-dd HH24:mi:ss') and net_time <= TO_DATE(#{endTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="actualNo != null and actualNo != ''">
|
|
|
|
|
- and ACTUAL_NO LIKE '%${actualNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="predictionNo != null and predictionNo != ''">
|
|
|
|
|
- and PREDICTION_NO LIKE '%${predictionNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="noticeNo != null and noticeNo != ''">
|
|
|
|
|
- and NOTICE_NO LIKE '%${noticeNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="railwayNo != null and railwayNo != ''">
|
|
|
|
|
- and RAILWAY_NO LIKE '%${railwayNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="railwayCarriageNo != null and railwayCarriageNo != ''">
|
|
|
|
|
- and RAILWAY_CARRIAGE_NO LIKE '%${railwayCarriageNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="matterNo != null and matterNo != ''">
|
|
|
|
|
- and MATTER_NO LIKE '%${matterNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="matterName != null and matterName != ''">
|
|
|
|
|
- and MATTER_NAME LIKE '%${matterName}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="contractNo != null and contractNo != ''">
|
|
|
|
|
- and CONTRACT_NO LIKE '%${contractNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="batchNo != null and batchNo != ''">
|
|
|
|
|
- and BATCH_NO LIKE '%${batchNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="customerSupplierNo != null and customerSupplierNo != ''">
|
|
|
|
|
- and CUSTOMER_SUPPLIER_NO LIKE '%${customerSupplierNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="customerSupplierName != null and customerSupplierName != ''">
|
|
|
|
|
- and CUSTOMER_SUPPLIER_NAME LIKE '%${customerSupplierName}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
|
|
|
|
|
- and FORWARDING_UNIT_NO LIKE '%${forwardingUnitNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="forwardingUnitName != null and forwardingUnitName != ''">
|
|
|
|
|
- and FORWARDING_UNIT_NAME LIKE '%${forwardingUnitName}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="receivingUintNo != null and receivingUintNo != ''">
|
|
|
|
|
- and RECEIVING_UINT_NO LIKE '%${receivingUintNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="receivingUintName != null and receivingUintName != ''">
|
|
|
|
|
- and RECEIVING_UINT_NAME LIKE '%${receivingUintName}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="materialNo != null and materialNo != ''">
|
|
|
|
|
- and MATERIAL_NO LIKE '%${materialNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="materialName != null and materialName != ''">
|
|
|
|
|
- and MATERIAL_NAME LIKE '%${materialName}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="specNo != null and specNo != ''">
|
|
|
|
|
- and SPEC_NO LIKE '%${specNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="specName != null and specName != ''">
|
|
|
|
|
- and SPEC_NAME LIKE '%${specName}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="loadPointNo != null and loadPointNo != ''">
|
|
|
|
|
- and LOAD_POINT_NO LIKE '%${loadPointNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="loadPointName != null and loadPointName != ''">
|
|
|
|
|
- and LOAD_POINT_NAME LIKE '%${loadPointName}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="sampleVoucher != null and sampleVoucher != ''">
|
|
|
|
|
- and SAMPLE_VOUCHER LIKE '%${sampleVoucher}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="carrierUnitNo != null and carrierUnitNo != ''">
|
|
|
|
|
- and CARRIER_UNIT_NO LIKE '%${carrierUnitNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="carrierUnitName != null and carrierUnitName != ''">
|
|
|
|
|
- and CARRIER_UNIT_NAME LIKE '%${carrierUnitName}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="meterTypeNo != null and meterTypeNo != ''">
|
|
|
|
|
- and METER_TYPE_NO LIKE '%${meterTypeNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="meterTypeName != null and meterTypeName != ''">
|
|
|
|
|
- and METER_TYPE_NAME LIKE '%${meterTypeName}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="meterProcessNo != null and meterProcessNo != ''">
|
|
|
|
|
- and METER_PROCESS_NO LIKE '%${meterProcessNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="meterProcessEditionNo != null and meterProcessEditionNo != ''">
|
|
|
|
|
- and METER_PROCESS_EDITION_NO LIKE '%${meterProcessEditionNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="actualFirst1No != null and actualFirst1No != ''">
|
|
|
|
|
- and ACTUAL_FIRST1_NO LIKE '%${actualFirst1No}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="grossWeight != null">
|
|
|
|
|
- and GROSS_WEIGHT = #{grossWeight}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="grossManNo != null and grossManNo != ''">
|
|
|
|
|
- and GROSS_MAN_NO LIKE '%${grossManNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="grossManName != null and grossManName != ''">
|
|
|
|
|
- and GROSS_MAN_NAME LIKE '%${grossManName}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="grossTime != null">
|
|
|
|
|
- and TO_CHAR(GROSS_TIME,'yyyy-MM-dd') = #{grossTime}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="baseSpot1No != null and baseSpot1No != ''">
|
|
|
|
|
- and BASE_SPOT1_NO LIKE '%${baseSpot1No}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="baseSpot1Name != null and baseSpot1Name != ''">
|
|
|
|
|
- and BASE_SPOT1_NAME LIKE '%${baseSpot1Name}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="grossClass != null and grossClass != ''">
|
|
|
|
|
- and GROSS_CLASS LIKE '%${grossClass}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="grossGroup != null and grossGroup != ''">
|
|
|
|
|
- and GROSS_GROUP LIKE '%${grossGroup}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="grossMode != null and grossMode != ''">
|
|
|
|
|
- and GROSS_MODE LIKE '%${grossMode}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="actualFirst2No != null and actualFirst2No != ''">
|
|
|
|
|
- and ACTUAL_FIRST2_NO LIKE '%${actualFirst2No}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="tareWeight != null">
|
|
|
|
|
- and TARE_WEIGHT = #{tareWeight}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="tareManNo != null and tareManNo != ''">
|
|
|
|
|
- and TARE_MAN_NO LIKE '%${tareManNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="tareManName != null and tareManName != ''">
|
|
|
|
|
- and TARE_MAN_NAME LIKE '%${tareManName}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="tareTime != null">
|
|
|
|
|
- and TO_CHAR(TARE_TIME,'yyyy-MM-dd') = #{tareTime}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="baseSpot2No != null and baseSpot2No != ''">
|
|
|
|
|
- and BASE_SPOT2_NO LIKE '%${baseSpot2No}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="baseSpot2Name != null and baseSpot2Name != ''">
|
|
|
|
|
- and BASE_SPOT2_NAME LIKE '%${baseSpot2Name}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="tareClass != null and tareClass != ''">
|
|
|
|
|
- and TARE_CLASS LIKE '%${tareClass}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="tareGroup != null and tareGroup != ''">
|
|
|
|
|
- and TARE_GROUP LIKE '%${tareGroup}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="tareMode != null and tareMode != ''">
|
|
|
|
|
- and TARE_MODE LIKE '%${tareMode}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="netWeight != null">
|
|
|
|
|
- and NET_WEIGHT = #{netWeight}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="netManNo != null and netManNo != ''">
|
|
|
|
|
- and NET_MAN_NO LIKE '%${netManNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="netManName != null and netManName != ''">
|
|
|
|
|
- and NET_MAN_NAME LIKE '%${netManName}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="netTime != null">
|
|
|
|
|
- and TO_CHAR(NET_TIME,'yyyy-MM-dd') = #{netTime}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="netSpot3No != null and netSpot3No != ''">
|
|
|
|
|
- and NET_SPOT3_NO LIKE '%${netSpot3No}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="netSpot3Name != null and netSpot3Name != ''">
|
|
|
|
|
- and NET_SPOT3_NAME LIKE '%${netSpot3Name}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="netMode != null and netMode != ''">
|
|
|
|
|
- and NET_MODE LIKE '%${netMode}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="valueFlag != null and valueFlag != ''">
|
|
|
|
|
- and VALUE_FLAG LIKE '%${valueFlag}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="uploadFlag != null and uploadFlag != ''">
|
|
|
|
|
- and UPLOAD_FLAG LIKE '%${uploadFlag}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="sampleNo != null and sampleNo != ''">
|
|
|
|
|
- and SAMPLE_NO LIKE '%${sampleNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="railwayTypeNo != null and railwayTypeNo != ''">
|
|
|
|
|
- and RAILWAY_TYPE_NO LIKE '%${railwayTypeNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="railwayTypeName != null and railwayTypeName != ''">
|
|
|
|
|
- and RAILWAY_TYPE_NAME LIKE '%${railwayTypeName}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="waterNum != null">
|
|
|
|
|
- and WATER_NUM = #{waterNum}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="arrival != null and arrival != ''">
|
|
|
|
|
- and ARRIVAL LIKE '%${arrival}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="station != null and station != ''">
|
|
|
|
|
- and STATION LIKE '%${station}%'
|
|
|
|
|
- </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="receiverRemark != null and receiverRemark != ''">
|
|
|
|
|
- and RECEIVER_REMARK LIKE '%${receiverRemark}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="dataSource != null and dataSource != ''">
|
|
|
|
|
- and DATA_SOURCE LIKE '%${dataSource}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="isPreSacale != null and isPreSacale != ''">
|
|
|
|
|
- and IS_PRE_SACALE LIKE '%${isPreSacale}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="lcNo != null and lcNo != ''">
|
|
|
|
|
- and LC_NO LIKE '%${lcNo}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="predictionType != null and predictionType != ''">
|
|
|
|
|
- and PREDICTION_TYPE LIKE '%${predictionType}%'
|
|
|
|
|
- </if>
|
|
|
|
|
- </where>
|
|
|
|
|
- and value_flag != '0'
|
|
|
|
|
|
|
+ 1 = 1
|
|
|
|
|
+ <if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
|
|
|
+ and net_time >= TO_DATE(#{startTime}, 'yyyy-MM-dd HH24:mi:ss') and net_time <= TO_DATE(#{endTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="actualNo != null and actualNo != ''">
|
|
|
|
|
+ and ACTUAL_NO LIKE '%${actualNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="predictionNo != null and predictionNo != ''">
|
|
|
|
|
+ and PREDICTION_NO LIKE '%${predictionNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="noticeNo != null and noticeNo != ''">
|
|
|
|
|
+ and NOTICE_NO LIKE '%${noticeNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayNo != null and railwayNo != ''">
|
|
|
|
|
+ and RAILWAY_NO LIKE '%${railwayNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayCarriageNo != null and railwayCarriageNo != ''">
|
|
|
|
|
+ and RAILWAY_CARRIAGE_NO LIKE '%${railwayCarriageNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterNo != null and matterNo != ''">
|
|
|
|
|
+ and MATTER_NO LIKE '%${matterNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="matterName != null and matterName != ''">
|
|
|
|
|
+ and MATTER_NAME LIKE '%${matterName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="contractNo != null and contractNo != ''">
|
|
|
|
|
+ and CONTRACT_NO LIKE '%${contractNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="batchNo != null and batchNo != ''">
|
|
|
|
|
+ and BATCH_NO LIKE '%${batchNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="customerSupplierNo != null and customerSupplierNo != ''">
|
|
|
|
|
+ and CUSTOMER_SUPPLIER_NO LIKE '%${customerSupplierNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="customerSupplierName != null and customerSupplierName != ''">
|
|
|
|
|
+ and CUSTOMER_SUPPLIER_NAME LIKE '%${customerSupplierName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitNo != null and forwardingUnitNo != ''">
|
|
|
|
|
+ and FORWARDING_UNIT_NO LIKE '%${forwardingUnitNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="forwardingUnitName != null and forwardingUnitName != ''">
|
|
|
|
|
+ and FORWARDING_UNIT_NAME LIKE '%${forwardingUnitName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUintNo != null and receivingUintNo != ''">
|
|
|
|
|
+ and RECEIVING_UINT_NO LIKE '%${receivingUintNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="receivingUintName != null and receivingUintName != ''">
|
|
|
|
|
+ and RECEIVING_UINT_NAME LIKE '%${receivingUintName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="materialNo != null and materialNo != ''">
|
|
|
|
|
+ and MATERIAL_NO LIKE '%${materialNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="materialName != null and materialName != ''">
|
|
|
|
|
+ and MATERIAL_NAME LIKE '%${materialName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="specNo != null and specNo != ''">
|
|
|
|
|
+ and SPEC_NO LIKE '%${specNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="specName != null and specName != ''">
|
|
|
|
|
+ and SPEC_NAME LIKE '%${specName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="loadPointNo != null and loadPointNo != ''">
|
|
|
|
|
+ and LOAD_POINT_NO LIKE '%${loadPointNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="loadPointName != null and loadPointName != ''">
|
|
|
|
|
+ and LOAD_POINT_NAME LIKE '%${loadPointName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="sampleVoucher != null and sampleVoucher != ''">
|
|
|
|
|
+ and SAMPLE_VOUCHER LIKE '%${sampleVoucher}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="carrierUnitNo != null and carrierUnitNo != ''">
|
|
|
|
|
+ and CARRIER_UNIT_NO LIKE '%${carrierUnitNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="carrierUnitName != null and carrierUnitName != ''">
|
|
|
|
|
+ and CARRIER_UNIT_NAME LIKE '%${carrierUnitName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterTypeNo != null and meterTypeNo != ''">
|
|
|
|
|
+ and METER_TYPE_NO LIKE '%${meterTypeNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterTypeName != null and meterTypeName != ''">
|
|
|
|
|
+ and METER_TYPE_NAME LIKE '%${meterTypeName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterProcessNo != null and meterProcessNo != ''">
|
|
|
|
|
+ and METER_PROCESS_NO LIKE '%${meterProcessNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterProcessEditionNo != null and meterProcessEditionNo != ''">
|
|
|
|
|
+ and METER_PROCESS_EDITION_NO LIKE '%${meterProcessEditionNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="actualFirst1No != null and actualFirst1No != ''">
|
|
|
|
|
+ and ACTUAL_FIRST1_NO LIKE '%${actualFirst1No}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="grossWeight != null">
|
|
|
|
|
+ and GROSS_WEIGHT = #{grossWeight}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="grossManNo != null and grossManNo != ''">
|
|
|
|
|
+ and GROSS_MAN_NO LIKE '%${grossManNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="grossManName != null and grossManName != ''">
|
|
|
|
|
+ and GROSS_MAN_NAME LIKE '%${grossManName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="grossTime != null">
|
|
|
|
|
+ and TO_CHAR(GROSS_TIME,'yyyy-MM-dd') = #{grossTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpot1No != null and baseSpot1No != ''">
|
|
|
|
|
+ and BASE_SPOT1_NO LIKE '%${baseSpot1No}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpot1Name != null and baseSpot1Name != ''">
|
|
|
|
|
+ and BASE_SPOT1_NAME LIKE '%${baseSpot1Name}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="grossClass != null and grossClass != ''">
|
|
|
|
|
+ and GROSS_CLASS LIKE '%${grossClass}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="grossGroup != null and grossGroup != ''">
|
|
|
|
|
+ and GROSS_GROUP LIKE '%${grossGroup}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="grossMode != null and grossMode != ''">
|
|
|
|
|
+ and GROSS_MODE LIKE '%${grossMode}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="actualFirst2No != null and actualFirst2No != ''">
|
|
|
|
|
+ and ACTUAL_FIRST2_NO LIKE '%${actualFirst2No}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="tareWeight != null">
|
|
|
|
|
+ and TARE_WEIGHT = #{tareWeight}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="tareManNo != null and tareManNo != ''">
|
|
|
|
|
+ and TARE_MAN_NO LIKE '%${tareManNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="tareManName != null and tareManName != ''">
|
|
|
|
|
+ and TARE_MAN_NAME LIKE '%${tareManName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="tareTime != null">
|
|
|
|
|
+ and TO_CHAR(TARE_TIME,'yyyy-MM-dd') = #{tareTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpot2No != null and baseSpot2No != ''">
|
|
|
|
|
+ and BASE_SPOT2_NO LIKE '%${baseSpot2No}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpot2Name != null and baseSpot2Name != ''">
|
|
|
|
|
+ and BASE_SPOT2_NAME LIKE '%${baseSpot2Name}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="tareClass != null and tareClass != ''">
|
|
|
|
|
+ and TARE_CLASS LIKE '%${tareClass}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="tareGroup != null and tareGroup != ''">
|
|
|
|
|
+ and TARE_GROUP LIKE '%${tareGroup}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="tareMode != null and tareMode != ''">
|
|
|
|
|
+ and TARE_MODE LIKE '%${tareMode}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="netWeight != null">
|
|
|
|
|
+ and NET_WEIGHT = #{netWeight}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="netManNo != null and netManNo != ''">
|
|
|
|
|
+ and NET_MAN_NO LIKE '%${netManNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="netManName != null and netManName != ''">
|
|
|
|
|
+ and NET_MAN_NAME LIKE '%${netManName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="netTime != null">
|
|
|
|
|
+ and TO_CHAR(NET_TIME,'yyyy-MM-dd') = #{netTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="netSpot3No != null and netSpot3No != ''">
|
|
|
|
|
+ and NET_SPOT3_NO LIKE '%${netSpot3No}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="netSpot3Name != null and netSpot3Name != ''">
|
|
|
|
|
+ and NET_SPOT3_NAME LIKE '%${netSpot3Name}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="netMode != null and netMode != ''">
|
|
|
|
|
+ and NET_MODE LIKE '%${netMode}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="valueFlag != null and valueFlag != ''">
|
|
|
|
|
+ and VALUE_FLAG LIKE '%${valueFlag}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="uploadFlag != null and uploadFlag != ''">
|
|
|
|
|
+ and UPLOAD_FLAG LIKE '%${uploadFlag}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="sampleNo != null and sampleNo != ''">
|
|
|
|
|
+ and SAMPLE_NO LIKE '%${sampleNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayTypeNo != null and railwayTypeNo != ''">
|
|
|
|
|
+ and RAILWAY_TYPE_NO LIKE '%${railwayTypeNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayTypeName != null and railwayTypeName != ''">
|
|
|
|
|
+ and RAILWAY_TYPE_NAME LIKE '%${railwayTypeName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="waterNum != null">
|
|
|
|
|
+ and WATER_NUM = #{waterNum}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="arrival != null and arrival != ''">
|
|
|
|
|
+ and ARRIVAL LIKE '%${arrival}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="station != null and station != ''">
|
|
|
|
|
+ and STATION LIKE '%${station}%'
|
|
|
|
|
+ </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="receiverRemark != null and receiverRemark != ''">
|
|
|
|
|
+ and RECEIVER_REMARK LIKE '%${receiverRemark}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="dataSource != null and dataSource != ''">
|
|
|
|
|
+ and DATA_SOURCE LIKE '%${dataSource}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="isPreSacale != null and isPreSacale != ''">
|
|
|
|
|
+ and IS_PRE_SACALE LIKE '%${isPreSacale}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="lcNo != null and lcNo != ''">
|
|
|
|
|
+ and LC_NO LIKE '%${lcNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo != null and baseSpotNo != ''">
|
|
|
|
|
+ and NET_SPOT3_NO LIKE '%${baseSpotNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName != null and baseSpotName != ''">
|
|
|
|
|
+ and NET_SPOT3_NAME LIKE '%${baseSpotName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="lcNoTemp != null and lcNoTemp != ''">
|
|
|
|
|
+ and ( lc_no in
|
|
|
|
|
+ <foreach collection="lcNoTemp" item="item" open="(" separator="," close=")">
|
|
|
|
|
+ #{item}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ <if test="lcNoNull != null and lcNoNull != ''">
|
|
|
|
|
+ or lc_no is null )
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="lcNoNull == null or lcNoNull == ''">
|
|
|
|
|
+ and lc_no is not null)
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="predictionType != null and predictionType != ''">
|
|
|
|
|
+ and PREDICTION_TYPE LIKE '%${predictionType}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="flag != null and flag !=''">
|
|
|
|
|
+ and lc_no is null
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </where>
|
|
|
|
|
+ and value_flag != '0'
|
|
|
order by net_time desc
|
|
order by net_time desc
|
|
|
</select>
|
|
</select>
|
|
|
<select id="selectByAcatualFristNo" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
<select id="selectByAcatualFristNo" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|