wq hace 4 años
padre
commit
0a9f499c76
Se han modificado 1 ficheros con 8 adiciones y 1 borrados
  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'
 
             }
         },