作者 tangxvhui

暂存

@@ -36,14 +36,6 @@ func (srv StaffAssessServeice) SearchAssessTaskMeV2(param *query.SearchAssessMeQ @@ -36,14 +36,6 @@ func (srv StaffAssessServeice) SearchAssessTaskMeV2(param *query.SearchAssessMeQ
36 limit = param.PageSize 36 limit = param.PageSize
37 } 37 }
38 offset = (param.PageNumber - 1) * param.PageSize 38 offset = (param.PageNumber - 1) * param.PageSize
39 - // assessCycleList, err := staffAssessTaskRepo.SearchAssessCycleMe(param.UserId, param.CompanyId, limit, offset)  
40 - // if err != nil {  
41 - // return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "查询评估周期"+err.Error())  
42 - // }  
43 - // cnt, err := staffAssessTaskRepo.CountAssessTaskMe(param.UserId, param.CompanyId)  
44 - // if err != nil {  
45 - // return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "查询评估周期"+err.Error())  
46 - // }  
47 39
48 assessCycleList, cnt, err := staffAssessDao.SearchExecutorAssessBeforeNow(param.UserId, param.CompanyId, limit, offset) 40 assessCycleList, cnt, err := staffAssessDao.SearchExecutorAssessBeforeNow(param.UserId, param.CompanyId, limit, offset)
49 if err != nil { 41 if err != nil {
@@ -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)