...
|
...
|
@@ -504,3 +504,30 @@ func (srv *SummaryEvaluationService) GetTargetUserCycleList(param *command.Query |
|
|
}
|
|
|
return tool_funs.SimpleWrapGridMap(int64(cnt), cycleList), nil
|
|
|
}
|
|
|
|
|
|
// 自评小结详情
|
|
|
func (srv *SummaryEvaluationService) CountEvaluationSelfLevel(param *command.QueryEvaluationInfo) (*adapter.EvaluationInfoAdapter, error) {
|
|
|
|
|
|
evaluationInfo, err := srv.GetEvaluationSelf(param)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
|
|
|
_ = evaluationInfo
|
|
|
//TODO 组装等级数量统计
|
|
|
transactionContext, err := factory.CreateTransactionContext(nil)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
|
}
|
|
|
if err := transactionContext.StartTransaction(); err != nil {
|
|
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
|
}
|
|
|
defer func() {
|
|
|
_ = transactionContext.RollbackTransaction()
|
|
|
}()
|
|
|
|
|
|
if err := transactionContext.CommitTransaction(); err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
return nil, nil
|
|
|
} |
...
|
...
|
|