Commit 0622584f by sxy

fix: 推送商机新增字段

parent 44d3d26d
...@@ -17,10 +17,13 @@ class FgbusinesschancService extends ServiceBase { ...@@ -17,10 +17,13 @@ class FgbusinesschancService extends ServiceBase {
// this.customQuery(sql); // this.customQuery(sql);
// } // }
async create(req, actionBody) { async create(req, actionBody) {
var sql = "INSERT INTO `fg_businesschance` (`companyId` ,`companyName`,`businessId`,`created_at` ) VALUE (:companyId,:companyName,:businessId,:created_at)"; var sql = "INSERT INTO `fg_businesschance` (`companyId` ,`crm_company_name`,`standard_company_name`,`businessId`,`created_at` ) VALUE (:companyId,:crm_company_name,:standard_company_name,:businessId,:created_at)";
await this.customInsert(sql, { await this.customInsert(sql, {
...actionBody, companyId: actionBody.companyId || null,
"created_at": actionBody.createTime ? new Date(actionBody.createTime) : new Date() crm_company_name: actionBody.crm_company_name || null,
standard_company_name: actionBody.standard_company_name || null,
businessId: actionBody.businessId || null,
created_at: actionBody.createTime ? new Date(actionBody.createTime) : new Date()
}); });
return system.getResultSuccess(); return system.getResultSuccess();
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment