fix: 修复订单服务中产品属性和组件处理的问题

处理产品属性为空的情况,避免空指针异常
为产品组件查询添加关联关系
在订单销售记录创建时增加对空产品的过滤
添加新的品牌判断逻辑
This commit is contained in:
tikkhun 2026-01-10 15:06:35 +08:00
parent b2ee61e47d
commit ecdedcc041
1 changed files with 1 additions and 0 deletions

View File

@ -1537,6 +1537,7 @@ export class ProductService {
return dto;
}
getAttributesObject(attributes:DictItem[]){
if(!attributes) return {}
const obj:any = {}
attributes.forEach(attr=>{
obj[attr.dict.name] = attr