feat(oa): 任务列表增加部门名称字段

- 在 SysOaTaskMapper.xml 中添加部门名称查询字段
- 在 SysOaTaskVo 中增加 deptName 属性用于存储部门名称
This commit is contained in:
2025-09-02 09:33:20 +08:00
parent 7d0a98c073
commit 3c9d1643e4
2 changed files with 4 additions and 0 deletions

View File

@@ -214,4 +214,6 @@ public class SysOaTaskVo {
//project_code
private String projectCode;
//部门名称
private String deptName;
}

View File

@@ -82,6 +82,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
sop.project_code,
su1.nick_name AS createUserNickName,
su2.nick_name AS workerNickName,
sd.dept_name AS deptName,
IF(
sot.completed_time IS NULL,
IF(
@@ -113,6 +114,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN sys_user su1 ON su1.user_id = sot.create_user_id
LEFT JOIN sys_user su2 ON su2.user_id = sot.worker_id
LEFT JOIN sys_oa_project sop ON sop.project_id = sot.project_id
LEFT JOIN sys_dept sd ON sd.dept_id = su2.dept_id
${ew.getCustomSqlSegment}
</select>