...
|
...
|
@@ -172,7 +172,7 @@ func (srv *MessagePersonalService) TodayMessageTaskStageAnomaly(param *command.G |
|
|
// 针对上上级
|
|
|
var taskStageList3 []dao.TaskStageData
|
|
|
if len(childUserId) == 0 {
|
|
|
taskStageList2, err = taskDao.TaskStageAnomaly(childUserId2)
|
|
|
taskStageList3, err = taskDao.TaskStageAnomaly(childUserId2)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "检查任务里程碑异常的消息"+err.Error())
|
|
|
}
|
...
|
...
|
@@ -189,7 +189,7 @@ func (srv *MessagePersonalService) TodayMessageTaskStageAnomaly(param *command.G |
|
|
payloadStr, _ := json.Marshal(payload)
|
|
|
newMessage := domain.MessagePersonal{
|
|
|
Id: 0,
|
|
|
Types: domain.MessageTypesOther,
|
|
|
Types: domain.MessageTypesTaskStage,
|
|
|
TargetUserId: param.UserId,
|
|
|
ReadFlag: domain.MessageIsRead,
|
|
|
Title: s,
|
...
|
...
|
@@ -214,7 +214,7 @@ func (srv *MessagePersonalService) TodayMessageTaskStageAnomaly(param *command.G |
|
|
payloadStr, _ := json.Marshal(payload)
|
|
|
newMessage := domain.MessagePersonal{
|
|
|
Id: 0,
|
|
|
Types: domain.MessageTypesOther,
|
|
|
Types: domain.MessageTypesTaskStage,
|
|
|
TargetUserId: param.UserId,
|
|
|
ReadFlag: domain.MessageIsRead,
|
|
|
Title: s,
|
...
|
...
|
@@ -239,7 +239,7 @@ func (srv *MessagePersonalService) TodayMessageTaskStageAnomaly(param *command.G |
|
|
payloadStr, _ := json.Marshal(payload)
|
|
|
newMessage := domain.MessagePersonal{
|
|
|
Id: 0,
|
|
|
Types: domain.MessageTypesOther,
|
|
|
Types: domain.MessageTypesTaskStage,
|
|
|
TargetUserId: param.UserId,
|
|
|
ReadFlag: domain.MessageIsRead,
|
|
|
Title: s,
|
...
|
...
|
@@ -320,7 +320,7 @@ func (srv *MessagePersonalService) TodayMessageTaskRecordAnomaly(param *command. |
|
|
}
|
|
|
}
|
|
|
// 针对上级
|
|
|
var taskStageList2 []dao.TaskStageData
|
|
|
var taskStageList2 []dao.TaskData2
|
|
|
if len(childUserId) == 0 {
|
|
|
taskStageList2, err = taskDao.TaskAnomaly(childUserId, 4)
|
|
|
if err != nil {
|
...
|
...
|
@@ -334,9 +334,9 @@ func (srv *MessagePersonalService) TodayMessageTaskRecordAnomaly(param *command. |
|
|
}
|
|
|
}
|
|
|
// 针对上上级
|
|
|
var taskStageList3 []dao.TaskStageData
|
|
|
var taskStageList3 []dao.TaskData2
|
|
|
if len(childUserId) == 0 {
|
|
|
taskStageList2, err = taskDao.TaskAnomaly(childUserId2, 5)
|
|
|
taskStageList3, err = taskDao.TaskAnomaly(childUserId2, 5)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "检查任务里程碑异常的消息"+err.Error())
|
|
|
}
|
...
|
...
|
@@ -354,7 +354,7 @@ func (srv *MessagePersonalService) TodayMessageTaskRecordAnomaly(param *command. |
|
|
payloadStr, _ := json.Marshal(payload)
|
|
|
newMessage := domain.MessagePersonal{
|
|
|
Id: 0,
|
|
|
Types: domain.MessageTypesOther,
|
|
|
Types: domain.MessageTypesTaskRecord,
|
|
|
TargetUserId: param.UserId,
|
|
|
ReadFlag: domain.MessageIsRead,
|
|
|
Title: s,
|
...
|
...
|
@@ -379,7 +379,7 @@ func (srv *MessagePersonalService) TodayMessageTaskRecordAnomaly(param *command. |
|
|
payloadStr, _ := json.Marshal(payload)
|
|
|
newMessage := domain.MessagePersonal{
|
|
|
Id: 0,
|
|
|
Types: domain.MessageTypesOther,
|
|
|
Types: domain.MessageTypesTaskRecord,
|
|
|
TargetUserId: param.UserId,
|
|
|
ReadFlag: domain.MessageIsRead,
|
|
|
Title: s,
|
...
|
...
|
@@ -404,7 +404,7 @@ func (srv *MessagePersonalService) TodayMessageTaskRecordAnomaly(param *command. |
|
|
payloadStr, _ := json.Marshal(payload)
|
|
|
newMessage := domain.MessagePersonal{
|
|
|
Id: 0,
|
|
|
Types: domain.MessageTypesOther,
|
|
|
Types: domain.MessageTypesTaskRecord,
|
|
|
TargetUserId: param.UserId,
|
|
|
ReadFlag: domain.MessageIsRead,
|
|
|
Title: s,
|
...
|
...
|
|