Commit 247fdbd5 by lcx

返回数据排序,更替模板新增数据过滤

parent 911392b9
...@@ -337,7 +337,8 @@ private List<BodyItem> GetBodyItems(List<ag_fixatitem> fixatitems, List<HeadItem ...@@ -337,7 +337,8 @@ private List<BodyItem> GetBodyItems(List<ag_fixatitem> fixatitems, List<HeadItem
FiledName = t.ItemName, FiledName = t.ItemName,
SourceType = t.SourceType.Value, SourceType = t.SourceType.Value,
Type = t.Type.Value, Type = t.Type.Value,
Value = t.ItemValue Value = t.ItemValue,
Sort = t.Sort.Value
}).ToList(); }).ToList();
} }
return bodyItems; return bodyItems;
...@@ -558,7 +559,7 @@ public bool UseTemp(UseTempRequest request) ...@@ -558,7 +559,7 @@ public bool UseTemp(UseTempRequest request)
var exist = fixatList?.Where(t => t.ItemName == head.FiledName && t.Type == head.Type && t.SecondId == second.Id); var exist = fixatList?.Where(t => t.ItemName == head.FiledName && t.Type == head.Type && t.SecondId == second.Id);
if (exist != null && exist.Count() > 0) if (exist != null && exist.Count() > 0)
list.AddRange(exist); list.AddRange(exist);
else else if (head.Type == 1)
{ {
var configs = perforCofagainRepository.GetEntities(t => t.AllotID == second.AllotId && t.Department == request.Department) ?? new List<cof_again>(); var configs = perforCofagainRepository.GetEntities(t => t.AllotID == second.AllotId && t.Department == request.Department) ?? new List<cof_again>();
addList.Add(new ag_fixatitem addList.Add(new ag_fixatitem
......
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