Commit 0622584f by sxy

fix: 推送商机新增字段

parent 44d3d26d
......@@ -17,10 +17,13 @@ class FgbusinesschancService extends ServiceBase {
// this.customQuery(sql);
// }
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, {
...actionBody,
"created_at": actionBody.createTime ? new Date(actionBody.createTime) : new Date()
companyId: actionBody.companyId || null,
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();
};
......
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