lrf 2 gadi atpakaļ
vecāks
revīzija
6fcb4f501a
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      app/service/shop/goodsJoinAct.js

+ 2 - 1
app/service/shop/goodsJoinAct.js

@@ -73,7 +73,7 @@ class GoodsJoinActService extends CrudService {
               data: { $min: '$$CURRENT' },
             },
           },
-          { $project: { name: '$data.name', file: '$data.file', sell_money: '$data.sell_money' } },
+          { $project: { name: '$data.name', file: '$data.file', sell_money: '$data.sell_money', flow_money: '$data.flow_money' } },
         ],
         as: 'specInfo',
       },
@@ -84,6 +84,7 @@ class GoodsJoinActService extends CrudService {
         platformAct: 1,
         shop: '$shopInfo',
         goods: '$goodsInfo',
+        flow_money: { $toString: '$specInfo.flow_money' },
         sell_money: { $toString: '$specInfo.sell_money' },
         spec_file: '$specInfo.file',
       },