‘linchangsheng’ 1 månad sedan
förälder
incheckning
b76b2a37fe
1 ändrade filer med 5 tillägg och 0 borttagningar
  1. 5 0
      src/main/java/com/gree/mall/manager/logic/user/UserLogic.java

+ 5 - 0
src/main/java/com/gree/mall/manager/logic/user/UserLogic.java

@@ -31,6 +31,7 @@ import com.gree.mall.manager.plus.entity.*;
 import com.gree.mall.manager.plus.service.*;
 import com.gree.mall.manager.utils.CommonUtils;
 import com.gree.mall.manager.utils.RedisUtil;
+import com.gree.mall.manager.utils.StringUtil;
 import com.gree.mall.manager.utils.excel.ExcelUtils;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.commons.collections4.CollectionUtils;
@@ -243,6 +244,10 @@ public class UserLogic {
             throw new RemoteServiceException("请先取消内部人员");
         }
 
+        if (StringUtil.isEmpty(user.getWebsitId())) {
+            throw new RemoteServiceException("必须要有所属网点");
+        }
+
         final List<String> userIds = Collections.singletonList(userId);
         this.batchChangeServiceUser(userIds, isService);