|
@@ -2,6 +2,7 @@ package models
|
|
|
|
|
|
import (
|
|
|
"github.com/beego/beego/v2/client/orm"
|
|
|
+ "hongze/hongze_clpt/utils"
|
|
|
"time"
|
|
|
)
|
|
|
|
|
@@ -28,9 +29,9 @@ func AddApplyRecord(item *ApplyTryReq, mobile, companyNamePay string, userId, co
|
|
|
}
|
|
|
}()
|
|
|
|
|
|
- sql := `INSERT INTO cygx_apply_record (user_id,business_card_url, real_name,company_name, mobile,create_time, apply_method,company_id_pay,company_name_pay,company_id_type)
|
|
|
- VALUES(?,?,?,?,?,?,?,?,?,?) `
|
|
|
- _, err = o.Raw(sql, userId, item.BusinessCardUrl, item.RealName, item.CompanyName, mobile, time.Now(), item.ApplyMethod, companyIdPay, companyNamePay, CompanyIdType).Exec()
|
|
|
+ sql := `INSERT INTO cygx_apply_record (user_id,business_card_url, real_name,company_name, mobile,create_time, apply_method,company_id_pay,company_name_pay,company_id_type,register_platform)
|
|
|
+ VALUES(?,?,?,?,?,?,?,?,?,?,?) `
|
|
|
+ _, err = o.Raw(sql, userId, item.BusinessCardUrl, item.RealName, item.CompanyName, mobile, time.Now(), item.ApplyMethod, companyIdPay, companyNamePay, CompanyIdType, utils.REGISTER_PLATFORM).Exec()
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|