liuaogang пре 2 месеци
родитељ
комит
d17f4b9a34
1 измењених фајлова са 2 додато и 4 уклоњено
  1. 2 4
      src/main/resources/mapper/SpStatementShipUsageMonthMapper.xml

+ 2 - 4
src/main/resources/mapper/SpStatementShipUsageMonthMapper.xml

@@ -162,10 +162,8 @@
     where t.OPERATORID in
     ('sgldjzx','shgdjzxmt','shgjgwsd','shgjgwzd','shhdjzxmt','shmdjzxmt','shpdgjjzxmt','shsdjzxmt')
     AND t.conntype != '低压(标准化)'
-    AND ((T.ENDTIME <=
-    TO_DATE(#{thisDate}, 'yyyy-MM-dd HH24:mi:ss')
-    AND T.ENDTIME >=
-    TO_DATE(#{lastDate}, 'yyyy-MM-dd HH24:mi:ss')))
+    AND ((T.ENDTIME <= #{thisDate}
+    AND T.ENDTIME >= #{lastDate}))
   </select>
   <select id="selectThreeMonthsDataTotal" resultType="com.shcd.vo.SpShipUsageMonthQuarterVo">
     SELECT SUM(T.SHIP_USAGE_MONTH)        shipUsageMonth,