|
|
@@ -163,6 +163,7 @@ namespace BPA.MES.Base.Application.Services.WorkInfoService.Services |
|
|
|
.LeftJoin<Pztj_WorkInfoStatusEntity>((a, b, c, d) => d.Id == SqlFunc.Subqueryable<Pztj_WorkInfoStatusEntity>().Where(s => s.WorkId == a.Id).OrderByDesc(s => s.CreateTime).Select(s => s.Id)) |
|
|
|
.WhereIF(!string.IsNullOrEmpty(input.Name), (a, b, c, d) => b.Name.Contains(input.Name)) |
|
|
|
.WhereIF(!string.IsNullOrEmpty(input.Id), (a, b, c, d) => a.Id.Contains(input.Id)) |
|
|
|
.WhereIF(input.Status != null,(a,b,c,d)=>d.Status==input.Status) |
|
|
|
.Select((a, b, c, d) => new WorkInfoOutput |
|
|
|
{ |
|
|
|
Id = a.Id.SelectAll(), |
|
|
@@ -359,6 +360,14 @@ namespace BPA.MES.Base.Application.Services.WorkInfoService.Services |
|
|
|
[HttpPost] |
|
|
|
public async Task<bool> UpdateWorkCraftStepsStatus(WorkInfoCraftstepRecordUpdateInput input) |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
var entityFrist = await _dbContext.Queryable<WorkInfoCraftstepRecordEntity>().Where(x => x.Id == input.WorkCraftstepId).FirstAsync(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(input.WorkId)) |
|
|
|
{ |
|
|
|
bool res = await _dbContext.Updateable<WorkInfoCraftstepRecordEntity>() |
|
|
|