zhaoy 10 月之前
父節點
當前提交
2bb2b218ee
共有 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(),
};


Loading…
取消
儲存