Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
golang-queue-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
cd9dd1bc
authored
May 27, 2021
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整
parent
abd95186
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
user/company/main.go
user/company/main.go
View file @
cd9dd1bc
...
...
@@ -84,7 +84,7 @@ func updateData() (err error) {
body
,
err
:=
ioutil
.
ReadAll
(
resp
.
Body
)
erp_com_sn
:=
gjson
.
Get
(
string
(
body
),
"com_credit.erp_company_code"
)
.
String
()
// ERP编码
//
erp_com_sn := gjson.Get(string(body), "com_credit.erp_company_code").String() // ERP编码
com_addr
:=
gjson
.
Get
(
string
(
body
),
"com_basic_info.com_address"
)
.
String
()
// 公司地址
establishment_time
:=
gjson
.
Get
(
string
(
body
),
"com_basic_info.establishment_time"
)
.
Int
()
// 成立时间
registered_capital
:=
gjson
.
Get
(
string
(
body
),
"com_basic_info.registered_capital"
)
.
Float
()
// 注册资本
...
...
@@ -99,9 +99,9 @@ func updateData() (err error) {
curr_time
:=
time
.
Now
()
.
Unix
()
// 更新发票公司表
_
,
err
=
db
.
CrmDB
.
Exec
(
"update lie_invoice_company set
erp_com_sn = ?,
com_addr = ?, establishment_time = ?, registered_capital = ?, com_organization = ?,"
+
_
,
err
=
db
.
CrmDB
.
Exec
(
"update lie_invoice_company set com_addr = ?, establishment_time = ?, registered_capital = ?, com_organization = ?,"
+
"legal_representative = ?, five_legal_change = ?, two_years_no_lawsuit = ?, total_credit_score = ?, ichunt_hunting_core = ?, blacklist_hit = ?, "
+
"risk_type = ?, update_time = ? where com_name = ?"
,
erp_com_sn
,
com_addr
,
establishment_time
,
registered_capital
,
com_organization
,
legal_representative
,
"risk_type = ?, update_time = ? where com_name = ?"
,
com_addr
,
establishment_time
,
registered_capital
,
com_organization
,
legal_representative
,
five_legal_change
,
two_years_no_lawsuit
,
total_credit_score
,
ichunt_hunting_core
,
blacklist_hit
,
risk_type
,
curr_time
,
company
.
ComName
)
var
mobile
[]
string
=
make
([]
string
,
0
)
...
...
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