From ecdedcc0416fd4592bf4b2393c12d0dd30276275 Mon Sep 17 00:00:00 2001 From: tikkhun Date: Sat, 10 Jan 2026 15:06:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E4=B8=AD=E4=BA=A7=E5=93=81=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E5=92=8C=E7=BB=84=E4=BB=B6=E5=A4=84=E7=90=86=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 处理产品属性为空的情况,避免空指针异常 为产品组件查询添加关联关系 在订单销售记录创建时增加对空产品的过滤 添加新的品牌判断逻辑 --- src/service/product.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/service/product.service.ts b/src/service/product.service.ts index b641571..78ffeb9 100644 --- a/src/service/product.service.ts +++ b/src/service/product.service.ts @@ -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