Commit 31c0a58c by 朱继来

关联表添加邀请码

parent 3834dae0
Showing with 2 additions and 2 deletions
...@@ -19,7 +19,7 @@ const INSERTISCREATEORDER = "INSERT INTO `lie_user_extend` (`user_id`, `no_crea ...@@ -19,7 +19,7 @@ const INSERTISCREATEORDER = "INSERT INTO `lie_user_extend` (`user_id`, `no_crea
const INSERTSALES = "INSERT INTO `lie_salesman` (`user_id`, `sale_id`,`assign_time`, `update_time`)VALUES(?,?,?,?)" const INSERTSALES = "INSERT INTO `lie_salesman` (`user_id`, `sale_id`,`assign_time`, `update_time`)VALUES(?,?,?,?)"
const INSERTINVOICECOMUSER = "INSERT INTO `lie_invoice_com_user` (`com_id`, `user_id`, `sale_id`, `department_id`, `sale_type`, `create_time`)VALUES( ?, ?, ?, ?, ?, ?)" const INSERTINVOICECOMUSER = "INSERT INTO `lie_invoice_com_user` (`com_id`, `user_id`, `sale_id`, `department_id`, `sale_type`, `create_time`, `invite_code`)VALUES( ?, ?, ?, ?, ?, ?, ?)"
const INSERTFOLLOWTASK = "INSERT INTO `lie_task_info` (user_id, task_id, task_type, task_display_degree, sale_id, end_time, create_time, update_time) VALUES (?,?,?,?,?,?,?,?)" const INSERTFOLLOWTASK = "INSERT INTO `lie_task_info` (user_id, task_id, task_type, task_display_degree, sale_id, end_time, create_time, update_time) VALUES (?,?,?,?,?,?,?,?)"
...@@ -88,7 +88,7 @@ func InsertMemberUser(memberInfo model.MemberAddUserData)bool { ...@@ -88,7 +88,7 @@ func InsertMemberUser(memberInfo model.MemberAddUserData)bool {
} }
//插入用户关联关系 20200406新增 //插入用户关联关系 20200406新增
insertResult, err = dbTran.Exec(INSERTINVOICECOMUSER,0,memberInfo.User_Id,memberInfo.Sale_Id,department_id,memberInfo.Channel_type,memberInfo.Create_Time) insertResult, err = dbTran.Exec(INSERTINVOICECOMUSER,0,memberInfo.User_Id,memberInfo.Sale_Id,department_id,memberInfo.Channel_type,memberInfo.Create_Time, memberInfo.Invite_Code)
if err != nil { if err != nil {
service.WriteErrDetail("插入用户数据错误:插入用户关联关系"+err.Error()) service.WriteErrDetail("插入用户数据错误:插入用户关联关系"+err.Error())
err = dbTran.Rollback() err = dbTran.Rollback()
......
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 sign in to comment