From 797b7188efb508aa6851b5448e3211513c2e7a63 Mon Sep 17 00:00:00 2001
From: jiazx0107 <jiazx0107@163.com>
Date: 星期日, 04 一月 2026 09:15:10 +0800
Subject: [PATCH] 提交仓库配置方法

---
 fzzy-igdss-core/src/main/java/com/fzzy/igds/service/DepotConfService.java |   41 ++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 40 insertions(+), 1 deletions(-)

diff --git a/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/DepotConfService.java b/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/DepotConfService.java
index f4a075c..255b959 100644
--- a/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/DepotConfService.java
+++ b/fzzy-igdss-core/src/main/java/com/fzzy/igds/service/DepotConfService.java
@@ -2,11 +2,13 @@
 
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
+import com.fzzy.igds.constant.Constant;
 import com.fzzy.igds.constant.RedisConst;
 import com.fzzy.igds.domain.Depot;
 import com.fzzy.igds.domain.DepotConf;
 import com.fzzy.igds.mapper.DepotConfMapper;
 import com.fzzy.igds.utils.ContextUtil;
+import com.ruoyi.common.core.domain.entity.SysUser;
 import com.ruoyi.common.core.redis.RedisCache;
 import com.ruoyi.common.utils.StringUtils;
 import lombok.extern.slf4j.Slf4j;
@@ -56,6 +58,41 @@
     }
 
     /**
+     * 鏍规嵁鐢ㄦ埛绫诲瀷鏌ヨ閰嶇疆淇℃伅
+     * @return
+     */
+    public List<DepotConf> getConfListByUserType() {
+        //鑾峰彇褰撳墠鐧诲綍浜�
+        SysUser user = ContextUtil.getLoginUser();
+
+        QueryWrapper<DepotConf> queryWrapper = new QueryWrapper<>();
+        queryWrapper.eq("company_id", user.getCompanyId());
+
+        //鐩戠鐢ㄦ埛-榛樿鏌ョ湅鎵�鏈変俊鎭笉澧炲姞鏉′欢
+        if (Constant.USER_TYPE_10.equals(user.getUserType())) {
+            //涓嶅鍔犳潯浠�
+        }
+
+        //閾惰鐢ㄦ埛锛屾牴鎹悎鍚屾煡璇㈤摱琛屼笅鎵�鏈夊簱鍖�
+        if (Constant.USER_TYPE_20.equals(user.getUserType())) {
+
+            return this.getDeptByContract(user.getUserData());
+        }
+
+
+
+
+
+        return null;
+    }
+
+    private List<DepotConf> getDeptByContract(String userData) {
+
+        //TODO
+        return null;
+    }
+
+    /**
      * 鏇存柊淇濆瓨閰嶇疆淇℃伅
      *
      * @param conf
@@ -78,7 +115,7 @@
         }else {
             conf.setUpdateBy(ContextUtil.getLoginUserName());
             conf.setUpdateTime(new Date());
-            depotConfMapper.updateById(conf);
+            depotConfMapper.update(conf, new UpdateWrapper<DepotConf>().eq("depot_id", conf.getDepotId()));
         }
         flushConfCache(conf.getCompanyId());
     }
@@ -236,4 +273,6 @@
         updateWrapper.eq("dept_id", ContextUtil.subDeptId(null)).set("pos_x", freq);
         depotConfMapper.update(null, updateWrapper);
     }
+
+
 }

--
Gitblit v1.9.3