bug
This commit is contained in:
@@ -16,5 +16,10 @@ namespace Tnb.ProductionMgr.Entities.Dto
|
|||||||
///任务单操作状态
|
///任务单操作状态
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string statusName { get; set; }
|
public string statusName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 排产类型:1、注塑、挤出2、组装、包装
|
||||||
|
/// </summary>
|
||||||
|
public int? schedule_type { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -226,7 +226,11 @@ namespace Tnb.ProductionMgr
|
|||||||
var list = await _repository.AsSugarClient().Queryable<PrdTaskLog>().Where(it => it.mo_task_id == taskId).ToListAsync();
|
var list = await _repository.AsSugarClient().Queryable<PrdTaskLog>().Where(it => it.mo_task_id == taskId).ToListAsync();
|
||||||
var data = list.Adapt<List<PrdTaskOperOutput>>();
|
var data = list.Adapt<List<PrdTaskOperOutput>>();
|
||||||
var dic = await _dictionaryDataService.GetDicByTypeId(DictConst.PrdTaskStatusTypeId);
|
var dic = await _dictionaryDataService.GetDicByTypeId(DictConst.PrdTaskStatusTypeId);
|
||||||
_repository.AsSugarClient().ThenMapper(data, x => x.statusName = dic.ContainsKey(x.status) ? dic[x.status].ToString() : "");
|
_repository.AsSugarClient().ThenMapper(data, x =>
|
||||||
|
{
|
||||||
|
x.statusName = dic.ContainsKey(x.status) ? dic[x.status].ToString() : x.status;
|
||||||
|
x.schedule_type = _repository.AsSugarClient().Queryable<PrdMoTask>().Single(y => y.id == x.mo_task_id).schedule_type;
|
||||||
|
});
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user