|
@@ -870,14 +870,15 @@
|
|
<select id="selectResultIdByOrderNoAndMaterialId" parameterType="map" resultType="java.util.Map">
|
|
<select id="selectResultIdByOrderNoAndMaterialId" parameterType="map" resultType="java.util.Map">
|
|
select TWR.WEIGHT_TASK_RESULT_ID "weightTaskResultId",
|
|
select TWR.WEIGHT_TASK_RESULT_ID "weightTaskResultId",
|
|
TWR.RESULT_TARE_WEIGHT "resultTareWeight",
|
|
TWR.RESULT_TARE_WEIGHT "resultTareWeight",
|
|
- TWR.TARE_SEGMENT_SQE "tareSegmentSqe"
|
|
|
|
|
|
+ TWR.TARE_SEGMENT_SQE "tareSegmentSqe",
|
|
|
|
+ TWR.RESULT_NET_WEIGHT "netWeight"
|
|
from OMSTRUCK_ORDER OO
|
|
from OMSTRUCK_ORDER OO
|
|
left join TMSTRUCK_TOTAL_RESULT TTR
|
|
left join TMSTRUCK_TOTAL_RESULT TTR
|
|
on TTR.ORDER_ID = OO.ORDER_ID
|
|
on TTR.ORDER_ID = OO.ORDER_ID
|
|
left join TMSTRUCK_WEIGHT_RESULT TWR
|
|
left join TMSTRUCK_WEIGHT_RESULT TWR
|
|
on TWR.RESULT_TOTAL_ID = TTR.RESULT_TOTAL_ID
|
|
on TWR.RESULT_TOTAL_ID = TTR.RESULT_TOTAL_ID
|
|
- where TWR.RESULT_NET_WEIGHT is null
|
|
|
|
- and OO.ORDER_NUMBER = #{orderNumber}
|
|
|
|
|
|
+ where
|
|
|
|
+ OO.ORDER_NUMBER = #{orderNumber}
|
|
and TWR.MATERIAL_ID = #{materialId}
|
|
and TWR.MATERIAL_ID = #{materialId}
|
|
</select>
|
|
</select>
|
|
|
|
|