生产提报日志优化
This commit is contained in:
@@ -1609,6 +1609,7 @@ namespace Tnb.ProductionMgr
|
|||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<dynamic> PrdReport(PrdReportCrInput input)
|
public async Task<dynamic> PrdReport(PrdReportCrInput input)
|
||||||
{
|
{
|
||||||
|
Log.Information($"生产提报参数:{JsonConvert.SerializeObject(input)}");
|
||||||
ISqlSugarClient db = _repository.AsSugarClient();
|
ISqlSugarClient db = _repository.AsSugarClient();
|
||||||
PrdMoTask? prdMoTask = await db.Queryable<PrdMoTask>().SingleAsync(x => x.id == input.mo_task_id);
|
PrdMoTask? prdMoTask = await db.Queryable<PrdMoTask>().SingleAsync(x => x.id == input.mo_task_id);
|
||||||
EqpEquipment equip = await db.Queryable<EqpEquipment>().SingleAsync(x => x.id == prdMoTask.eqp_id);
|
EqpEquipment equip = await db.Queryable<EqpEquipment>().SingleAsync(x => x.id == prdMoTask.eqp_id);
|
||||||
@@ -1691,6 +1692,7 @@ namespace Tnb.ProductionMgr
|
|||||||
report.reported_qty = input.reported_qty;
|
report.reported_qty = input.reported_qty;
|
||||||
report.weight = input.weight;
|
report.weight = input.weight;
|
||||||
report.material_box_code = input.material_box_code;
|
report.material_box_code = input.material_box_code;
|
||||||
|
Log.Information($"任务单数据:{JsonConvert.SerializeObject(prdMoTask)}");
|
||||||
if (prdMoTask.schedule_type == 2)
|
if (prdMoTask.schedule_type == 2)
|
||||||
{
|
{
|
||||||
// if (dic.TryGetValue(prdMoTask.workline_id, out string value))
|
// if (dic.TryGetValue(prdMoTask.workline_id, out string value))
|
||||||
|
|||||||
Reference in New Issue
Block a user