Commit 0ebc3fd0 by 李承祥

带出failedId

parent ddaf6481
...@@ -23,6 +23,6 @@ public class HeadItem ...@@ -23,6 +23,6 @@ public class HeadItem
public class BodyItem : HeadItem public class BodyItem : HeadItem
{ {
public int RowNumber { get; set; } public int RowNumber { get; set; }
public int Value { get; set; } public string Value { get; set; }
} }
} }
...@@ -49,7 +49,7 @@ public class ag_fixatitem ...@@ -49,7 +49,7 @@ public class ag_fixatitem
/// <summary> /// <summary>
/// 值 /// 值
/// </summary> /// </summary>
public Nullable<decimal> ItemValue { get; set; } public string ItemValue { get; set; }
/// <summary> /// <summary>
/// 系数 /// 系数
......
...@@ -380,7 +380,7 @@ public SecondResponse GetSecondDetail(UseTempRequest request) ...@@ -380,7 +380,7 @@ public SecondResponse GetSecondDetail(UseTempRequest request)
fixatList.AddRange(newItem.Select(t => new ag_fixatitem fixatList.AddRange(newItem.Select(t => new ag_fixatitem
{ {
ItemName = t, ItemName = t,
ItemValue = 0, ItemValue = null,
RowNumber = item.Key, RowNumber = item.Key,
AllotId = fixatList.First().AllotId, AllotId = fixatList.First().AllotId,
SecondId = fixatList.First().SecondId, SecondId = fixatList.First().SecondId,
...@@ -393,6 +393,7 @@ public SecondResponse GetSecondDetail(UseTempRequest request) ...@@ -393,6 +393,7 @@ public SecondResponse GetSecondDetail(UseTempRequest request)
} }
} }
result.BodyItems = Mapper.Map<List<BodyItem>>(fixatList); result.BodyItems = Mapper.Map<List<BodyItem>>(fixatList);
result.BodyItems.ForEach(t => { t.FiledId = result.HeadItems.FirstOrDefault(s => s.FiledName == t.FiledName)?.FiledId; });
} }
return result; return result;
} }
......
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