Commit 6f99cfef by sxy

feat : add bussinessType

parent ff9e5f1f
...@@ -9,13 +9,14 @@ class FgbusinesschancService extends ServiceBase { ...@@ -9,13 +9,14 @@ class FgbusinesschancService extends ServiceBase {
} }
async create(req, actionBody) { async create(req, actionBody) {
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)"; var sql = "INSERT INTO `fg_businesschance` (`companyId` ,`crm_company_name`,`standard_company_name`,`businessId`,`created_at` ,`businessType`) VALUE (:companyId,:crm_company_name,:standard_company_name,:businessId,:created_at,:businessType)";
await this.customInsert(sql, { await this.customInsert(sql, {
companyId: actionBody.companyId || null, companyId: actionBody.companyId || null,
crm_company_name: actionBody.crm_company_name || null, crm_company_name: actionBody.crm_company_name || null,
standard_company_name: actionBody.standard_company_name || null, standard_company_name: actionBody.standard_company_name || null,
businessId: actionBody.businessId || null, businessId: actionBody.businessId || null,
created_at: actionBody.createTime ? new Date(actionBody.createTime) : new Date() created_at: actionBody.createTime ? new Date(actionBody.createTime) : new Date(),
businessType: actionBody.businessType
}); });
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