Merge remote-tracking branch 'origin/test' into test
正在显示
2 个修改的文件
包含
3 行增加
和
0 行删除
@@ -1726,11 +1726,13 @@ func (srv StaffAssessServeice) SaveAssessInfo(param *command.SaveAssessInfoComma | @@ -1726,11 +1726,13 @@ func (srv StaffAssessServeice) SaveAssessInfo(param *command.SaveAssessInfoComma | ||
1726 | continue | 1726 | continue |
1727 | } | 1727 | } |
1728 | v.Value = item.Value | 1728 | v.Value = item.Value |
1729 | + if v.Required == 1 { | ||
1729 | //转换填入的评估值 | 1730 | //转换填入的评估值 |
1730 | err = v.TransformValue() | 1731 | err = v.TransformValue() |
1731 | if err != nil { | 1732 | if err != nil { |
1732 | return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) | 1733 | return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) |
1733 | } | 1734 | } |
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 { |
1736 | if v.Remark[ii].Title == vvv.Title { | 1738 | if v.Remark[ii].Title == vvv.Title { |
@@ -172,6 +172,7 @@ func (srv StaffAssessServeice) ListUserAssessContentCycleDay(param *query.ListAs | @@ -172,6 +172,7 @@ func (srv StaffAssessServeice) ListUserAssessContentCycleDay(param *query.ListAs | ||
172 | } | 172 | } |
173 | changeableRows[v.TargetUserId]["targetUserName"] = v.TargetUserName | 173 | changeableRows[v.TargetUserId]["targetUserName"] = v.TargetUserName |
174 | changeableRows[v.TargetUserId]["targetUserId"] = v.TargetUserId | 174 | changeableRows[v.TargetUserId]["targetUserId"] = v.TargetUserId |
175 | + changeableRows[v.TargetUserId]["assessId"] = v.AssessId | ||
175 | if v.ContentId > 0 { | 176 | if v.ContentId > 0 { |
176 | name := fmt.Sprintf("%s-%s", v.Category, v.ContentName) | 177 | name := fmt.Sprintf("%s-%s", v.Category, v.ContentName) |
177 | key := fmt.Sprintf("k%d", i) | 178 | key := fmt.Sprintf("k%d", i) |
-
请 注册 或 登录 后发表评论