|
|
@@ -126,7 +126,7 @@ public class WorkspaceService {
|
|
|
if (finalCount != null && finalCount > 0) {
|
|
|
Integer pendingFinal = jdbcTemplate.queryForObject(
|
|
|
"SELECT COUNT(*) FROM performance_score s JOIN sys_user u ON s.user_id = u.id " +
|
|
|
- "WHERE s.period_id = ? AND u.superior_id = ? AND s.type = 'SELF' AND s.status = 'SUBMITTED'",
|
|
|
+ "WHERE s.period_id = ? AND u.superior_id = ? AND s.type = 'SELF' AND s.status = 'SELF_SUBMITTED'",
|
|
|
Integer.class, period.getId(), userId);
|
|
|
if (pendingFinal != null && pendingFinal > 0) {
|
|
|
todos.add(todo("FINAL_SCORE", "完成终评", "/scores/review", period.getId(), null, pendingFinal));
|
|
|
@@ -202,7 +202,7 @@ public class WorkspaceService {
|
|
|
|
|
|
private List<WorkflowActionDto> buildAllowedActions(AssessmentPeriod period) {
|
|
|
List<WorkflowActionDto> actions = new ArrayList<>();
|
|
|
- actions.add(new WorkflowActionDto("VIEW_PERIOD", "查看周期详情", "/period", period.getId(), null));
|
|
|
+ actions.add(new WorkflowActionDto("VIEW_PERIOD", "查看周期详情", "/periods", period.getId(), null));
|
|
|
actions.add(new WorkflowActionDto("VIEW_OKR", "查看 OKR", "/okr/my", period.getId(), null));
|
|
|
actions.add(new WorkflowActionDto("VIEW_SCORES", "查看绩效", "/scores/my", period.getId(), null));
|
|
|
return actions;
|