Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CnChunfeng
/
crm_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
474b730f
authored
Jul 09, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整新增用户脚本
parent
ab2494d4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
internal/logic/crm_user.go
internal/logic/crm_user.go
View file @
474b730f
...
...
@@ -17,7 +17,7 @@ const INSERTCOMPANY = "INSERT INTO `lie_user_company` (" +
const
INSERTISCREATEORDER
=
"INSERT INTO `lie_user_extend` (`user_id`, `no_create_order`,`outter_uid`)VALUES(?,?,?)"
const
INSERTSALES
=
"INSERT INTO `lie_salesman` (`user_id`, `sale_id`,`assign_time`
)VALUES(
?,?,?)"
const
INSERTSALES
=
"INSERT INTO `lie_salesman` (`user_id`, `sale_id`,`assign_time`
, `update_time`)VALUES(?,
?,?,?)"
//检测会员用户是否存在
...
...
@@ -61,7 +61,7 @@ func InsertMemberUser(memberInfo model.MemberAddUserData)bool {
if
memberInfo
.
Sale_Id
!=
0
{
//插入跟进销售
insertResult
,
err
=
dbTran
.
Exec
(
INSERTSALES
,
lastInsertId
,
memberInfo
.
Sale_Id
,
memberInfo
.
Create_Time
)
insertResult
,
err
=
dbTran
.
Exec
(
INSERTSALES
,
lastInsertId
,
memberInfo
.
Sale_Id
,
memberInfo
.
Create_Time
,
memberInfo
.
Create_Time
)
if
err
!=
nil
{
service
.
WriteErrDetail
(
"插入用户数据错误:插入跟进销售"
+
err
.
Error
())
err
=
dbTran
.
Rollback
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment