diff --git a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/PrintTable/WaitPrintAppService.cs b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/PrintTable/WaitPrintAppService.cs
index 2e4f841..3a5a8b1 100644
--- a/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/PrintTable/WaitPrintAppService.cs
+++ b/src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/PrintTable/WaitPrintAppService.cs
@@ -1256,5 +1256,33 @@ namespace WY.NewJit.PrintTable
return ret;
}
}
+ ///
+ /// 修改未打印列表状态
+ ///
+ ///
+ ///
+ ///
+ [HttpGet]
+ [UnitOfWork]
+ [Route("update-print-data-status")]
+ public virtual async Task UpdatePrintDataStatus(List ids, PrintTypeEnum printTypeEnum)
+ {
+ _logger.LogDebug(_errorMessagePrefix + "UpdatePrintDataStatus 进入");
+ bool result = true;
+ try
+ {
+ var updatelist = await _waitPrintRepository.GetListAsync(r => ids.Contains(r.Id));
+ updatelist.ForEach(r => r.PrintType = printTypeEnum);
+ await _waitPrintRepository.UpdateManyAsync(updatelist);
+ }
+ catch (Exception ex)
+ {
+ string errMsg = _errorMessagePrefix + "UpdatePrintDataStatus 执行出错:" + ex.Message;
+ _logger.LogError(errMsg);
+ result = false;
+ return result;
+ }
+ return result;
+ }
}
}