feat(esppApi): код закрытия вынес в параметры метода
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using PARR.Constants;
|
||||
using PARR.DAL.Models;
|
||||
using PARR.EsppApi;
|
||||
using PARR.EsppApi.Constants;
|
||||
using PARR.EsppApi.Models.Query;
|
||||
using PARR.EsppOrderManager.Settings;
|
||||
|
||||
@@ -118,7 +119,7 @@ namespace PARR.EsppOrderManager.Services
|
||||
logger.LogDebug($"В ЕСПП, для наряда {orderNumber} списаны трудозатраты. Операция: {tnk.JobOperation}, время: {tnk.Time}");
|
||||
|
||||
// выполняем наряд
|
||||
var result = await esppApiService.SetStatusIsDoneAsync(orderNumber, resultMsg);
|
||||
var result = await esppApiService.SetStatusIsDoneAsync(orderNumber, resultMsg, EsppOrderClosingCodeEnum.Auto);
|
||||
|
||||
if (result.IsSuccess)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user