删除无用项目
This commit is contained in:
@@ -9,6 +9,8 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.honeycombis.honeycom.common.core.exception.ErrorType;
|
||||
import com.honeycombis.honeycom.common.core.exception.HoneycomException;
|
||||
import com.honeycombis.honeycom.common.data.tenant.TenantContextHolder;
|
||||
import com.honeycombis.honeycom.common.security.service.HoneycomUser;
|
||||
import com.honeycombis.honeycom.common.security.util.SecurityUtils;
|
||||
import com.honeycombis.honeycom.tenant.constants.TenantConstants;
|
||||
import com.honeycombis.honeycom.tenant.constants.TenantErrorType;
|
||||
import com.honeycombis.honeycom.tenant.dto.SysRoleAddDTO;
|
||||
@@ -229,6 +231,9 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRoleEntity
|
||||
|
||||
SysRoleEntity sysRole = new SysRoleEntity();
|
||||
BeanUtils.copyProperties(sysRoleAddDTO, sysRole);
|
||||
if (sysRole.getCreateBy() == null) {
|
||||
sysRole.setCreateBy(0L);
|
||||
}
|
||||
if (!this.save(sysRole)) {
|
||||
throw new HoneycomException(TenantErrorType.ROLE_ADD_FILED.getCode());
|
||||
}
|
||||
|
||||
@@ -407,6 +407,9 @@ public class SysStaffServiceImpl extends ServiceImpl<SysStaffMapper, SysStaffEnt
|
||||
if (StringUtils.isNotBlank(sysStaffQueryDTO.getEmail())) {
|
||||
queryWrapper.like(SysStaffEntity::getEmail, sysStaffQueryDTO.getEmail());
|
||||
}
|
||||
if (ObjectUtil.isNotEmpty(sysStaffQueryDTO.getUserId())) {
|
||||
queryWrapper.eq(SysStaffEntity::getUserId, sysStaffQueryDTO.getUserId());
|
||||
}
|
||||
if (!Objects.isNull(sysStaffQueryDTO.getDeptId())) {
|
||||
List<Long> deptTreeStaffIds = this.getDeptTreeStaffIds(sysStaffQueryDTO.getDeptId());
|
||||
if (CollectionUtils.isEmpty(deptTreeStaffIds)) {
|
||||
|
||||
Reference in New Issue
Block a user