|
@@ -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();// 创建时间时的时间戳
|