|
@@ -1775,4 +1775,208 @@
|
|
|
SELECT LPAD(NVL(MAX(TO_NUMBER(SUBSTR(ACTUAL_FIRST_NO, LENGTH(ACTUAL_FIRST_NO) - 3))),0) + 1,4,'0') ACTUAL_FIRST_NO
|
|
SELECT LPAD(NVL(MAX(TO_NUMBER(SUBSTR(ACTUAL_FIRST_NO, LENGTH(ACTUAL_FIRST_NO) - 3))),0) + 1,4,'0') ACTUAL_FIRST_NO
|
|
|
FROM METER_WORK_RAILWAY_RECEIVED where instr(ACTUAL_FIRST_NO,#{afl,jdbcType=VARCHAR})>0
|
|
FROM METER_WORK_RAILWAY_RECEIVED where instr(ACTUAL_FIRST_NO,#{afl,jdbcType=VARCHAR})>0
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="noPage" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
|
|
+ <include refid="select" />
|
|
|
|
|
+ where 1=1
|
|
|
|
|
+ <if test="actualFirstNo != null and actualFirstNo != ''">
|
|
|
|
|
+ and ACTUAL_FIRST_NO LIKE '%${actualFirstNo}%'
|
|
|
|
|
+ </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="railwayWorkNo != null and railwayWorkNo != ''">
|
|
|
|
|
+ and RAILWAY_WORK_NO LIKE '%${railwayWorkNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwaySpeed != null">
|
|
|
|
|
+ and RAILWAY_SPEED = #{railwaySpeed}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayModel != null and railwayModel != ''">
|
|
|
|
|
+ and RAILWAY_MODEL LIKE '%${railwayModel}%'
|
|
|
|
|
+ </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="shipmentGrossWeight != null">
|
|
|
|
|
+ and SHIPMENT_GROSS_WEIGHT = #{shipmentGrossWeight}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="shipmentNetWeight != null">
|
|
|
|
|
+ and SHIPMENT_NET_WEIGHT = #{shipmentNetWeight}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="shipmentNum != null">
|
|
|
|
|
+ and SHIPMENT_NUM = #{shipmentNum}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="bindCardNo != null and bindCardNo != ''">
|
|
|
|
|
+ and BIND_CARD_NO LIKE '%${bindCardNo}%'
|
|
|
|
|
+ </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="sampleNo != null and sampleNo != ''">
|
|
|
|
|
+ and SAMPLE_NO LIKE '%${sampleNo}%'
|
|
|
|
|
+ </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="predictionType != null and predictionType != ''">
|
|
|
|
|
+ and PREDICTION_TYPE LIKE '%${predictionType}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="predictionCombination != null and predictionCombination != ''">
|
|
|
|
|
+ and PREDICTION_COMBINATION LIKE '%${predictionCombination}%'
|
|
|
|
|
+ </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="meterWeight != null">
|
|
|
|
|
+ and METER_WEIGHT = #{meterWeight}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="weightType != null and weightType != ''">
|
|
|
|
|
+ and WEIGHT_TYPE LIKE '%${weightType}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterSortWeight != null">
|
|
|
|
|
+ and METER_SORT_WEIGHT = #{meterSortWeight}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterBalanceWeight != null">
|
|
|
|
|
+ and METER_BALANCE_WEIGHT = #{meterBalanceWeight}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createManNo != null and createManNo != ''">
|
|
|
|
|
+ and CREATE_MAN_NO LIKE '%${createManNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createManName != null and createManName != ''">
|
|
|
|
|
+ and CREATE_MAN_NAME LIKE '%${createManName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="createTime != null">
|
|
|
|
|
+ and TO_CHAR(CREATE_TIME,'yyyy-MM-dd') = #{createTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotNo != null and baseSpotNo != ''">
|
|
|
|
|
+ and BASE_SPOT_NO LIKE '%${baseSpotNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="baseSpotName != null and baseSpotName != ''">
|
|
|
|
|
+ and BASE_SPOT_NAME LIKE '%${baseSpotName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterClass != null and meterClass != ''">
|
|
|
|
|
+ and METER_CLASS LIKE '%${meterClass}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterGroup != null and meterGroup != ''">
|
|
|
|
|
+ and METER_GROUP LIKE '%${meterGroup}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="memo != null and memo != ''">
|
|
|
|
|
+ and MEMO LIKE '%${memo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="valueFlag != null and valueFlag != ''">
|
|
|
|
|
+ and VALUE_FLAG LIKE '%${valueFlag}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManNo != null and updateManNo != ''">
|
|
|
|
|
+ and UPDATE_MAN_NO LIKE '%${updateManNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateManName != null and updateManName != ''">
|
|
|
|
|
+ and UPDATE_MAN_NAME LIKE '%${updateManName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="updateTime != null">
|
|
|
|
|
+ and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="checkFlag != null and checkFlag != ''">
|
|
|
|
|
+ and CHECK_FLAG LIKE '%${checkFlag}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="checkManNo != null and checkManNo != ''">
|
|
|
|
|
+ and CHECK_MAN_NO LIKE '%${checkManNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="checkManName != null and checkManName != ''">
|
|
|
|
|
+ and CHECK_MAN_NAME LIKE '%${checkManName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="checkTime != null">
|
|
|
|
|
+ and TO_CHAR(CHECK_TIME,'yyyy-MM-dd') = #{checkTime}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="meterMode != null and meterMode != ''">
|
|
|
|
|
+ and METER_MODE LIKE '%${meterMode}%'
|
|
|
|
|
+ </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="isChemical != null and isChemical != ''">
|
|
|
|
|
+ and IS_CHEMICAL LIKE '%${isChemical}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="limitWeight != null">
|
|
|
|
|
+ and LIMIT_WEIGHT = #{limitWeight}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayModelNo != null and railwayModelNo != ''">
|
|
|
|
|
+ and RAILWAY_MODEL_NO LIKE '%${railwayModelNo}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="railwayModelName != null and railwayModelName != ''">
|
|
|
|
|
+ and RAILWAY_MODEL_NAME LIKE '%${railwayModelName}%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="startTime != null and endTime != null and startTime != '' and endTime != ''">
|
|
|
|
|
+ and CREATE_TIME >= TO_DATE(#{startTime}, 'yyyy-MM-dd HH24:mi:ss') and CREATE_TIME <= TO_DATE(#{endTime}, 'yyyy-MM-dd HH24:mi:ss')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ order by CREATE_TIME desc
|
|
|
|
|
+ </select>
|
|
|
</mapper>
|
|
</mapper>
|