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 {