刷新金蝶数据接口

This commit is contained in:
18942506660
2023-11-09 15:45:23 +08:00
parent 3450a98119
commit 3ee611e4d2
9 changed files with 151 additions and 3 deletions

View File

@@ -273,5 +273,24 @@ namespace WMS.Web.Repositories
return res.Clone();
}
/// <summary>
/// 获取详情
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public async Task<OutStockInfoResponse> GetInfo(int id)
{
var res = await _context.OutStock
.FirstOrDefaultAsync(f => id == f.Id);
if (res == null) return null;
OutStockInfoResponse response = new OutStockInfoResponse()
{
CreateTime = res.CreateTime.DateToStringSeconds(),
SyncTime = res.SyncTime.DateToStringSeconds(),
Creator = _singleDataService.GetSingleData(SingleAction.Staffs, _loginRepositories.CompanyId, res.CreatorId),
Operate = _singleDataService.GetSingleData(SingleAction.Staffs, _loginRepositories.CompanyId, res.OperateId)
};
return response;
}
}
}