|
@@ -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));
|