|
@@ -233,6 +233,10 @@ public class CompanyUserController extends AppBaseController {
|
|
|
throw new ServiceException("申请更换归属销售不存在");
|
|
|
}
|
|
|
|
|
|
+ if (Objects.equals(fromUser.getUserId(), toUser.getUserId())) {
|
|
|
+ throw new ServiceException("申请更换归属销售不能与原归属销售相同");
|
|
|
+ }
|
|
|
+
|
|
|
if (param.getType() != 0 && param.getType() != 1) {
|
|
|
throw new ServiceException("类型不正确");
|
|
|
}
|