model_file_changes:GWM
This commit is contained in:
parent
4cf7aaf2a1
commit
0ab4b425eb
@ -78,8 +78,8 @@ exports.PullCreditPdData = async (req, res) => {
|
|||||||
var tableName = arr[index];
|
var tableName = arr[index];
|
||||||
console.log(tableName);
|
console.log(tableName);
|
||||||
await tableName.create(element)
|
await tableName.create(element)
|
||||||
.then((successData)=>{logMsg.info(OverallKey+"insert success ,PdId= "+successData.dataValues.pd_id);})
|
.then((successData)=>{logMsg.info(tableName+" insert success ,PdId= "+successData.dataValues.pd_id);})
|
||||||
.catch((err)=>{ logMsg.info(OverallKey+"insert failed ,PdId = "+PDID.dataValues.pd_id+ " ERR =" + err); });
|
.catch((err)=>{ logMsg.info(tableName+" insert failed ,PdId = "+PDID.dataValues.pd_id+ " ERR =" + err); });
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -90,8 +90,8 @@ exports.PullCreditPdData = async (req, res) => {
|
|||||||
var tableName = arr[index];
|
var tableName = arr[index];
|
||||||
console.log(tableName);
|
console.log(tableName);
|
||||||
await tableName.create(obj)
|
await tableName.create(obj)
|
||||||
.then((successData)=>{logMsg.info(OverallKey+"insert success ,PdId= "+successData.dataValues.pd_id);})
|
.then((successData)=>{logMsg.info(tableName+" insert success ,PdId= "+successData.dataValues.pd_id);})
|
||||||
.catch((err)=>{ logMsg.info(OverallKey+"insert failed ,PdId= "+PDID.dataValues.pd_id+ " ERR =" + err); });
|
.catch((err)=>{ logMsg.info(tableName+" insert failed ,PdId= "+PDID.dataValues.pd_id+ " ERR =" + err); });
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,7 +15,7 @@ module.exports = (sequelize, DataTypes) => {
|
|||||||
facility_details_specify: { type: DataTypes.STRING },
|
facility_details_specify: { type: DataTypes.STRING },
|
||||||
facility_details_other_lender: { type: DataTypes.STRING },
|
facility_details_other_lender: { type: DataTypes.STRING },
|
||||||
facility_details_other: { type: DataTypes.STRING },
|
facility_details_other: { type: DataTypes.STRING },
|
||||||
broken_period_turnover_percent: { type: DataTypes.INTEGER },
|
broken_period_turnover_percent: { type: DataTypes.STRING },
|
||||||
broken_period_turnover_py: { type: DataTypes.STRING },
|
broken_period_turnover_py: { type: DataTypes.STRING },
|
||||||
broken_period_turnover_cy: { type: DataTypes.STRING },
|
broken_period_turnover_cy: { type: DataTypes.STRING },
|
||||||
broken_period_no_of_months: { type: DataTypes.INTEGER },
|
broken_period_no_of_months: { type: DataTypes.INTEGER },
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user