...
|
...
|
@@ -20,7 +20,7 @@ func TaskSendSummaryEvaluationV2() error { |
|
|
}()
|
|
|
var newPublisher summaryEvaluationPublisher
|
|
|
for {
|
|
|
projectList, err := sendSummaryEvaluationV2()
|
|
|
projectList, err := getPrepareSummaryEvaluation()
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
...
|
...
|
@@ -36,7 +36,7 @@ func TaskSendSummaryEvaluationV2() error { |
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func sendSummaryEvaluationV2() ([]*domain.EvaluationProject, error) {
|
|
|
func getPrepareSummaryEvaluation() ([]*domain.EvaluationProject, error) {
|
|
|
transactionContext, err := factory.CreateTransactionContext(nil)
|
|
|
if err != nil {
|
|
|
return nil, err
|
...
|
...
|
@@ -55,7 +55,7 @@ func sendSummaryEvaluationV2() ([]*domain.EvaluationProject, error) { |
|
|
"endTime": time.Now(),
|
|
|
"summaryState": domain.ProjectSummaryStateNo,
|
|
|
"state": domain.ProjectStateEnable,
|
|
|
"limit": 500,
|
|
|
"limit": 200,
|
|
|
}, "template")
|
|
|
if err != nil {
|
|
|
return nil, fmt.Errorf("获取可用的项目数据,%s", err)
|
...
|
...
|
|