刷新金蝶数据接口
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user