feat(oa): 添加项目置顶功能和任务关联项目进度字段

- 在项目实体类 SysOaProject 及其相关 BO、VO 类中增加 isTop 字段,用于标识项目是否置顶- 更新 SysOaProjectMapper.xml 查询语句,将 is_top 字段纳入查询结果
- 修改 SysOaProjectServiceImpl 中的查询逻辑,优先展示置顶项目,并按创建时间排序
- 在任务实体类 SysOaTask 及其相关 BO、VO 类中新增 trackId 字段,用于关联项目进度- 更新 SysOaTaskMapper.xml 查询语句,联查 oa_project_schedule_step 表获取节点信息
- 优化 SQL 查询中的字段对齐格式,提升可读性
This commit is contained in:
2025-10-22 14:19:55 +08:00
parent b132d297c0
commit fe7ac6a523
9 changed files with 38 additions and 8 deletions

View File

@@ -189,9 +189,10 @@ public class SysOaProjectServiceImpl implements ISysOaProjectService {
lqw.eq(bo.getSigningCompany()!= null, SysOaProject::getSigningCompany, bo.getSigningCompany());
lqw.between(params.get("beginCreateTime") != null && params.get("endCreateTime") != null,
SysOaProject::getCreateTime, params.get("beginCreateTime"), params.get("endCreateTime"));
lqw.orderByDesc(SysOaProject::getCreateTime);
//客户id作为筛选条件
lqw.eq(bo.getCustomerId() != null, SysOaProject::getCustomerId, bo.getCustomerId());
lqw.orderByDesc(SysOaProject::getIsTop) // 置顶项目优先
.orderByDesc(SysOaProject::getCreateTime); // 同状态下按创建时间倒序(多个置顶项目按创建时间排序)
return lqw;
}