作者 tangxvhui

更新

... ... @@ -213,6 +213,7 @@ loop:
}
}
}
//TODO 检查用户是否 超级角色
if err := transactionContext.CommitTransaction(); err != nil {
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
... ...
... ... @@ -46,7 +46,7 @@ func (rs *PermissionService) Update(in *command.UpdatePermissionCommand) (interf
return permission, nil
}
func (rs *PermissionService) Get(in *command.GetPermissionCommand) (interface{}, error) {
func (rs *PermissionService) Get(in *command.GetPermissionCommand) (*domain.Permission, error) {
transactionContext, err := factory.ValidateStartTransaction(in)
if err != nil {
return nil, err
... ...
... ... @@ -343,7 +343,7 @@ func (srv *SummaryEvaluationService) buildSummaryItemValue(itemList []*domain.Ev
Category: v.Category,
Name: v.Name,
PromptTitle: v.PromptTitle,
PromptText: v.PromptText,
PromptText: "",
EntryItems: v.EntryItems,
RuleType: v.RuleType,
Rule: v.Rule,
... ... @@ -355,12 +355,13 @@ func (srv *SummaryEvaluationService) buildSummaryItemValue(itemList []*domain.Ev
EvaluatorId: v.EvaluatorId,
}
//PromptText 页面展示 特殊处理
if len(v.EntryItems) > 0 {
item.PromptTitle = ""
// if len(v.EntryItems) > 0 {
for _, v2 := range v.EntryItems {
item.PromptTitle += v2.Title + "\n"
}
item.PromptText += v2.Title + "\n"
}
item.PromptText += v.PromptText
// }
value, ok := valueMap[v.Id]
if ok {
item.Score = value.Score
... ...