删除无用项目

This commit is contained in:
2026-01-16 16:20:24 +08:00
parent 26742060e6
commit dc1f3fb64b
1557 changed files with 113 additions and 134166 deletions

View File

@@ -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());
}

View File

@@ -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)) {