|
@@ -106,9 +106,7 @@ public class AdminWebsitLogic {
|
|
|
if(count > 0){
|
|
|
throw new RemoteServiceException("部门名称或部门编号已存在");
|
|
|
}
|
|
|
- if(adminWebsit.getParentId() == 0){
|
|
|
- throw new RemoteServiceException("请选择父部门");
|
|
|
- }
|
|
|
+
|
|
|
if (StringUtil.isEmpty(adminWebsit.getCompanyWechatId()))
|
|
|
throw new RemoteServiceException("上级商家不能为空");
|
|
|
AdminCompanyWechat adminCompanyWechat = adminCompanyWechatService.getById(adminWebsit.getPayWorkerCodeId());
|
|
@@ -155,10 +153,6 @@ public class AdminWebsitLogic {
|
|
|
if(count > 0){
|
|
|
throw new RemoteServiceException("部门名称或部门编号已存在");
|
|
|
}
|
|
|
- if(adminWebsit.getParentId() == 0){
|
|
|
- throw new RemoteServiceException("请选择父部门");
|
|
|
-
|
|
|
- }
|
|
|
|
|
|
if (StringUtil.isEmpty(adminWebsit.getCompanyWechatId()))
|
|
|
throw new RemoteServiceException("上级商家不能为空");
|