From e92e53d91152f8766e7ad695120ccde7c3de7ef9 Mon Sep 17 00:00:00 2001
From: lvzb <35200379@qq.com>
Date: Wed, 22 Nov 2023 08:41:09 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=AE=E6=94=B9=E7=8A=B6?=
=?UTF-8?q?=E6=80=81=E6=96=B9=E6=B3=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../PrintTable/WaitPrintAppService.cs | 28 +++++++++++++++++++
1 file changed, 28 insertions(+)
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;
+ }
}
}