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
cea35bd3
authored
Feb 15, 2022
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整
parent
31c0a58c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
internal/dao/sqlx.go
internal/logic/crm_user.go
internal/dao/sqlx.go
View file @
cea35bd3
...
...
@@ -67,12 +67,15 @@ func GetLiexinDb()(*sqlx.DB) {
}
func
GetLiexinOrderDb
()(
*
sqlx
.
DB
)
{
onceLiexinOrder
.
Do
(
func
()
{
dbConfig
:=
configs
.
GetDBLiexinOrder
()
db
,
err
:=
sqlx
.
Open
(
dbConfig
.
Engine
,
fmt
.
Sprintf
(
"%s:%s@tcp(%s:%s)/%s?charset=utf8"
,
dbConfig
.
User
,
dbConfig
.
Pass
,
dbConfig
.
Ip
,
dbConfig
.
Port
,
dbConfig
.
Table
))
if
err
!=
nil
{
log
.
Fatalln
(
err
)
}
return
db
instanceLiexinOrder
=
db
})
return
instanceLiexinOrder
}
func
GetLiexinBomDb
()(
*
sqlx
.
DB
)
{
...
...
internal/logic/crm_user.go
View file @
cea35bd3
...
...
@@ -108,11 +108,11 @@ func InsertMemberUser(memberInfo model.MemberAddUserData)bool {
// 若是线下用户,则新增跟进用户任务
if
memberInfo
.
Sale_Id
!=
0
&&
(
memberInfo
.
Channel_type
==
2
||
memberInfo
.
Channel_type
==
3
)
{
var
task_setup
model
.
TaskSetup
dao
.
Get
New
Db
()
.
Get
(
&
task_setup
,
"select * from lie_task_setup where task_type = ?"
,
10
)
dao
.
GetDb
()
.
Get
(
&
task_setup
,
"select * from lie_task_setup where task_type = ?"
,
10
)
if
task_setup
.
Id
!=
0
{
var
task_setup_details
model
.
TaskSetupDetails
dao
.
Get
New
Db
()
.
Get
(
&
task_setup_details
,
"select * from lie_task_setup_details where task_id = ?"
,
task_setup
.
Id
)
dao
.
GetDb
()
.
Get
(
&
task_setup_details
,
"select * from lie_task_setup_details where task_id = ?"
,
task_setup
.
Id
)
var
task_end_time
int64
task_end_time
=
curr_time
+
(
task_setup_details
.
TaskEndTime
*
60
)
...
...
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