|
@@ -20,7 +20,7 @@ func TaskSendSummaryEvaluationV2() error { |
|
@@ -20,7 +20,7 @@ func TaskSendSummaryEvaluationV2() error { |
20
|
}()
|
20
|
}()
|
21
|
var newPublisher summaryEvaluationPublisher
|
21
|
var newPublisher summaryEvaluationPublisher
|
22
|
for {
|
22
|
for {
|
23
|
- projectList, err := sendSummaryEvaluationV2()
|
23
|
+ projectList, err := getPrepareSummaryEvaluation()
|
24
|
if err != nil {
|
24
|
if err != nil {
|
25
|
return err
|
25
|
return err
|
26
|
}
|
26
|
}
|
|
@@ -36,7 +36,7 @@ func TaskSendSummaryEvaluationV2() error { |
|
@@ -36,7 +36,7 @@ func TaskSendSummaryEvaluationV2() error { |
36
|
return nil
|
36
|
return nil
|
37
|
}
|
37
|
}
|
38
|
|
38
|
|
39
|
-func sendSummaryEvaluationV2() ([]*domain.EvaluationProject, error) {
|
39
|
+func getPrepareSummaryEvaluation() ([]*domain.EvaluationProject, error) {
|
40
|
transactionContext, err := factory.CreateTransactionContext(nil)
|
40
|
transactionContext, err := factory.CreateTransactionContext(nil)
|
41
|
if err != nil {
|
41
|
if err != nil {
|
42
|
return nil, err
|
42
|
return nil, err
|
|
@@ -55,7 +55,7 @@ func sendSummaryEvaluationV2() ([]*domain.EvaluationProject, error) { |
|
@@ -55,7 +55,7 @@ func sendSummaryEvaluationV2() ([]*domain.EvaluationProject, error) { |
55
|
"endTime": time.Now(),
|
55
|
"endTime": time.Now(),
|
56
|
"summaryState": domain.ProjectSummaryStateNo,
|
56
|
"summaryState": domain.ProjectSummaryStateNo,
|
57
|
"state": domain.ProjectStateEnable,
|
57
|
"state": domain.ProjectStateEnable,
|
58
|
- "limit": 500,
|
58
|
+ "limit": 200,
|
59
|
}, "template")
|
59
|
}, "template")
|
60
|
if err != nil {
|
60
|
if err != nil {
|
61
|
return nil, fmt.Errorf("获取可用的项目数据,%s", err)
|
61
|
return nil, fmt.Errorf("获取可用的项目数据,%s", err)
|