|
@@ -911,6 +911,51 @@
|
|
|
|
|
|
</select>
|
|
|
|
|
|
+ <!--查询已派车车数-->
|
|
|
+ <select id="querySentCarNumber" resultType="java.lang.Integer">
|
|
|
+ select
|
|
|
+ count(*) ORDER_ID
|
|
|
+ from OMSTRUCK_ORDER OO
|
|
|
+ where OO.ORDER_TYPE=1
|
|
|
+ and to_char(OO.INSERT_TIME,'yyyy-mm-dd hh24:mi:ss')
|
|
|
+ between to_char(trunc(sysdate,'dd'),'yyyy-mm-dd hh24:mi:ss')
|
|
|
+ and to_char(trunc(sysdate,'dd')+23/24+59/24/60+59/24/60/60,'yyyy-mm-dd hh24:mi:ss')
|
|
|
+ </select>
|
|
|
+ <!--查询已扫码进厂车数-->
|
|
|
+ <select id="queryIntoFactoryNumber" resultType="java.lang.Integer">
|
|
|
+ select COUNT(*) RESULT_ID
|
|
|
+ from OMSTRUCK_ORDER OO
|
|
|
+ LEFT JOIN TMSTRUCK_TOTAL_RESULT TTR
|
|
|
+ ON TTR.ORDER_ID=OO.ORDER_ID
|
|
|
+ LEFT JOIN TMSTRUCK_ENFACTORY_RESULT TER
|
|
|
+ ON TER.RESULT_TOTAL_ID=TTR.RESULT_TOTAL_ID
|
|
|
+ LEFT JOIN TMSTRUCK_LEAVE_FACTORY_RESULT TLFR
|
|
|
+ ON TLFR.RESULT_TOTAL_ID=TTR.RESULT_TOTAL_ID
|
|
|
+ where OO.ORDER_TYPE =1
|
|
|
+ and TER.INSERT_TIME IS NOT NULL
|
|
|
+ and to_char(OO.INSERT_TIME,'yyyy-mm-dd hh24:mi:ss')
|
|
|
+ between to_char(trunc(sysdate,'dd'),'yyyy-mm-dd hh24:mi:ss')
|
|
|
+ and to_char(trunc(sysdate,'dd')+23/24+59/24/60+59/24/60/60,'yyyy-mm-dd hh24:mi:ss')
|
|
|
+ </select>
|
|
|
+ <!--查询已扫码出厂车数-->
|
|
|
+ <select id="queryLeaveFactoryNumber" resultType="java.lang.Integer">
|
|
|
+ select COUNT(*) RESULT_ID
|
|
|
+ from OMSTRUCK_ORDER OO
|
|
|
+ LEFT JOIN TMSTRUCK_TOTAL_RESULT TTR
|
|
|
+ ON TTR.ORDER_ID=OO.ORDER_ID
|
|
|
+ LEFT JOIN TMSTRUCK_ENFACTORY_RESULT TER
|
|
|
+ ON TER.RESULT_TOTAL_ID=TTR.RESULT_TOTAL_ID
|
|
|
+ LEFT JOIN TMSTRUCK_LEAVE_FACTORY_RESULT TLFR
|
|
|
+ ON TLFR.RESULT_TOTAL_ID=TTR.RESULT_TOTAL_ID
|
|
|
+ where OO.ORDER_TYPE =1
|
|
|
+ and TER.INSERT_TIME IS NOT NULL
|
|
|
+ and TLFR.INSERT_TIME IS NOT NULL
|
|
|
+ and to_char(OO.INSERT_TIME,'yyyy-mm-dd hh24:mi:ss')
|
|
|
+ between to_char(trunc(sysdate,'dd'),'yyyy-mm-dd hh24:mi:ss')
|
|
|
+ and to_char(trunc(sysdate,'dd')+23/24+59/24/60+59/24/60/60,'yyyy-mm-dd hh24:mi:ss')
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <!--查询待进厂车数-->
|
|
|
<update id="updateCancelResult" parameterType="com.steerinfo.dil.model.QmsQueueResult">
|
|
|
update QMS_QUEUE_RESULT
|
|
|
set RESULT_CANCEL_TIME = SYSDATE,
|