|
@@ -156,10 +156,10 @@ public class EmployeeServiceImpl extends BaseServiceImpl<Integer, Employee> impl
|
|
* @param userId 用户id
|
|
* @param userId 用户id
|
|
*/
|
|
*/
|
|
private void addUserTenant(List<Integer> tenantIds, Integer userTenantId, Integer userId) {
|
|
private void addUserTenant(List<Integer> tenantIds, Integer userTenantId, Integer userId) {
|
|
- if (CollectionUtils.isEmpty(tenantIds)) {
|
|
|
|
- throw new BizException("平台账号必须指定一个机构");
|
|
|
|
- }
|
|
|
|
if (Objects.nonNull(userTenantId) && userTenantId == -1) {
|
|
if (Objects.nonNull(userTenantId) && userTenantId == -1) {
|
|
|
|
+ if (CollectionUtils.isEmpty(tenantIds)) {
|
|
|
|
+ throw new BizException("平台账号必须指定一个机构!");
|
|
|
|
+ }
|
|
Date now = new Date();
|
|
Date now = new Date();
|
|
tenantIds.forEach(t -> {
|
|
tenantIds.forEach(t -> {
|
|
SysUserTenant userTenant = new SysUserTenant();
|
|
SysUserTenant userTenant = new SysUserTenant();
|