|
|
@ -1256,5 +1256,33 @@ namespace WY.NewJit.PrintTable |
|
|
|
return ret; |
|
|
|
} |
|
|
|
} |
|
|
|
/// <summary>
|
|
|
|
/// 修改未打印列表状态
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="ids"></param>
|
|
|
|
/// <param name="printTypeEnum"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpGet] |
|
|
|
[UnitOfWork] |
|
|
|
[Route("update-print-data-status")] |
|
|
|
public virtual async Task<bool> UpdatePrintDataStatus(List<Guid> 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; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|