作者 tangxvhui

暂存

... ... @@ -146,6 +146,8 @@ func (srv *MessagePersonalService) TodayMessageTaskStageAnomaly(param *command.G
if err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "检查任务里程碑异常的消息"+err.Error())
}
// 我作为任务相关方
childUser, err := userDao.AllChildUser(param.UserId)
if err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "获取下级员工"+err.Error())
... ...
... ... @@ -391,7 +391,7 @@ type TaskStageData struct {
LeaderName string
}
// 异常的里程碑任务
// 根据负责人异常的里程碑任务
func (d *TaskDao) TaskStageAnomaly(leaderId []string) ([]TaskStageData, error) {
sqlStr := `select
task_stage.id,
... ...
... ... @@ -31,7 +31,7 @@ func (d *UserDao) AllChildUser(userId int) ([]UserData1, error) {
(
select "user".id,"user".parent_id ,"user".account,"user".name, 1 as "level"
from "user"
where "user".id=3422174102828544
where "user".id=?
)
union
(
... ...