正在显示
3 个修改的文件
包含
4 行增加
和
2 行删除
@@ -146,6 +146,8 @@ func (srv *MessagePersonalService) TodayMessageTaskStageAnomaly(param *command.G | @@ -146,6 +146,8 @@ func (srv *MessagePersonalService) TodayMessageTaskStageAnomaly(param *command.G | ||
146 | if err != nil { | 146 | if err != nil { |
147 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "检查任务里程碑异常的消息"+err.Error()) | 147 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "检查任务里程碑异常的消息"+err.Error()) |
148 | } | 148 | } |
149 | + // 我作为任务相关方 | ||
150 | + | ||
149 | childUser, err := userDao.AllChildUser(param.UserId) | 151 | childUser, err := userDao.AllChildUser(param.UserId) |
150 | if err != nil { | 152 | if err != nil { |
151 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取下级员工"+err.Error()) | 153 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取下级员工"+err.Error()) |
@@ -391,7 +391,7 @@ type TaskStageData struct { | @@ -391,7 +391,7 @@ type TaskStageData struct { | ||
391 | LeaderName string | 391 | LeaderName string |
392 | } | 392 | } |
393 | 393 | ||
394 | -// 异常的里程碑任务 | 394 | +// 根据负责人异常的里程碑任务 |
395 | func (d *TaskDao) TaskStageAnomaly(leaderId []string) ([]TaskStageData, error) { | 395 | func (d *TaskDao) TaskStageAnomaly(leaderId []string) ([]TaskStageData, error) { |
396 | sqlStr := `select | 396 | sqlStr := `select |
397 | task_stage.id, | 397 | task_stage.id, |
@@ -31,7 +31,7 @@ func (d *UserDao) AllChildUser(userId int) ([]UserData1, error) { | @@ -31,7 +31,7 @@ func (d *UserDao) AllChildUser(userId int) ([]UserData1, error) { | ||
31 | ( | 31 | ( |
32 | select "user".id,"user".parent_id ,"user".account,"user".name, 1 as "level" | 32 | select "user".id,"user".parent_id ,"user".account,"user".name, 1 as "level" |
33 | from "user" | 33 | from "user" |
34 | - where "user".id=3422174102828544 | 34 | + where "user".id=? |
35 | ) | 35 | ) |
36 | union | 36 | union |
37 | ( | 37 | ( |
-
请 注册 或 登录 后发表评论