From 6f01b51fc0770fda7787076caf0314be7a7f6656 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期五, 27 六月 2025 10:58:21 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java
index 59f1e23..fd9c9f7 100644
--- a/src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java
@@ -20,7 +20,10 @@
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 
+import java.text.SimpleDateFormat;
+import java.time.LocalDate;
 import java.util.ArrayList;
+import java.util.Calendar;
 import java.util.Date;
 import java.util.List;
 
@@ -619,8 +622,13 @@
 
     @Override
     public int syncAnfmeToWeight() {
+        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+        Date date = new Date(2025, Calendar.JULY, 24);
+        Date date2 = new Date(2025, Calendar.JULY, 24, 23, 59, 59);
         List<LocDetl> locDetls = locDetlService.selectList(new EntityWrapper<LocDetl>()
-                .isNull("weight"));
+                .ge("appe_time", format.format(date))
+                .le("appe_time", format.format(date2))
+        );
 
         int i = 0;
         for (LocDetl locDetl : locDetls) {

--
Gitblit v1.9.1