作者 tangxvhui

更新

@@ -332,9 +332,7 @@ func (srv *MessagePersonalService) TodayMessageTaskRecordAnomaly(param *command. @@ -332,9 +332,7 @@ func (srv *MessagePersonalService) TodayMessageTaskRecordAnomaly(param *command.
332 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "检查任务里程碑异常的消息"+err.Error()) 332 return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "检查任务里程碑异常的消息"+err.Error())
333 } 333 }
334 } 334 }
335 - if err := transactionContext.CommitTransaction(); err != nil {  
336 - return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())  
337 - } 335 +
338 msgList := []adapter.MessageListAdapter{} 336 msgList := []adapter.MessageListAdapter{}
339 for _, val := range taskStageList { 337 for _, val := range taskStageList {
340 s := fmt.Sprintf("【您负责的项目【%s】已超过N日未反馈进度,请前往该战略任务进行反馈。】", val.Name) 338 s := fmt.Sprintf("【您负责的项目【%s】已超过N日未反馈进度,请前往该战略任务进行反馈。】", val.Name)
@@ -444,7 +444,7 @@ func (d *TaskDao) TaskAnomaly(leaderId []string, anomaly int) ([]TaskStageData, @@ -444,7 +444,7 @@ func (d *TaskDao) TaskAnomaly(leaderId []string, anomaly int) ([]TaskStageData,
444 task.leader ->>'name' as leader_name, 444 task.leader ->>'name' as leader_name,
445 task.anomaly 445 task.anomaly
446 from task 446 from task
447 - where task.anomaly >=? and task.leader ->'id'='?' ` 447 + where task.anomaly >=? and task.leader ->'id' in(?) `
448 result := []TaskStageData{} 448 result := []TaskStageData{}
449 tx := d.transactionContext.PgTx 449 tx := d.transactionContext.PgTx
450 _, err := tx.Query(&result, sqlStr, anomaly, pg.In(leaderId)) 450 _, err := tx.Query(&result, sqlStr, anomaly, pg.In(leaderId))