瀏覽代碼

bug:订单列表关于售后的信息提示

lrf 2 年之前
父節點
當前提交
9ceb1acc26
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/service/trade/orderDetail.js

+ 1 - 1
app/service/trade/orderDetail.js

@@ -278,7 +278,7 @@ class OrderDetailService extends CrudService {
         obj.price = _.get(obj, 'price', obj.sell_money);
       }
       // 售后
-      const asum = await this.afterSaleModel.count({ order_detail: obj._id, status: { $nin: [ '0', '!1', '!2', '!3', '!4', '!5' ] } });
+      const asum = await this.afterSaleModel.count({ order_detail: obj._id, status: { $nin: [ '-1', '!1', '-2', '!2', '-3', '!3', '-4', '!4', '-5', '!5' ] } });
       obj.is_afterSale = asum > 0;
       list.push(obj);
     }