浏览代码

Merge branch 'master' into kitchenmanage

tmp
zhaoy 10 个月前
父节点
当前提交
66799b8f5a
共有 2 个文件被更改,包括 3 次插入0 次删除
  1. +1
    -0
      BPA.SAAS.Manage.Application/DataBase/Dtos/GoodsTechnology/GoodsTechnologyActionListView.cs
  2. +2
    -0
      BPA.SAAS.Manage.Application/DataBase/Services/GoodsTechnologyService.cs

+ 1
- 0
BPA.SAAS.Manage.Application/DataBase/Dtos/GoodsTechnology/GoodsTechnologyActionListView.cs 查看文件

@@ -10,6 +10,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Dtos.GoodsTechnology
{
public string DeviceId { get; set; }
public string WarehousrTemplateId { get; set; }
public string GoodsAttributeId { get; set; }
public string DeviceName { get; set; }
public List<GoodsTechnologyActionView> Data { get; set; }
}


+ 2
- 0
BPA.SAAS.Manage.Application/DataBase/Services/GoodsTechnologyService.cs 查看文件

@@ -130,6 +130,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services
for (int i = 0; i < sf.Count; i++)
{
var sd = GoodsAttributeValue?.Where(x => sf[i].Key.Contains(x.Id)).Select(x => x.AttributeValue).ToArray();
var sdw = GoodsAttributeValue?.Where(x => sf[i].Key.Contains(x.Id)).Select(x => x.Id).ToArray();
var nane =string.Join('-', sd);
var s = sf[i].AsQueryable().ToList().GroupBy(x => x.DeviceId).ToList();
for (int t = 0; t < s.Count; t++)
@@ -138,6 +139,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services
{
DeviceId = s[t].Key,
WarehousrTemplateId = sf1[t].Key,
GoodsAttributeId = string.Join(',', sdw),
DeviceName = Devicelist?.FirstOrDefault(x => x.Id == s[t].Key).DeviceName+ "【"+ nane+"】",
Data = s[t].AsQueryable().ToList(),
};


正在加载...
取消
保存