From d06b9e4f34481b3336599a232c8b52bd04955297 Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期五, 14 八月 2026 15:55:20 +0800
Subject: [PATCH] 解决修改商机时,商机产品的辅单位没有回显问题

---
 yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/api/dept/DeptApiImpl.java |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/api/dept/DeptApiImpl.java b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/api/dept/DeptApiImpl.java
index a37dc1b..4f9b527 100644
--- a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/api/dept/DeptApiImpl.java
+++ b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/api/dept/DeptApiImpl.java
@@ -2,6 +2,7 @@
 
 import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
 import cn.iocoder.yudao.module.system.api.dept.dto.DeptRespDTO;
+import cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept.DeptListReqVO;
 import cn.iocoder.yudao.module.system.dal.dataobject.dept.DeptDO;
 import cn.iocoder.yudao.module.system.service.dept.DeptService;
 import org.springframework.stereotype.Service;
@@ -13,7 +14,7 @@
 /**
  * 閮ㄩ棬 API 瀹炵幇绫�
  *
- * @author 鑺嬮亾婧愮爜
+ * @author 瓒呯骇绠$悊鍛�
  */
 @Service
 public class DeptApiImpl implements DeptApi {
@@ -34,6 +35,12 @@
     }
 
     @Override
+    public List<DeptRespDTO> getDeptList() {
+        List<DeptDO> depts = deptService.getDeptList(new DeptListReqVO());
+        return BeanUtils.toBean(depts, DeptRespDTO.class);
+    }
+
+    @Override
     public void validateDeptList(Collection<Long> ids) {
         deptService.validateDeptList(ids);
     }

--
Gitblit v1.9.3