Browse Source

设备获取设备物料接口获取工艺修改为当前设备20240711

master
gwbvipvip 4 months ago
parent
commit
4bd7a2a8c1
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      BPA.SAAS.KitChenManage.Application/AExternalPlatform1/Service/Goods/Services/GoodsServices.cs

+ 6
- 1
BPA.SAAS.KitChenManage.Application/AExternalPlatform1/Service/Goods/Services/GoodsServices.cs View File

@@ -31,9 +31,14 @@ namespace BPA.SAAS.KitChenManage.Application.AExternalPlatform1.Service.Goods.Se
public async Task<ResultGoodsAndDeviceResultDto> GetDeviceGoods(string deviceId)
{
var goodsId = await _db.Queryable<BPA_DeviceGoods>()
.Where(x => x.AutoKey.ToString()==deviceId)
.Where(x => x.AutoKey.ToString() == deviceId)
.Select(x => x.GoodsId)
.ToListAsync();
var device = await _db.Queryable<BPA_DeviceGoods>().FirstAsync(t => t.AutoKey.ToString() == deviceId);
if (device != null)
{
goodsId.Insert(0, device.DeviceId);
}
var data = await GetDeviceGoodspost(goodsId, deviceId);
return data;
}


Loading…
Cancel
Save