|
|
package notify
|
|
|
|
|
|
import (
|
|
|
"time"
|
|
|
|
|
|
"github.com/linmadan/egglib-go/core/application"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/factory"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/notify/command"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain"
|
|
|
)
|
|
|
|
|
|
// 个人信息提示
|
...
|
...
|
@@ -28,8 +31,19 @@ func (srv *MessagePersonalService) TodayMessageSummaryEvaluationSelf(param *comm |
|
|
defer func() {
|
|
|
_ = transactionContext.RollbackTransaction()
|
|
|
}()
|
|
|
// nowTime := time.Now()
|
|
|
|
|
|
nowTime := time.Now()
|
|
|
evaluationRepo := factory.CreateSummaryEvaluationRepository(map[string]interface{}{
|
|
|
"transactionContext": transactionContext,
|
|
|
})
|
|
|
_, evaluationList, err := evaluationRepo.Find(map[string]interface{}{
|
|
|
"targetUserId": param.UserId,
|
|
|
"types": domain.EvaluationSelf,
|
|
|
"beginTime": nowTime,
|
|
|
"endTime": nowTime,
|
|
|
"limit": 20,
|
|
|
})
|
|
|
_ = evaluationList
|
|
|
if err := transactionContext.CommitTransaction(); err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
...
|
...
|
|