liming 4 yıl önce
ebeveyn
işleme
f031cf13a5

+ 854 - 1
app/service/tGovernmentStatistics.js

@@ -2105,6 +2105,859 @@ class TGovernmentStatisticsService extends CrudService {
 
                 },
 
+            },
+            {
+                $group: {
+                    _id: '$name',
+                    id: {
+                        $first: "$_id"
+                    },
+                    name: {
+                        $first: "$name"
+                    },
+                    help_count1: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$t_finance_follows.orcredit', '1']
+                            }, 1, 0],
+
+                        }
+                    },
+                    receive_count1: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$t_finance_follows.orcredit', '0']
+                            }, 1, 0],
+
+                        }
+                    },
+                    approval_count1: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$t_finance_follows.orcredit', '2']
+                            }, 1, 0],
+
+                        }
+                    },
+                    refuse_count1: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$t_finance_follows.orcredit', '3']
+                            }, 1, 0],
+
+                        }
+                    },
+                    sum_count1: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$t_finance_follows.orcredit', '1']
+                            }, '$t_finance_follows.credit_money', 0],
+
+                        }
+                    },
+                    sum_time1: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$t_finance_follows.orcredit', '1']
+                            }, '$t_finance_follows.accept_time', 0],
+
+                        }
+                    },
+                    sum_rate1: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$t_finance_follows.orcredit', '1']
+                            }, { $toDouble: '$t_finance_follows.sxcplilue'}, 0],
+
+                        }
+                    },
+
+                }
+            },
+            {
+                $lookup:
+                    {
+                        from: "intelligent_follow",
+                        let: {
+                            jg_id: {
+                                $toString: "$id"
+                            }
+                        },
+                        pipeline: [
+                            {
+                                $match:
+                                    {
+                                        $expr:
+                                            {
+                                                $and:
+                                                    [
+                                                        {
+                                                            $eq: ['$uid', "$$jg_id"]
+                                                        },
+
+                                                    ]
+                                            }
+                                    }
+                            },
+
+                        ],
+                        as: "intelligent_follows"
+                    }
+            },
+            {
+                $unwind: {
+                    path: '$intelligent_follows',
+                    preserveNullAndEmptyArrays: true,
+
+                },
+
+            },
+            {
+                $group: {
+                    _id: '$name',
+                    id: {
+                        $first: "$id"
+                    },
+                    help_count1: {
+                        $first: "$help_count1"
+                    },
+                    receive_count1: {
+                        $first: "$receive_count1"
+                    },
+                    approval_count1: {
+                        $first: "$approval_count1"
+                    },
+                    refuse_count1: {
+                        $first: "$refuse_count1"
+                    },
+                    sum_count1: {
+                        $first: "$sum_count1"
+                    },
+                    sum_time1: {
+                        $first: "$sum_time1"
+                    },
+                    sum_rate1: {
+                        $first: "$sum_rate1"
+                    },
+                    help_count2: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$intelligent_follows.creditStatus', '1']
+                            }, 1, 0],
+
+                        }
+                    },
+                    receive_count2: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$intelligent_follows.creditStatus', '0']
+                            }, 1, 0],
+
+                        }
+                    },
+                    approval_count2: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$intelligent_follows.creditStatus', '2']
+                            }, 1, 0],
+
+                        }
+                    },
+                    refuse_count2: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$intelligent_follows.creditStatus', '3']
+                            }, 1, 0],
+
+                        }
+                    },
+                    sum_count2: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$intelligent_follows.creditStatus', '1']
+                            }, '$intelligent_follows.credit_money', 0],
+
+                        }
+                    },
+                    sum_time2: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$intelligent_follows.creditStatus', '1']
+                            }, '$intelligent_follows.accept_time', 0],
+
+                        }
+                    },
+                    sum_rate2: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$intelligent_follows.creditStatus', '1']
+                            }, { $toDouble: '$intelligent_follows.sxcplilue'}, 0],
+
+                        }
+                    },
+
+                }
+            },
+            {
+                $lookup:
+                    {
+                        from: "claim_need",
+                        let: {
+                            jg_id: {
+                                $toString: "$id"
+                            }
+                        },
+                        pipeline: [
+                            {
+                                $match:
+                                    {
+                                        $expr:
+                                            {
+                                                $and:
+                                                    [
+                                                        {
+                                                            $eq: ['$status', "0"],
+                                                        },
+                                                        {
+                                                            $eq: ['$jg_id', "$$jg_id"]
+                                                        },
+
+                                                    ]
+                                            }
+                                    }
+                            },
+
+                        ],
+                        as: "claim_needs"
+                    }
+            },
+            {
+                $lookup:
+                    {
+                        from: "intelligent_docking",
+                        let: {
+                            jg_id: {
+                                $toString: "$id"
+                            }
+                        },
+                        pipeline: [
+                            {
+                                $match:
+                                    {
+                                        $expr:
+                                            {
+                                                $and:
+                                                    [
+                                                        {
+                                                            $eq: ['$jg_id', "$$jg_id"]
+                                                        },
+
+                                                    ]
+                                            }
+                                    }
+                            },
+
+                        ],
+                        as: "intelligent_dockings"
+                    }
+            },
+            {
+                $project: {
+                    id: 1,
+                    help_count1: 1,
+                    receive_count1: 1,
+                    approval_count1: 1,
+                    refuse_count1: 1,
+                    sum_count1: 1,
+                    sum_time1: 1,
+                    help_count2: 1,
+                    receive_count2: 1,
+                    approval_count2: 1,
+                    refuse_count2: 1,
+                    sum_count2: 1,
+                    sum_time2: 1,
+                    sum_rate1: 1,
+                    sum_rate2: 1,
+                    push_count1: {
+                        $size: "$claim_needs"
+                    },
+                    push_count2: {
+                        $size: "$intelligent_dockings"
+                    },
+
+                }
+            },
+            {
+                $project: {
+                    _id: 0,
+                    bank_name: '$_id',
+                    push_count: {
+                        $add: ["$push_count1", "$push_count2"]
+                    },
+                    //                    receive_count:{ $add: [ "$receive_count1", "$receive_count2" ] },
+                    approval_count: {
+                        $add: ["$approval_count1", "$approval_count2"]
+                    },
+                    help_count: {
+                        $add: ["$help_count1", "$help_count2"]
+                    },
+                    refuse_count: {
+                        $add: ["$refuse_count1", "$refuse_count2"]
+                    },
+                    sum_money: {
+                        $add: ["$sum_count1", "$sum_count2"]
+                    },
+                    avg_money: {
+                        $cond: {
+                            if : {
+                                $eq: [{
+                                    $add: ["$help_count1", "$help_count2"]
+                                }, 0]
+                            },
+                            then: 0,
+                            else : {
+                                $divide: [{
+                                    $add: ["$sum_count1", "$sum_count2"]
+                                }, {
+                                    $add: ["$help_count1", "$help_count2"]
+                                }]
+                            },
+
+                        }
+                    },
+                    avg_time: {
+                        $cond: {
+                            if : {
+                                $eq: [{
+                                    $add: ["$help_count1", "$help_count2"]
+                                }, 0]
+                            },
+                            then: 0,
+                            else : {
+                                $divide: [{
+                                    $add: ["$sum_time1", "$sum_time2"]
+                                }, {
+                                    $multiply: [{
+                                        $add: ["$help_count1", "$help_count2"]
+                                    }, 86400000]
+                                }]
+                            },
+
+                        }
+                    },
+                    success_probability: {
+                        $cond: {
+                            if : {
+                                $eq: [{
+                                    $add: ["$help_count1", "$help_count2", "$refuse_count1", "$refuse_count2"]
+                                }, 0]
+                            },
+                            then: 0,
+                            else : {
+                                $multiply: [{
+                                    $divide: [{
+                                        $add: ["$help_count1", "$help_count2"]
+                                    }, {
+                                        $add: ["$help_count1", "$help_count2", "$refuse_count1", "$refuse_count2"]
+                                    }]
+                                }, 100]
+                            },
+
+                        }
+                    },
+                    avg_rate:  {
+                        $cond: {
+                            if : {
+                                $eq: [{
+                                    $add: ["$help_count1", "$help_count2"]
+                                }, 0]
+                            },
+                            then: 0,
+                            else : {
+                                $divide: [{
+                                    $add: ["$sum_rate1", "$sum_rate2"]
+                                }, {
+                                    $add: ["$help_count1", "$help_count2"]
+                                }]
+                            },
+
+                        }
+                    },
+
+                }
+            },
+            {
+                $sort: {success_probability:-1}
+            },
+            {
+                $skip: Number.parseInt(skip),
+            },
+            {
+                $limit:Number.parseInt(limit),
+            },
+        ];
+        let totalAgg = [
+            {
+                $lookup:
+                    {
+                        from: "t_finance_follow",
+                        let: {
+                            jg_id: {
+                                $toString: "$_id"
+                            }
+                        },
+                        pipeline: [
+                            {
+                                $match:
+                                    {
+                                        $expr:
+                                            {
+                                                $and:
+                                                    [
+                                                        {
+                                                            $eq: ['$userid', "$$jg_id"]
+                                                        },
+
+                                                    ]
+                                            }
+                                    }
+                            },
+
+                        ],
+                        as: "t_finance_follows"
+                    }
+            },
+            {
+                $unwind: {
+                    path: '$t_finance_follows',
+                    preserveNullAndEmptyArrays: true,
+
+                },
+
+            },
+            {
+                $group: {
+                    _id: '$name',
+                    id: {
+                        $first: "$_id"
+                    },
+                    name: {
+                        $first: "$name"
+                    },
+                    help_count1: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$t_finance_follows.orcredit', '1']
+                            }, 1, 0],
+
+                        }
+                    },
+                    receive_count1: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$t_finance_follows.orcredit', '0']
+                            }, 1, 0],
+
+                        }
+                    },
+                    approval_count1: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$t_finance_follows.orcredit', '2']
+                            }, 1, 0],
+
+                        }
+                    },
+                    refuse_count1: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$t_finance_follows.orcredit', '3']
+                            }, 1, 0],
+
+                        }
+                    },
+                    sum_count1: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$t_finance_follows.orcredit', '1']
+                            }, '$t_finance_follows.credit_money', 0],
+
+                        }
+                    },
+                    sum_time1: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$t_finance_follows.orcredit', '1']
+                            }, '$t_finance_follows.accept_time', 0],
+
+                        }
+                    },
+                    sum_rate1: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$t_finance_follows.orcredit', '1']
+                            }, { $toDouble: '$t_finance_follows.sxcplilue'}, 0],
+
+                        }
+                    },
+
+                }
+            },
+            {
+                $lookup:
+                    {
+                        from: "intelligent_follow",
+                        let: {
+                            jg_id: {
+                                $toString: "$id"
+                            }
+                        },
+                        pipeline: [
+                            {
+                                $match:
+                                    {
+                                        $expr:
+                                            {
+                                                $and:
+                                                    [
+                                                        {
+                                                            $eq: ['$uid', "$$jg_id"]
+                                                        },
+
+                                                    ]
+                                            }
+                                    }
+                            },
+
+                        ],
+                        as: "intelligent_follows"
+                    }
+            },
+            {
+                $unwind: {
+                    path: '$intelligent_follows',
+                    preserveNullAndEmptyArrays: true,
+
+                },
+
+            },
+            {
+                $group: {
+                    _id: '$name',
+                    id: {
+                        $first: "$id"
+                    },
+                    help_count1: {
+                        $first: "$help_count1"
+                    },
+                    receive_count1: {
+                        $first: "$receive_count1"
+                    },
+                    approval_count1: {
+                        $first: "$approval_count1"
+                    },
+                    refuse_count1: {
+                        $first: "$refuse_count1"
+                    },
+                    sum_count1: {
+                        $first: "$sum_count1"
+                    },
+                    sum_time1: {
+                        $first: "$sum_time1"
+                    },
+                    sum_rate1: {
+                        $first: "$sum_rate1"
+                    },
+                    help_count2: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$intelligent_follows.creditStatus', '1']
+                            }, 1, 0],
+
+                        }
+                    },
+                    receive_count2: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$intelligent_follows.creditStatus', '0']
+                            }, 1, 0],
+
+                        }
+                    },
+                    approval_count2: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$intelligent_follows.creditStatus', '2']
+                            }, 1, 0],
+
+                        }
+                    },
+                    refuse_count2: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$intelligent_follows.creditStatus', '3']
+                            }, 1, 0],
+
+                        }
+                    },
+                    sum_count2: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$intelligent_follows.creditStatus', '1']
+                            }, '$intelligent_follows.credit_money', 0],
+
+                        }
+                    },
+                    sum_time2: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$intelligent_follows.creditStatus', '1']
+                            }, '$intelligent_follows.accept_time', 0],
+
+                        }
+                    },
+                    sum_rate2: {
+                        $sum: {
+                            $cond: [{
+                                $eq: ['$intelligent_follows.creditStatus', '1']
+                            }, { $toDouble: '$intelligent_follows.sxcplilue'}, 0],
+
+                        }
+                    },
+
+                }
+            },
+            {
+                $lookup:
+                    {
+                        from: "claim_need",
+                        let: {
+                            jg_id: {
+                                $toString: "$id"
+                            }
+                        },
+                        pipeline: [
+                            {
+                                $match:
+                                    {
+                                        $expr:
+                                            {
+                                                $and:
+                                                    [
+                                                        {
+                                                            $eq: ['$status', "0"],
+                                                        },
+                                                        {
+                                                            $eq: ['$jg_id', "$$jg_id"]
+                                                        },
+
+                                                    ]
+                                            }
+                                    }
+                            },
+
+                        ],
+                        as: "claim_needs"
+                    }
+            },
+            {
+                $lookup:
+                    {
+                        from: "intelligent_docking",
+                        let: {
+                            jg_id: {
+                                $toString: "$id"
+                            }
+                        },
+                        pipeline: [
+                            {
+                                $match:
+                                    {
+                                        $expr:
+                                            {
+                                                $and:
+                                                    [
+                                                        {
+                                                            $eq: ['$jg_id', "$$jg_id"]
+                                                        },
+
+                                                    ]
+                                            }
+                                    }
+                            },
+
+                        ],
+                        as: "intelligent_dockings"
+                    }
+            },
+            {
+                $project: {
+                    id: 1,
+                    help_count1: 1,
+                    receive_count1: 1,
+                    approval_count1: 1,
+                    refuse_count1: 1,
+                    sum_count1: 1,
+                    sum_time1: 1,
+                    help_count2: 1,
+                    receive_count2: 1,
+                    approval_count2: 1,
+                    refuse_count2: 1,
+                    sum_count2: 1,
+                    sum_time2: 1,
+                    sum_rate1: 1,
+                    sum_rate2: 1,
+                    push_count1: {
+                        $size: "$claim_needs"
+                    },
+                    push_count2: {
+                        $size: "$intelligent_dockings"
+                    },
+
+                }
+            },
+            {
+                $project: {
+                    _id: 0,
+                    bank_name: '$_id',
+                    push_count: {
+                        $add: ["$push_count1", "$push_count2"]
+                    },
+                    //                    receive_count:{ $add: [ "$receive_count1", "$receive_count2" ] },
+                    approval_count: {
+                        $add: ["$approval_count1", "$approval_count2"]
+                    },
+                    help_count: {
+                        $add: ["$help_count1", "$help_count2"]
+                    },
+                    refuse_count: {
+                        $add: ["$refuse_count1", "$refuse_count2"]
+                    },
+                    sum_money: {
+                        $add: ["$sum_count1", "$sum_count2"]
+                    },
+                    avg_money: {
+                        $cond: {
+                            if : {
+                                $eq: [{
+                                    $add: ["$help_count1", "$help_count2"]
+                                }, 0]
+                            },
+                            then: 0,
+                            else : {
+                                $divide: [{
+                                    $add: ["$sum_count1", "$sum_count2"]
+                                }, {
+                                    $add: ["$help_count1", "$help_count2"]
+                                }]
+                            },
+
+                        }
+                    },
+                    avg_time: {
+                        $cond: {
+                            if : {
+                                $eq: [{
+                                    $add: ["$help_count1", "$help_count2"]
+                                }, 0]
+                            },
+                            then: 0,
+                            else : {
+                                $divide: [{
+                                    $add: ["$sum_time1", "$sum_time2"]
+                                }, {
+                                    $multiply: [{
+                                        $add: ["$help_count1", "$help_count2"]
+                                    }, 86400000]
+                                }]
+                            },
+
+                        }
+                    },
+                    success_probability: {
+                        $cond: {
+                            if : {
+                                $eq: [{
+                                    $add: ["$help_count1", "$help_count2", "$refuse_count1", "$refuse_count2"]
+                                }, 0]
+                            },
+                            then: 0,
+                            else : {
+                                $multiply: [{
+                                    $divide: [{
+                                        $add: ["$help_count1", "$help_count2"]
+                                    }, {
+                                        $add: ["$help_count1", "$help_count2", "$refuse_count1", "$refuse_count2"]
+                                    }]
+                                }, 100]
+                            },
+
+                        }
+                    },
+                    avg_rate:  {
+                        $cond: {
+                            if : {
+                                $eq: [{
+                                    $add: ["$help_count1", "$help_count2"]
+                                }, 0]
+                            },
+                            then: 0,
+                            else : {
+                                $divide: [{
+                                    $add: ["$sum_rate1", "$sum_rate2"]
+                                }, {
+                                    $add: ["$help_count1", "$help_count2"]
+                                }]
+                            },
+
+                        }
+                    },
+
+                }
+            },
+            {
+                $count: 'total',
+            },
+        ];
+
+        /*let dataAgg = [
+            {
+                $lookup:
+                    {
+                        from: "t_finance_follow",
+                        let: {
+                            jg_id: {
+                                $toString: "$_id"
+                            }
+                        },
+                        pipeline: [
+                            {
+                                $match:
+                                    {
+                                        $expr:
+                                            {
+                                                $and:
+                                                    [
+                                                        {
+                                                            $eq: ['$userid', "$$jg_id"]
+                                                        },
+
+                                                    ]
+                                            }
+                                    }
+                            },
+
+                        ],
+                        as: "t_finance_follows"
+                    }
+            },
+            {
+                $unwind: {
+                    path: '$t_finance_follows',
+                    preserveNullAndEmptyArrays: true,
+
+                },
+
             },
             {
                 $group: {
@@ -2840,7 +3693,7 @@ class TGovernmentStatisticsService extends CrudService {
             {
                 $count: 'total',
             },
-        ];
+        ];*/
 
         const data = await this.institutionModel.aggregate(dataAgg);
         const totalTemp = await this.institutionModel.aggregate(totalAgg);

+ 98 - 0
app/service/tNewAssign.js

@@ -7,12 +7,24 @@ const { ObjectId } = require('mongoose').Types;
 const { CrudService } = require('naf-framework-mongoose/lib/service');
 const { BusinessError, ErrorCode } = require('naf-core').Error;
 
+const smsUtil = require('../util/smsUtil.js');
+
 class TNewAssignService extends CrudService {
     constructor(ctx) {
         super(ctx, 't_new_assign');
         this.model = this.ctx.model.TNewAssign;
         this.cModel = this.ctx.model.Claimneed;
         this.iModel = this.ctx.model.IntelligentDocking;
+        this.companyuserModel = this.ctx.model.Companyuser;
+        this.companyidentifyModel = this.ctx.model.Companyidentify;
+        this.institutionModel = this.ctx.model.Institution;
+        this.otheruserModel = this.ctx.model.Otheruser;
+        this.fModel = this.ctx.model.Financefollow;
+        this.intelligentFollowModel = this.ctx.model.IntelligentFollow;
+
+        this.SignNameOne = '惠金信用信息服务';
+        this.TemplateCodeOne = 'SMS_190095119';
+        this.TemplateCodeTwo = 'SMS_190095119';
     }
 
     // 重写创建方法
@@ -34,9 +46,95 @@ class TNewAssignService extends CrudService {
         }
         let msg = await this.ctx.service.viewnews.insertViewNews('指派操作',`您申请的${tempMsg}已指派为新的金融产品${product_name},请知晓。`,userid);
 
+        await this.send(data);
+
         return data;
     }
 
+    async callMessage(SignName,TemplateCode,PhoneNumbers,TemplateParam) {
+        let res = 'fail';
+        try {
+            let resTemp = await smsUtil.smsAlert(PhoneNumbers, SignName, TemplateCode, JSON.stringify(TemplateParam));
+            console.log('callMessage', resTemp);
+            res = 'success';
+        }catch (e) {
+            console.log(e);
+        }
+        return res;
+    }
+
+    async send(data) {
+        console.log(data);
+
+        let companyuser = await this.companyuserModel.findById(data.userid);
+        console.log(companyuser._doc.phone);
+        console.log(companyuser._doc.person);
+        console.log(data.company_name);
+        /*let companyuserTemplateParam = {};
+        this.callMessage(this.SignNameOne,this.TemplateCodeOne,companyuser._doc.phone,companyuserTemplateParam);*/
+
+        /*let financefollow = await this.fModel.findOne({finceId:data.demand_id});
+        console.log(financefollow);
+        console.log(financefollow._doc.uuid);*/
+
+        /*let intelligentFollow = await this.intelligentFollowModel.findOne({intelligentId:data.demand_id});
+        console.log(intelligentFollow);
+        console.log(intelligentFollow._doc.uuid);*/
+
+        let institution = await this.institutionModel.findById(data.jg_id);
+        if(_.isArray(institution._doc.uid) && institution._doc.uid.length > 0){
+
+            for (let i = 0; i < institution._doc.uid.length; i++) {
+                let otheruser = await this.otheruserModel.findById(institution._doc.uid[i]);
+                console.log(otheruser._doc.phone);
+
+                /*let institutionTemplateParam = {};
+                this.callMessage(this.SignNameOne,this.TemplateCodeTwo,otheruser._doc.phone,institutionTemplateParam);*/
+
+            }
+
+        }else {
+            let otheruser = await this.otheruserModel.findById(institution._doc.uid);
+            console.log(otheruser._doc.phone);
+
+            /*let institutionTemplateParam = {};
+            this.callMessage(this.SignNameOne,this.TemplateCodeTwo,otheruser._doc.phone,institutionTemplateParam);*/
+        }
+
+    }
+
+    /*async send(data) {
+        console.log(data);
+
+        let companyuser = await this.companyuserModel.findById(data.userid);
+        console.log(companyuser._doc.phone);
+        console.log(companyuser._doc.person);
+        console.log(data.company_name);
+
+        let financefollow = await this.fModel.findOne({finceId:data.demand_id});
+        console.log(financefollow);
+        console.log(financefollow._doc.uuid);
+
+        let intelligentFollow = await this.intelligentFollowModel.findOne({intelligentId:data.demand_id});
+        console.log(intelligentFollow);
+        console.log(intelligentFollow._doc.uuid);
+
+        let institution = await this.institutionModel.findById(data.jg_id);
+        if(_.isArray(institution._doc.uid) && institution._doc.uid.length > 0){
+
+            for (let i = 0; i < institution._doc.uid.length; i++) {
+                let otheruser = await this.otheruserModel.findById(institution._doc.uid[i]);
+                try {
+                    console.log(otheruser._doc.phone);
+                }catch (e) {
+                    console.log(e);
+                }
+            }
+
+        }
+
+    }*/
+
     // 条件查询
     async select(payload) {
 

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1044 - 6
app/service/tUrgeHandle.js