wangzhuo 1 year ago
parent
commit
98d231703a

+ 2 - 2
ruoyi-admin/src/main/java/com/ruoyi/web/controller/iot/service/impl/OrderServiceImpl.java

@@ -42,10 +42,10 @@ public class OrderServiceImpl implements IOrderService {
             condition += "and delivery_cycle = " + order.getDeliveryCycle();
         }
         if (!ObjectUtils.isEmpty(order.getStartTime())) {
-            condition += "and start_time >= " + order.getStartTime();
+            condition += "and start_time >= '" + order.getStartTime() + "'";
         }
         if (!ObjectUtils.isEmpty(order.getEndTime())) {
-            condition += "and end_time <= " + order.getEndTime();
+            condition += "and end_time <= '" + order.getEndTime() + "'";
         }
         Integer count = 0;
         try {