‘linchangsheng’ 9 tháng trước cách đây
mục cha
commit
d12a5ffd27

+ 4 - 0
mall-server-api/src/main/java/com/gree/mall/manager/logic/admin/AdminDeptLogic.java

@@ -110,6 +110,10 @@ public class AdminDeptLogic {
     }
 
     public void add(AdminDept adminDept) {
+        AdminDept adminDeptServiceById = adminDeptService.getById(adminDept.getPId());
+
+        adminDept.setCompanyWechatId(adminDeptServiceById.getCompanyWechatId());
+        adminDept.setCompanyWechatName(adminDeptServiceById.getCompanyWechatName());
         adminDept.insert();
     }