|
|
@@ -4,6 +4,7 @@ using Learun.Application.TwoDevelopment.EvaluationTeach; |
|
|
|
using Learun.Util; |
|
|
|
using Nancy; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
|
|
|
|
namespace Learun.Application.WebApi.Modules |
|
|
|
{ |
|
|
@@ -52,6 +53,10 @@ namespace Learun.Application.WebApi.Modules |
|
|
|
var queryParam = queryJson.ToJObject(); |
|
|
|
if (!queryParam["VID"].IsEmpty()&&!queryParam["postarray"].IsEmpty()) |
|
|
|
{ |
|
|
|
if (ask_MainIBLL.GetQuestionResultCount(queryParam["VID"].ToString(), userInfo.account, queryParam["EmpNo"].ToString(), queryParam["LessonNo"].ToString()).Count() > 0) |
|
|
|
{ |
|
|
|
return Fail("检测到您已对当前教师课程进行过评教操作,请勿重复提交。"); |
|
|
|
} |
|
|
|
List<Eval_QuestionResultEntity> entity = queryParam["postarray"].ToObject<List<Eval_QuestionResultEntity>>(); |
|
|
|
ask_MainIBLL.SaveEval_QuestionResultEntity(entity, queryParam["VID"].ToString(), queryParam["LessonNo"].ToString(), queryParam["EmpNo"].ToString(), userInfo.account, userInfo.realName, userInfo.iPAddress); |
|
|
|
return Success("保存成功"); |
|
|
|