wangzhuo 1 سال پیش
والد
کامیت
98d231703a
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/iot/service/impl/OrderServiceImpl.java

+ 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 {