自动化立体仓库 - WMS系统
zyx
2024-02-23 d16c9ca6307adde5d4b9734c540e276477940686
src/main/resources/mapper/ViewStayTimeMapper.xml
@@ -51,10 +51,10 @@
   (
   SELECT
   GETDATE() AS today
   , CONVERT(decimal, DATEDIFF(second,man_loc_detl.create_time, GETDATE()) / 86400.0, 9) AS stay_time
   , man_loc_detl.*
   FROM man_loc_detl
   INNER JOIN man_node ON man_loc_detl.loc_no = man_node.name
   , CONVERT(decimal, DATEDIFF(second,asr_pla_detl.pakin_time, GETDATE()) / 86400.0, 9) AS stay_time
   , asr_pla_detl.*
   FROM asr_pla_detl
   INNER JOIN man_node ON asr_pla_detl.loc_no = man_node.name
   where 1=1
   <include refid="viewStayTimeConditionSql"></include>
   ) ts
@@ -72,10 +72,10 @@
   (
   SELECT
   GETDATE() AS today
   , CONVERT(decimal, DATEDIFF(second,man_loc_detl.create_time, GETDATE()) / 86400.0, 9) AS stay_time
   , man_loc_detl.*
   FROM man_loc_detl
   INNER JOIN man_node ON man_loc_detl.loc_no = man_node.name
   , CONVERT(decimal, DATEDIFF(second,asr_pla_detl.create_time, GETDATE()) / 86400.0, 9) AS stay_time
   , asr_pla_detl.*
   FROM asr_pla_detl
   INNER JOIN man_node ON asr_pla_detl.loc_no = man_node.name
   where 1=1
   <include refid="viewStayTimeConditionSql"></include>
   ) t