feat(performance): 添加辅导员管理成果绩效相关查询
- 新增学务初审、书记审核、科室复核和学工处长终审的待办查询 - 在现有的绩效查询基础上增加了成果绩效的统计 - 通过联合查询和条件筛选,实现了对不同审核阶段的待办任务计数
This commit is contained in:
@@ -644,6 +644,12 @@
|
||||
from sys_performance as a
|
||||
left join sys_user as b on a.credit_pass = b.user_name
|
||||
where a.xwstatus IS NULL and b.dept_id = #{id}
|
||||
# 宁博-辅导员管理--成果绩效----(第1步:学务初审)
|
||||
union
|
||||
select concat('cg-',count(a.check_id)) as `all`
|
||||
from sys_teacher_achievementcheck as a
|
||||
left join sys_user as b on a.teacher_id = b.user_name
|
||||
where a.check_status = 1 and b.dept_id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="countFdyUnDo" resultType="String" parameterType="String">
|
||||
@@ -756,6 +762,12 @@
|
||||
from sys_performance as a
|
||||
where (a.shstatus IS NOT NULL and a.ksstatus IS NULL) -- 科室复核待办
|
||||
or (a.ksstatus IS NOT NULL and a.xgstatus IS NULL) -- 学工处长待办
|
||||
# 宁博-辅导员管理--成果绩效----待办 (第3步:科室复核 和 第4步:学工处长终审)
|
||||
union
|
||||
select concat('cg-',count(a.check_id)) as `all`
|
||||
from sys_teacher_achievementcheck as a
|
||||
left join sys_user as b on a.teacher_id = b.user_name
|
||||
where a.check_status in (3, 4)
|
||||
</select>
|
||||
|
||||
|
||||
@@ -791,6 +803,12 @@
|
||||
from sys_performance as a
|
||||
left join sys_user as b on a.credit_pass = b.user_name
|
||||
where a.xwstatus IS NOT NULL and a.shstatus IS NULL and b.dept_id = #{id}
|
||||
# 宁博-辅导员管理--成果绩效----待办 (第2步:书记审核)
|
||||
union
|
||||
select concat('cg-',count(a.check_id)) as `all`
|
||||
from sys_teacher_achievementcheck as a
|
||||
left join sys_user as b on a.teacher_id = b.user_name
|
||||
where a.check_status = 2 and b.dept_id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user