Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
feature-api-test
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
feature-api-test
Commits
18915245
Commit
18915245
authored
Dec 26, 2019
by
路朝阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch 'luzhaoyamg_1111' into development
# Conflicts: # .idea/workspace.xml
parent
818f8e10
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
316 additions
and
8 deletions
+316
-8
workspace.xml
.idea/workspace.xml
+315
-0
Sql_vcc.py
service/Sql_vcc.py
+0
-7
startup.py
startup.py
+1
-1
No files found.
.idea/workspace.xml
View file @
18915245
This diff is collapsed.
Click to expand it.
service/Sql_vcc.py
View file @
18915245
...
...
@@ -591,23 +591,16 @@ def id_user_credited(validity_date,user_id):
def
day_incoming_parts
(
Same_day_first
,
Same_day_next
):
"""当日客户数"""
print
(
Same_day_first
,
Same_day_next
)
_Sql
=
"""select count(distinct user_id) count, apply_status applyStatus from risk_record
where created_at >= "{0}" and created_at < "{1}" group by apply_status;"""
.
format
(
Same_day_first
,
Same_day_next
)
print
(
'----2----'
)
print
(
_Sql
)
_df
=
pd
.
read_sql
(
_Sql
,
con_vccthree_vcc_talos
)
print
(
'----3----'
)
return
_df
def
day_amount_credit
(
Same_day_first
,
Same_day_next
):
"""当日授信总额度"""
print
(
Same_day_first
,
Same_day_next
)
_Sql
=
"""select sum(limit_amount) totalCount from acs_limit_record where limit_record_type = 'New'
and limit_amount > 0 and create_time >= "{0}"and create_time < "{1}";"""
.
format
(
Same_day_first
,
Same_day_next
)
print
(
'----2----'
)
_df
=
pd
.
read_sql
(
_Sql
,
con_vccthree_acsdb
)
print
(
'----3----'
)
return
_df
def
sale_phone_white
(
phone_no
):
...
...
startup.py
View file @
18915245
...
...
@@ -61,5 +61,5 @@ if __name__ == "__main__":
app
=
apps
()
http_server
=
tornado
.
httpserver
.
HTTPServer
(
app
)
http_server
.
bind
(
options
.
port
)
http_server
.
start
(
num_processes
=
0
)
# num_processes=0 # tornado将按照cpu核数来fork进程
http_server
.
start
()
# num_processes=0 # tornado将按照cpu核数来fork进程
tornado
.
ioloop
.
IOLoop
.
instance
()
.
start
()
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