Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
kaopu-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
8ec13a14
authored
Jan 15, 2020
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改动态分数统计
parent
5c3d207d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
cmd/static/main.go
internal/dao/com_credits.go
cmd/static/main.go
View file @
8ec13a14
...
@@ -79,6 +79,7 @@ func main() {
...
@@ -79,6 +79,7 @@ func main() {
fmt
.
Println
(
v
[
"id"
])
fmt
.
Println
(
v
[
"id"
])
detail
.
InsertScoreMsg
.
ComCreditsId
=
detail
.
StringTurnInt64
(
v
[
"id"
])
detail
.
InsertScoreMsg
.
ComCreditsId
=
detail
.
StringTurnInt64
(
v
[
"id"
])
detail
.
Com_credits
.
CompanyName
=
v
[
"company_name"
]
detail
.
GetCompanyRunInfo
()
detail
.
GetCompanyRunInfo
()
detail
.
BasicInfo
,
_
=
detail
.
Svclient
.
GetBasicInfoByCid
(
detail
.
Conclient
,
v
[
"erp_company_code"
])
detail
.
BasicInfo
,
_
=
detail
.
Svclient
.
GetBasicInfoByCid
(
detail
.
Conclient
,
v
[
"erp_company_code"
])
detail
.
SetSumScore
(
detail
.
Conclient
)
detail
.
SetSumScore
(
detail
.
Conclient
)
...
...
internal/dao/com_credits.go
View file @
8ec13a14
...
@@ -39,8 +39,9 @@ func (d *dao) UpdateStaticSumScores(ctx context.Context,com_credits model.ComCre
...
@@ -39,8 +39,9 @@ func (d *dao) UpdateStaticSumScores(ctx context.Context,com_credits model.ComCre
row
,
err
:=
d
.
db
.
Exec
(
ctx
,
execSql
,
com_credits
.
StaticCreditScore
,
com_credits
.
Id
)
row
,
err
:=
d
.
db
.
Exec
(
ctx
,
execSql
,
com_credits
.
StaticCreditScore
,
com_credits
.
Id
)
//修改银行的
//修改银行的
execSql
=
"update `lie_com_credits` set `static_credit_score` = ? where company_name =
'?'
"
execSql
=
"update `lie_com_credits` set `static_credit_score` = ? where company_name =
?
"
_
,
err
=
d
.
db_bank
.
Exec
(
ctx
,
execSql
,
com_credits
.
StaticCreditScore
,
com_credits
.
CompanyName
)
_
,
err
=
d
.
db_bank
.
Exec
(
ctx
,
execSql
,
com_credits
.
StaticCreditScore
,
com_credits
.
CompanyName
)
fmt
.
Println
(
com_credits
.
CompanyName
)
logic
.
CheckErr
(
err
)
logic
.
CheckErr
(
err
)
d
.
UpdateComCredits
(
ctx
,
com_credits
)
d
.
UpdateComCredits
(
ctx
,
com_credits
)
...
...
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