|
@@ -213,7 +213,7 @@ type CygxApplyRecord struct {
|
|
|
ApplyMethod int `description:"1:已付费客户申请试用,2:非客户申请试用"`
|
|
|
}
|
|
|
|
|
|
-func AddApplyRecord(item *ApplyTryReq, mobile string, userId int) (err error) {
|
|
|
+func AddApplyRecord(item *ApplyTryReq, mobile,companyNamePay string, userId,companyIdPay int) (err error) {
|
|
|
o := orm.NewOrm()
|
|
|
o.Begin()
|
|
|
defer func() {
|
|
@@ -224,9 +224,9 @@ func AddApplyRecord(item *ApplyTryReq, mobile string, userId int) (err error) {
|
|
|
}
|
|
|
}()
|
|
|
|
|
|
- sql := `INSERT INTO cygx_apply_record (user_id,business_card_url, real_name,company_name, mobile,create_time, apply_method)
|
|
|
- VALUES(?,?,?,?,?,?,?) `
|
|
|
- _, err = o.Raw(sql, userId, item.BusinessCardUrl, item.RealName, item.CompanyName, mobile, time.Now(), item.ApplyMethod).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)
|
|
|
+ VALUES(?,?,?,?,?,?,?,?,?) `
|
|
|
+ _, err = o.Raw(sql, userId, item.BusinessCardUrl, item.RealName, item.CompanyName, mobile, time.Now(), item.ApplyMethod,companyIdPay,companyNamePay).Exec()
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|