Explorar el Código

Merge branch 'kitchenmanage' of http://10.2.1.24:10244/zhaoy/BPA.SAAS.Manage into kitchenmanage

ingredientmanage
zhaoy hace 5 meses
padre
commit
23973578c6
Se han modificado 1 ficheros con 9 adiciones y 7 borrados
  1. +9
    -7
      BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs

+ 9
- 7
BPA.SAAS.Manage.Application/DataBase/Services/GoodsService.cs Ver fichero

@@ -583,15 +583,17 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services
GoodsUintName = SqlFunc.Subqueryable<BPA_GoodsUint>().Where(s => s.Id == a.GoodsUintId && s.IsDeleted == 0).Select(s => s.Name), GoodsUintName = SqlFunc.Subqueryable<BPA_GoodsUint>().Where(s => s.Id == a.GoodsUintId && s.IsDeleted == 0).Select(s => s.Name),
//GoodsAttributeList = new List<GoodsAttributeList>() //GoodsAttributeList = new List<GoodsAttributeList>()
}).FirstAsync(); }).FirstAsync();
if (!res.IsAttrubute)
if (res!=null)
{ {
res.GoodsAttributeList = await _goodsAttributeService.GetByNameAttribute("默认属性");
}
else
{
res.GoodsAttributeList = await _goodsAttributeService.GetByGoodsIdAttribute(res.Id);
if (!res.IsAttrubute)
{
res.GoodsAttributeList = await _goodsAttributeService.GetByNameAttribute("默认属性");
}
else
{
res.GoodsAttributeList = await _goodsAttributeService.GetByGoodsIdAttribute(res.Id);
}
} }

return res; return res;
} }
public async Task<bool> ExportGood(IFormFile file) public async Task<bool> ExportGood(IFormFile file)


Cargando…
Cancelar
Guardar