‘linchangsheng’ 4 달 전
부모
커밋
94f4759370
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      mall-server-api/src/main/java/com/gree/mall/manager/logic/admin/AdminDeptLogic.java

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

@@ -277,7 +277,8 @@ public class AdminDeptLogic {
             adminDeptWebsit.setWebsitId((String)row.get(0));
             adminDeptWebsit.setWebsitName((String)row.get(1));
 
-
+            adminDeptWebsitService.lambdaUpdate().eq(AdminDeptWebsit::getAdminDeptId,adminDept1.getAdminDeptId())
+                    .eq(AdminDeptWebsit::getWebsitId,adminDeptWebsit.getWebsitId()).remove();
             adminDeptWebsits.add(adminDeptWebsit);
 
         }