提报质量bug
This commit is contained in:
@@ -2146,12 +2146,12 @@ namespace Tnb.ProductionMgr
|
||||
return "提报成功";
|
||||
}
|
||||
|
||||
public async Task<string> ReportInstock(CheckCompleteInput input,ISqlSugarClient db = null)
|
||||
public async Task<string> ReportInstock(CheckCompleteInput input,PrdReport report = null, ISqlSugarClient db = null)
|
||||
{
|
||||
try
|
||||
{
|
||||
if(db==null) db = _repository.AsSugarClient();
|
||||
PrdReport report = await db.Queryable<PrdReport>().FirstAsync(it => it.id==input.report_id && !SqlFunc.IsNullOrEmpty(it.id));
|
||||
if(report==null) report = await db.Queryable<PrdReport>().FirstAsync(it => it.id==input.report_id && !SqlFunc.IsNullOrEmpty(it.id));
|
||||
PrdMoTask? prdMoTask = await db.Queryable<PrdMoTask>().FirstAsync(x => x.id == report.mo_task_id && !SqlFunc.IsNullOrEmpty(x.id));
|
||||
EqpEquipment equip = await db.Queryable<EqpEquipment>().SingleAsync(x => x.id == prdMoTask.eqp_id);
|
||||
BasMaterial basMaterial = await db.Queryable<BasMaterial>().SingleAsync(x => x.id == prdMoTask.material_id);
|
||||
@@ -2387,7 +2387,7 @@ namespace Tnb.ProductionMgr
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.Error("提报入库任务下发失败", e);
|
||||
throw Oops.Bah("提报入库任务下发失败:"+e.Message);
|
||||
throw new Exception("提报入库任务下发失败");
|
||||
}
|
||||
|
||||
return "入库任务下发成功";
|
||||
|
||||
Reference in New Issue
Block a user