作者 tangxvhui

修正 判断条件

@@ -163,7 +163,7 @@ func (srv *MessagePersonalService) TodayMessageTaskStageAnomaly(param *command.G @@ -163,7 +163,7 @@ func (srv *MessagePersonalService) TodayMessageTaskStageAnomaly(param *command.G
163 } 163 }
164 // 作为上级,我的下级员工的异常里程碑 164 // 作为上级,我的下级员工的异常里程碑
165 var taskList2 []dao.TaskData3 165 var taskList2 []dao.TaskData3
166 - if len(childUserId) == 0 { 166 + if len(childUserId) > 0 {
167 taskList2, err = taskDao.TaskStageAnomalyByLeader(childUserId) 167 taskList2, err = taskDao.TaskStageAnomalyByLeader(childUserId)
168 if err != nil { 168 if err != nil {
169 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "检查任务里程碑异常的消息"+err.Error()) 169 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "检查任务里程碑异常的消息"+err.Error())
@@ -177,7 +177,7 @@ func (srv *MessagePersonalService) TodayMessageTaskStageAnomaly(param *command.G @@ -177,7 +177,7 @@ func (srv *MessagePersonalService) TodayMessageTaskStageAnomaly(param *command.G
177 } 177 }
178 // 作为上级, 我的下下级员工的异常里程碑 178 // 作为上级, 我的下下级员工的异常里程碑
179 var taskList3 []dao.TaskData3 179 var taskList3 []dao.TaskData3
180 - if len(childUserId) == 0 { 180 + if len(childUserId) > 0 {
181 taskList3, err = taskDao.TaskStageAnomalyByLeader(childUserId2) 181 taskList3, err = taskDao.TaskStageAnomalyByLeader(childUserId2)
182 if err != nil { 182 if err != nil {
183 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "检查任务里程碑异常的消息"+err.Error()) 183 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "检查任务里程碑异常的消息"+err.Error())
@@ -362,7 +362,7 @@ func (srv *MessagePersonalService) TodayMessageTaskRecordAnomaly(param *command. @@ -362,7 +362,7 @@ func (srv *MessagePersonalService) TodayMessageTaskRecordAnomaly(param *command.
362 } 362 }
363 //我作为上级, 获取我的下一级的异常任务 363 //我作为上级, 获取我的下一级的异常任务
364 var taskStageList2 []dao.TaskData2 364 var taskStageList2 []dao.TaskData2
365 - if len(childUserId) == 0 { 365 + if len(childUserId) > 0 {
366 taskStageList2, err = taskDao.TaskAnomalyByLeader(childUserId, 4) 366 taskStageList2, err = taskDao.TaskAnomalyByLeader(childUserId, 4)
367 if err != nil { 367 if err != nil {
368 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "检查任务里程碑异常的消息"+err.Error()) 368 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "检查任务里程碑异常的消息"+err.Error())
@@ -376,7 +376,7 @@ func (srv *MessagePersonalService) TodayMessageTaskRecordAnomaly(param *command. @@ -376,7 +376,7 @@ func (srv *MessagePersonalService) TodayMessageTaskRecordAnomaly(param *command.
376 } 376 }
377 // 我作为上级,获取我的下下级的异常任务 377 // 我作为上级,获取我的下下级的异常任务
378 var taskStageList3 []dao.TaskData2 378 var taskStageList3 []dao.TaskData2
379 - if len(childUserId) == 0 { 379 + if len(childUserId) > 0 {
380 taskStageList3, err = taskDao.TaskAnomalyByLeader(childUserId2, 5) 380 taskStageList3, err = taskDao.TaskAnomalyByLeader(childUserId2, 5)
381 if err != nil { 381 if err != nil {
382 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "检查任务里程碑异常的消息"+err.Error()) 382 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "检查任务里程碑异常的消息"+err.Error())