fix: 修复订单服务中产品属性和组件处理的问题
处理产品属性为空的情况,避免空指针异常 为产品组件查询添加关联关系 在订单销售记录创建时增加对空产品的过滤 添加新的品牌判断逻辑
This commit is contained in:
parent
b2ee61e47d
commit
ecdedcc041
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue