Commit 8c64b7bf authored by 黄奎's avatar 黄奎

1111

parent 56524419
......@@ -71,5 +71,10 @@ namespace EduSpider.Model.Query
/// 默认评价编号
/// </summary>
public int DefaultCommentId { get; set; }
/// <summary>
/// 学员作业编号
/// </summary>
public long Stu_HomeWork_Id { get; set; }
}
}
......@@ -32,7 +32,6 @@ namespace EduSpider.Repository
StuUid = item.StuUid,
HomeWorkId = item.HomeWorkId,
}).FirstOrDefault();
if (VTX.FW.Helper.ConvertHelper.FormatDate(item.CreateTime) != "")
{
......@@ -49,7 +48,7 @@ namespace EduSpider.Repository
var homeWorkModel = new StuHomeWorkRepository().GetStuHomeWorkDetailsListRepository(new CourseQuery()
{
CourseId = item.CourseId,
HomeWorkId = item.HomeWorkId,
Stu_HomeWork_Id = item.HomeWorkId,
StuIds = item.StuUid.ToString()
}).FirstOrDefault();
if (homeWorkModel != null)
......
......@@ -61,6 +61,10 @@ WHERE 1=1
{
builder.AppendFormat(" AND A.{0} IN({1}) ", nameof(RB_Stu_HomeWork_Extend.homework_id), query.HomeWorkId);
}
if (query.Stu_HomeWork_Id > 0)
{
builder.AppendFormat(" AND A.{0} IN({1}) ", nameof(RB_Stu_HomeWork_Extend.stu_homework_id), query.Stu_HomeWork_Id);
}
if (!string.IsNullOrEmpty(query.QHomeWorkIds))
{
builder.AppendFormat(" AND A.{0} IN({1}) ", nameof(RB_Stu_HomeWork_Extend.homework_id), query.QHomeWorkIds);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment