Browse Source

对接关注

chen 4 years ago
parent
commit
073b651f84

+ 16 - 3
app/controller/.intelligentFollow.js

@@ -7,7 +7,13 @@ module.exports = {
         'accept_time',
         'credit_money',
         'credit_time',
-        '!creditStatus'
+        '!creditStatus',
+        'uuid',
+        'senhemessage',
+        'jindiaomessage',
+        'sxcpname',
+        'sxhowlong',
+        'sxcplilue'
       ]
     },
     destroy: {
@@ -23,7 +29,13 @@ module.exports = {
         'accept_time',
         'credit_money',
         'credit_time',
-        'creditStatus'
+        'creditStatus',
+        'uuid',
+        'senhemessage',
+        'jindiaomessage',
+        'sxcpname',
+        'sxhowlong',
+        'sxcplilue'
       ]
     },
     show: {
@@ -36,7 +48,8 @@ module.exports = {
       parameters: {
         query: {
           intelligentId:'intelligentId',
-          uid:'uid'
+          uid:'uid',
+          uuid:'uuid',
         }
       },
       service: 'query',

+ 4 - 0
app/model/intelligentFollow.js

@@ -17,6 +17,10 @@ const IntelligentFollowSchema = {
   senhemessage: { type: String, maxLength: 200 }, // 审核信息
   jindiaomessage: { type: String, maxLength: 200 }, // 尽调信息
   refusemessage: { type: String, maxLength: 200 }, // 尽调信息
+
+  sxcpname: { type: String, maxLength: 200 }, // 授信产品名称
+  sxhowlong: { type: String, maxLength: 200 }, // 授信期限
+  sxcplilue: { type: String, maxLength: 200 }, // 授信产品利率
 };
 
 

+ 10 - 1
app/service/intelligentFollow.js

@@ -79,7 +79,7 @@ class IntelligentFollowService extends CrudService {
 
   // 授信接口
   async getCredit(data) {
-    const { id, money, creditStatus, senhemessage, jindiaomessage } = data;// id:关注ID money:授信额度  orcredit:状态,senhemessage:审核备注,jindiaomessage:尽调备注
+    const { id, money, creditStatus, senhemessage, jindiaomessage, sxcpname, sxhowlong, sxcplilue } = data;// id:关注ID money:授信额度  orcredit:状态,senhemessage:审核备注,jindiaomessage:尽调备注
     const now = new Date();
     const nowtime = now.getTime();// 当前时间戳(授信时间)
     const intelligentFollow = await this.model.findById(id);
@@ -100,6 +100,15 @@ class IntelligentFollowService extends CrudService {
     if (money) {
       intelligentFollow.credit_money = parseInt(money);
     }
+    if (sxcpname) {
+      intelligentFollow.sxcpname = sxcpname;
+    }
+    if (sxhowlong) {
+      intelligentFollow.sxhowlong = sxhowlong;
+    }
+    if (sxcplilue) {
+      intelligentFollow.sxcplilue = sxcplilue;
+    }
     // 状态
     intelligentFollow.creditStatus = creditStatus;
     const creattime = new Date(intelligentFollow.meta.createdAt).getTime();// 创建时间时的时间戳