lrf 2 anni fa
parent
commit
6fcb4f501a
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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',
       },