Commit 60cc3d4e authored by 黄奎's avatar 黄奎

页面修改

parent 23580fd1
......@@ -48,7 +48,14 @@ namespace Edu.Module.Customer
});
if (detailsList != null && detailsList.Count > 0)
{
var groupList = detailsList.GroupBy(qitem => new { qitem.TaskType }).Select(qitem => new { qitem.Key.TaskType });
foreach (var item in groupList)
{
if (item.TaskType == Common.Enum.Customer.TaskTypeEnum.Course)
{
string courseIds = string.Join(",", detailsList.Where(qitem => qitem.TaskType==item.TaskType).Select(qitem=>qitem.TargetId));
}
}
}
}
foreach (var item in list)
......@@ -127,6 +134,7 @@ namespace Edu.Module.Customer
}
foreach (var item in model.DetailsList)
{
item.TaskId = model.Id;
if (item.DetailId == 0)
{
detailsRepository.Insert(item);
......
......@@ -21,8 +21,8 @@ namespace Edu.Repository.Customer
{
StringBuilder builder = new StringBuilder();
builder.AppendFormat(@"
SELECT A.*,IFNULL(B.CourseName,'') AS TargetName
FROM RB_Customer_TaskDetails AS A LEFT JOIN rb_course AS B ON (A.TargetId=B.CourseId AND A.TaskType=1)
SELECT A.*
FROM RB_Customer_TaskDetails AS A
WHERE 1=1
");
if (query != null)
......
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