From a3fe79e605b07a5a908599aaa830a0860e9423d2 Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期三, 14 五月 2025 17:34:27 +0800
Subject: [PATCH] 修改

---
 src/main/java/com/example/client/service/HandoverAddOrUpdate.java |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/example/client/service/HandoverAddOrUpdate.java b/src/main/java/com/example/client/service/HandoverAddOrUpdate.java
index 1106bfa..e5155c7 100644
--- a/src/main/java/com/example/client/service/HandoverAddOrUpdate.java
+++ b/src/main/java/com/example/client/service/HandoverAddOrUpdate.java
@@ -2,6 +2,7 @@
 
 import com.example.client.dto.ColumnDto;
 import com.example.client.dto.JComboBoxItem;
+import com.example.client.utils.BoxIteUtils;
 import com.example.client.utils.CommonTable;
 import com.example.client.utils.GBC;
 import com.example.client.utils.UploadFile;
@@ -12,7 +13,7 @@
 import com.example.server.progressTrack.service.DjJdgzTrackRecordService;
 import com.example.server.sysOss.model.SysOss;
 import com.example.server.user.model.SysUser;
-import com.example.server.utils.CacheUtils;
+import com.example.server.utils.UserAndSiteUtils;
 import org.apache.commons.lang3.StringUtils;
 import org.jdesktop.swingx.JXDatePicker;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -64,7 +65,7 @@
         JLabel JLabel0 = new JLabel("宸ョ▼");
         JComboBox<JComboBoxItem> comboBox = new JComboBox<>(projectList);
         if(data.getLevel1NetworkId()!=null){
-            comboBox.setSelectedItem(new JComboBoxItem(data.getLevel1NetworkId(),data.getProjectName()));
+            comboBox.setSelectedItem(BoxIteUtils.GetSelectItemById(projectList, data.getLevel1NetworkId()));
         }
 
         JLabel JLabel1 = new JLabel("浜ゆ柟T闃�");
@@ -177,7 +178,7 @@
         saveButton.addActionListener(new ActionListener() {
             @Override
             public void actionPerformed(ActionEvent e) {
-                SysUser user = (SysUser) CacheUtils.get("user","user");
+                SysUser user = (SysUser) UserAndSiteUtils.get("user","user");
                 if (user==null){
                     JOptionPane.showMessageDialog(null, "鐢ㄦ埛澶辨晥璇烽��鍑哄苟閲嶆柊鐧诲綍", "鎻愮ず", JOptionPane.WARNING_MESSAGE);
                     return;

--
Gitblit v1.9.1