...
|
...
|
@@ -1723,9 +1723,12 @@ func (srv StaffAssessServeice) SaveAssessInfo(param *command.SaveAssessInfoComma |
|
|
if !ok {
|
|
|
continue
|
|
|
}
|
|
|
if v.Required == domain.NodeRequiredYes && len(item.Value) == 0 {
|
|
|
return nil, application.ThrowError(application.BUSINESS_ERROR, v.Category+"-"+v.Name+":必填项")
|
|
|
}
|
|
|
v.Value = item.Value
|
|
|
if v.Required == domain.NodeRequiredYes {
|
|
|
//转换填入的评估值
|
|
|
if len(item.Value) > 0 {
|
|
|
// 转换填入的评估值
|
|
|
err = v.TransformValue()
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.BUSINESS_ERROR, v.Category+"-"+v.Name+":"+err.Error())
|
...
|
...
|
|