正在显示
1 个修改的文件
包含
6 行增加
和
4 行删除
@@ -1726,10 +1726,12 @@ func (srv StaffAssessServeice) SaveAssessInfo(param *command.SaveAssessInfoComma | @@ -1726,10 +1726,12 @@ func (srv StaffAssessServeice) SaveAssessInfo(param *command.SaveAssessInfoComma | ||
1726 | continue | 1726 | continue |
1727 | } | 1727 | } |
1728 | v.Value = item.Value | 1728 | v.Value = item.Value |
1729 | - //转换填入的评估值 | ||
1730 | - err = v.TransformValue() | ||
1731 | - if err != nil { | ||
1732 | - return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) | 1729 | + if v.Required == 1 { |
1730 | + //转换填入的评估值 | ||
1731 | + err = v.TransformValue() | ||
1732 | + if err != nil { | ||
1733 | + return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) | ||
1734 | + } | ||
1733 | } | 1735 | } |
1734 | for ii := range v.Remark { | 1736 | for ii := range v.Remark { |
1735 | for _, vvv := range item.Remark { | 1737 | for _, vvv := range item.Remark { |
-
请 注册 或 登录 后发表评论