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
5aed1617
authored
Dec 30, 2019
by
Joneq
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
增加银行数据的使用
parent
e5346fcf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
internal/dao/bank_dong.go
internal/dao/bank_dong.go
View file @
5aed1617
...
...
@@ -27,16 +27,16 @@ const (
"sum(unload_amount) unload_amount,"
+
//出货总金额
"sum(insurance_user_count) insurance_user_count,"
+
//社保参保人数
"sum(gross_profit) gross_profit "
+
//累计毛利
" from lie_basic_month where erp_company_code='%s' and month in(%s)"
//基础数据
" from lie_basic_month
_tolerance
where erp_company_code='%s' and month in(%s)"
//基础数据
bank_sql5
=
"select sum(final_score) sum_dong_score from lie_scores where type=2 and com_credits_id=%d and month in(%s)"
;
//总计动态信用分
bank_sql6
=
"select * from lie_basic_month where erp_company_code='%s' and month in(%s)"
//获取详情
bank_sql6
=
"select * from lie_basic_month
_tolerance
where erp_company_code='%s' and month in(%s)"
//获取详情
bank_sql7
=
"SELECT ((t.my_rate+1)/(t.plat_rate+1))-1 as delay_rate FROM "
+
"( "
+
"SELECT "
+
" (SELECT sum(delay_amount)/sum(receive_amount) from lie_basic_month where erp_company_code = '%s' and MONTH in (%s)) my_rate, "
+
" (SELECT sum(delay_amount)/sum(receive_amount) from lie_basic_month where MONTH in (%s)) plat_rate "
+
" (SELECT sum(delay_amount)/sum(receive_amount) from lie_basic_month
_tolerance
where erp_company_code = '%s' and MONTH in (%s)) my_rate, "
+
" (SELECT sum(delay_amount)/sum(receive_amount) from lie_basic_month
_tolerance
where MONTH in (%s)) plat_rate "
+
")t "
)
...
...
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