|
@@ -3048,7 +3048,7 @@
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="mathPredcition" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
<select id="mathPredcition" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
- select t.actual_no, t1.prediction_no, t1.notice_no,t1.railway_no,t1.railway_carriage_no,
|
|
|
|
|
|
|
+ select t.actual_no, t1.prediction_no, t1.notice_no,t1.railway_no,t.railway_carriage_no,
|
|
|
t1.matter_no,t1.matter_name,t1.contract_no,t1.batch_no,t1.customer_supplier_no,
|
|
t1.matter_no,t1.matter_name,t1.contract_no,t1.batch_no,t1.customer_supplier_no,
|
|
|
t1.customer_supplier_name,t1.forwarding_unit_no,t1.forwarding_unit_name,t1.receiving_uint_no,
|
|
t1.customer_supplier_name,t1.forwarding_unit_no,t1.forwarding_unit_name,t1.receiving_uint_no,
|
|
|
t1.receiving_uint_name,t1.material_no,t1.material_name, t1.spec_no,t1.spec_name,t1.load_point_no,
|
|
t1.receiving_uint_name,t1.material_no,t1.material_name, t1.spec_no,t1.spec_name,t1.load_point_no,
|
|
@@ -3070,7 +3070,7 @@
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="cleanPredcition" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
<select id="cleanPredcition" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
- select t.actual_no,t.actual_first1_no, t.railway_no, t.gross_weight,t.gross_man_no,t.gross_man_name,
|
|
|
|
|
|
|
+ select t.actual_no,t.actual_first1_no, t.railway_carriage_no, t.railway_no, t.gross_weight,t.gross_man_no,t.gross_man_name,
|
|
|
t.gross_time,t.base_spot1_no, t.base_spot1_name,t.gross_class,t.gross_group,t.gross_mode,
|
|
t.gross_time,t.base_spot1_no, t.base_spot1_name,t.gross_class,t.gross_group,t.gross_mode,
|
|
|
t.actual_first2_no,t.tare_weight,t.tare_man_no,t.tare_man_name,t.tare_time,t.base_spot2_no,
|
|
t.actual_first2_no,t.tare_weight,t.tare_man_no,t.tare_man_name,t.tare_time,t.base_spot2_no,
|
|
|
t.base_spot2_name,t.tare_class,t.tare_group,t.tare_mode, t.net_weight,t.net_man_no,
|
|
t.base_spot2_name,t.tare_class,t.tare_group,t.tare_mode, t.net_weight,t.net_man_no,
|
|
@@ -4347,15 +4347,108 @@
|
|
|
actual_first2_no = #{actualFirstNo}
|
|
actual_first2_no = #{actualFirstNo}
|
|
|
</select>
|
|
</select>
|
|
|
<select id="autoPrintRailway" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
<select id="autoPrintRailway" parameterType="java.util.HashMap" resultMap="BaseResultMap">
|
|
|
- <include refid="select" />
|
|
|
|
|
|
|
+ select actual_no,
|
|
|
|
|
+ railway_no,
|
|
|
|
|
+ matter_no,
|
|
|
|
|
+ matter_name,
|
|
|
|
|
+ meter_type_name,
|
|
|
|
|
+ forwarding_unit_name,
|
|
|
|
|
+ receiving_uint_name,
|
|
|
|
|
+ gross_weight,
|
|
|
|
|
+ tare_weight,
|
|
|
|
|
+ net_weight,
|
|
|
|
|
+ gross_time,
|
|
|
|
|
+ tare_time,
|
|
|
|
|
+ net_time,
|
|
|
|
|
+ net_spot3_name,
|
|
|
|
|
+ sender_remark,
|
|
|
|
|
+ create_man_name,
|
|
|
|
|
+ create_time
|
|
|
|
|
+ from (
|
|
|
|
|
+ (
|
|
|
|
|
+ select actual_no,
|
|
|
|
|
+ railway_no,
|
|
|
|
|
+ matter_no,
|
|
|
|
|
+ matter_name,
|
|
|
|
|
+ meter_type_name,
|
|
|
|
|
+ forwarding_unit_name,
|
|
|
|
|
+ receiving_uint_name,
|
|
|
|
|
+ gross_weight,
|
|
|
|
|
+ tare_weight,
|
|
|
|
|
+ net_weight,
|
|
|
|
|
+ gross_time,
|
|
|
|
|
+ tare_time,
|
|
|
|
|
+ net_time,
|
|
|
|
|
+ net_spot3_name,
|
|
|
|
|
+ sender_remark,
|
|
|
|
|
+ create_man_name,
|
|
|
|
|
+ create_time
|
|
|
|
|
+ from meter_work_railway_actual
|
|
|
|
|
+ where 1 = 1
|
|
|
|
|
+ <if test="railwayNo != null and railwayNo != ''">
|
|
|
|
|
+ and railway_no like '%railwayNo%'
|
|
|
|
|
+ </if>
|
|
|
|
|
+ and forwarding_unit_no in
|
|
|
|
|
+ <foreach collection="list" item="id" separator="," open="(" close=")">
|
|
|
|
|
+ #{id}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ <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="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="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="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="flag != null and flag != ''">
|
|
|
|
|
+ and NET_SPOT3_NAME is null
|
|
|
|
|
+ </if>
|
|
|
|
|
+ and value_flag != '0'
|
|
|
|
|
+ )
|
|
|
|
|
+ union
|
|
|
|
|
+ (
|
|
|
|
|
+ select actual_no,
|
|
|
|
|
+ railway_no,
|
|
|
|
|
+ matter_no,
|
|
|
|
|
+ matter_name,
|
|
|
|
|
+ meter_type_name,
|
|
|
|
|
+ forwarding_unit_name,
|
|
|
|
|
+ receiving_uint_name,
|
|
|
|
|
+ gross_weight,
|
|
|
|
|
+ tare_weight,
|
|
|
|
|
+ net_weight,
|
|
|
|
|
+ gross_time,
|
|
|
|
|
+ tare_time,
|
|
|
|
|
+ net_time,
|
|
|
|
|
+ net_spot3_name,
|
|
|
|
|
+ sender_remark,
|
|
|
|
|
+ create_man_name,
|
|
|
|
|
+ create_time
|
|
|
|
|
+ from meter_work_measuring_instrument
|
|
|
where 1 = 1
|
|
where 1 = 1
|
|
|
<if test="railwayNo != null and railwayNo != ''">
|
|
<if test="railwayNo != null and railwayNo != ''">
|
|
|
and railway_no like '%railwayNo%'
|
|
and railway_no like '%railwayNo%'
|
|
|
</if>
|
|
</if>
|
|
|
- and forwarding_unit_no in
|
|
|
|
|
- <foreach collection="list" item="id" separator="," open="(" close=")">
|
|
|
|
|
- #{id}
|
|
|
|
|
- </foreach>
|
|
|
|
|
<if test="matterNo != null and matterNo != ''">
|
|
<if test="matterNo != null and matterNo != ''">
|
|
|
and MATTER_NO LIKE '%${matterNo}%'
|
|
and MATTER_NO LIKE '%${matterNo}%'
|
|
|
</if>
|
|
</if>
|
|
@@ -4375,7 +4468,8 @@
|
|
|
and RECEIVING_UINT_NAME LIKE '%${receivingUintName}%'
|
|
and RECEIVING_UINT_NAME LIKE '%${receivingUintName}%'
|
|
|
</if>
|
|
</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="netSpot3No != null and netSpot3No != ''">
|
|
<if test="netSpot3No != null and netSpot3No != ''">
|
|
|
and NET_SPOT3_NO LIKE '%${netSpot3No}%'
|
|
and NET_SPOT3_NO LIKE '%${netSpot3No}%'
|
|
@@ -4383,7 +4477,11 @@
|
|
|
<if test="netSpot3Name != null and netSpot3Name != ''">
|
|
<if test="netSpot3Name != null and netSpot3Name != ''">
|
|
|
and NET_SPOT3_NAME LIKE '%${netSpot3Name}%'
|
|
and NET_SPOT3_NAME LIKE '%${netSpot3Name}%'
|
|
|
</if>
|
|
</if>
|
|
|
- and value_flag != '0'
|
|
|
|
|
|
|
+ <if test="flag != null and flag != ''">
|
|
|
|
|
+ and NET_SPOT3_NAME is null
|
|
|
|
|
+ </if>
|
|
|
|
|
+ )
|
|
|
|
|
+ )
|
|
|
order by net_time desc
|
|
order by net_time desc
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|