|
|
@@ -1,5 +1,6 @@ |
|
|
|
using BPA.MES.Base.Application.Entitys.Base; |
|
|
|
using Furion.EventBus; |
|
|
|
using Microsoft.AspNetCore.Cors.Infrastructure; |
|
|
|
using System.Security.Cryptography; |
|
|
|
using Yitter.IdGenerator; |
|
|
|
|
|
|
@@ -192,7 +193,8 @@ namespace BPA.MES.Base.Application.Services.WorkInfoService.Services |
|
|
|
Number = a.Number, |
|
|
|
FinalId = a.FinalId, |
|
|
|
LineId = a.LineId, |
|
|
|
DeviceCode = a.DeviceId |
|
|
|
DeviceCode = a.DeviceId, |
|
|
|
CreateTime = a.CreateTime |
|
|
|
}).ToListAsync(); |
|
|
|
return entity; |
|
|
|
} |
|
|
@@ -576,7 +578,7 @@ namespace BPA.MES.Base.Application.Services.WorkInfoService.Services |
|
|
|
try |
|
|
|
{ |
|
|
|
_dbContext.Ado.BeginTran(); |
|
|
|
await _dbContext.Updateable(entity).Where(x=>x.Id==input.Id).IgnoreColumns(true).ExecuteCommandAsync(); |
|
|
|
await _dbContext.Updateable(entity).Where(x => x.Id==input.Id).IgnoreColumns(true).ExecuteCommandAsync(); |
|
|
|
await _dbContext.Deleteable<WorkDeviceRecordEntity>().Where(x => x.WorkId==input.Id).ExecuteCommandAsync(); |
|
|
|
if (workDeviceRecordEntities.Count>1) |
|
|
|
{ |
|
|
@@ -725,7 +727,8 @@ namespace BPA.MES.Base.Application.Services.WorkInfoService.Services |
|
|
|
[HttpGet] |
|
|
|
public async Task<WorkInfoEditDetailOutput> EditDetail(string Id) |
|
|
|
{ |
|
|
|
var entity = await _dbContext.Queryable<Pztj_WorkInfoEntity>() |
|
|
|
WorkInfoEditDetailOutput entity = new(); |
|
|
|
entity = await _dbContext.Queryable<Pztj_WorkInfoEntity>() |
|
|
|
.LeftJoin<WorkPlanEntity>((a, b) => a.PlanId == b.Id) |
|
|
|
.LeftJoin<Pztj_FinalsInfoEntity>((a, b, c) => a.FinalId == c.Id) |
|
|
|
.Where((a, b, c) => a.Id == Id) |
|
|
|