...
|
...
|
@@ -3,6 +3,7 @@ package service |
|
|
import (
|
|
|
"errors"
|
|
|
"fmt"
|
|
|
"strings"
|
|
|
"time"
|
|
|
|
|
|
"github.com/linmadan/egglib-go/core/application"
|
...
|
...
|
@@ -1530,6 +1531,7 @@ func (srv *SummaryEvaluationService) editEvaluationValue( |
|
|
}
|
|
|
//填入填写的更新值
|
|
|
for _, v := range updatedValue {
|
|
|
v.Value = strings.TrimSpace(v.Value)
|
|
|
newItemValue, ok := evaluationValueMap[v.EvaluationItemId]
|
|
|
if !ok {
|
|
|
continue
|
...
|
...
|
@@ -1538,6 +1540,11 @@ func (srv *SummaryEvaluationService) editEvaluationValue( |
|
|
if !ok {
|
|
|
continue
|
|
|
}
|
|
|
if evaluationItem.Required == domain.NodeRequiredYes {
|
|
|
if len(v.Value) == 0 {
|
|
|
return fmt.Errorf("%s-%s 是必填项", evaluationItem.Category, evaluationItem.Name)
|
|
|
}
|
|
|
}
|
|
|
//填充评估填写值
|
|
|
err := newItemValue.FillValue(evaluationItem, v.Value, v.Remark)
|
|
|
if err != nil {
|
...
|
...
|
|