|
|
@@ -1,5 +1,6 @@ |
|
|
|
using BPA.Message; |
|
|
|
using BPA.Message.IOT; |
|
|
|
using BPA.Models.SqlEntity.BPA_Kitchen; |
|
|
|
using BPA.SAAS.KitChenManage.Application.Device.Dtos; |
|
|
|
using BPA.SAAS.KitChenManage.Application.Push.Comm; |
|
|
|
using BPA.SAAS.KitChenManage.Application.Push.奶茶机_v1.Dto; |
|
|
@@ -366,7 +367,6 @@ namespace BPA.SAAS.KitChenManage.Application.Device.Services |
|
|
|
|
|
|
|
//删除店铺商品 |
|
|
|
await _db.Deleteable<BPA_DeviceGoods>().Where(it => it.DeviceId == inputDto.DeviceId).ExecuteCommandAsync(); |
|
|
|
|
|
|
|
var list = new List<BPA_DeviceGoods>(); |
|
|
|
foreach (var item in inputDto.GoodsList) |
|
|
|
{ |
|
|
@@ -376,6 +376,7 @@ namespace BPA.SAAS.KitChenManage.Application.Device.Services |
|
|
|
DeviceId = inputDto.DeviceId, |
|
|
|
GoodsId = item.GoodsId, |
|
|
|
GoodsName = item.GoodsName, |
|
|
|
AutoKey=inputDto.AutoKey |
|
|
|
}); |
|
|
|
} |
|
|
|
var res = await _db.Insertable(list).ExecuteCommandAsync(); |
|
|
|