‘linchangsheng’ 1 개월 전
부모
커밋
19420f7cf3
2개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      src/main/java/com/gree/mall/manager/logic/admin/AdminWebsitLogic.java
  2. BIN
      src/main/resources/template/商家导入.xlsx

+ 7 - 0
src/main/java/com/gree/mall/manager/logic/admin/AdminWebsitLogic.java

@@ -285,6 +285,13 @@ public class AdminWebsitLogic {
             if (oneP == null)
                 throw new RemoteServiceException("第"+rowIndex+"行,找不到上级商户");
 
+
+            AdminWebsit adminWebsitServiceById = adminWebsitService.getById((String) row.get(1));
+
+            if (adminWebsitServiceById != null) {
+                throw new RemoteServiceException("第"+rowIndex+"行,商家编号已存在");
+            }
+
             adminWebsit.setCompanyName(oneP.getCompanyName());
             adminWebsit.setCompanyId(oneP.getCompanyWechatId());
             adminWebsit.setWebsitId((String) row.get(1));

BIN
src/main/resources/template/商家导入.xlsx