Commit c3aa9798 authored by 黄奎's avatar 黄奎

页面修改

parent 18ac5b63
......@@ -19,5 +19,10 @@ namespace Edu.Model.ViewModel.Customer
/// 关联目标名称
/// </summary>
public string TargetName { get; set; }
/// <summary>
/// 目标值数组
/// </summary>
public List<string> TargetIdList { get; set; }
}
}
......@@ -219,12 +219,18 @@ namespace Edu.WebApi.Controllers.Customer
foreach (var jItem in jarray)
{
JObject jobj = JObject.Parse(jItem.ToString());
var targetIdList = jobj.GetStringValue("TargetIdList");
List<string> targetIds = new List<string>();
if (!string.IsNullOrEmpty(targetIdList))
{
targetIds = JsonHelper.DeserializeObject<List<string>>(targetIdList);
}
model.DetailsList.Add(new RB_Customer_TaskDetails_Extend()
{
DetailId = jobj.GetInt("DetailId"),
TaskId = jobj.GetInt("TaskId"),
TaskType = (TaskTypeEnum)jobj.GetInt("TaskType"),
TargetId = jobj.GetStringValue("TargetId"),
TargetId = string.Join(",", targetIds),
TaskFinishType=jobj.GetInt("TaskTypeEnum"),
TaskFinishValue=jobj.GetDecimal("TaskFinishValue"),
});
......
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