wq 4 rokov pred
rodič
commit
0a9f499c76
1 zmenil súbory, kde vykonal 8 pridanie a 1 odobranie
  1. 8 1
      app/service/claimneed.js

+ 8 - 1
app/service/claimneed.js

@@ -136,6 +136,12 @@ class ClaimNeedService extends CrudService {
               foreignField: 'uid',
               as: 'comnew' } },
            { $unwind: '$comnew' },
+           { $lookup: {
+            from: 't_finance_follow',
+            localField: 'id',
+            foreignField: 'finceId',
+            as: 'follnew' } },
+            { $unwind: { path: '$follnew', preserveNullAndEmptyArrays: true } },
            {
             $project: {
                 meta: 1,
@@ -155,7 +161,8 @@ class ClaimNeedService extends CrudService {
                 userid: 1,
                 id: 1,
                 is_exist: 1,
-                comnewname:'$comnew.company_name'
+                comnewname:'$comnew.company_name',
+                orcredit:'$follnew.orcredit'
 
             }
         },