Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
00085fd1
Commit
00085fd1
authored
Aug 31, 2022
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
bd750d15
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
10 deletions
+10
-10
entprofile/db/configure.conf
+1
-1
entprofile/service/company_30s.py
+1
-1
entprofile/service/label_connect.py
+1
-1
entprofile/service/label_type_1.py
+1
-1
entprofile/service/moneyAPI.py
+2
-2
entprofile/service/talking.py
+4
-4
No files found.
entprofile/db/configure.conf
View file @
00085fd1
[
database
]
dbhost
=
rm
-
2
zey194899z131ouf
.
mysql
.
rds
.
aliyuncs
.
com
dbhost
=
rm
-
2
zey194899z131ouf
ao
.
mysql
.
rds
.
aliyuncs
.
com
dbport
=
3306
dbname
=
ent_data
dbuser
=
root
...
...
entprofile/service/company_30s.py
View file @
00085fd1
...
...
@@ -4,7 +4,7 @@ from DBUtils.PooledDB import PooledDB
from
common.crm_change_standard
import
getStandardName
MYSQL_HOST
=
'rm-2zey194899z131ouf.mysql.rds.aliyuncs.com'
# 外网地址
MYSQL_HOST
=
'rm-2zey194899z131ouf
ao
.mysql.rds.aliyuncs.com'
# 外网地址
PORT
=
3306
# 外网端口
USER
=
'root'
PASSWORD
=
'Gongsibao2018'
...
...
entprofile/service/label_connect.py
View file @
00085fd1
...
...
@@ -2,7 +2,7 @@ from DBUtils.PooledDB import PooledDB
import
pymysql
,
json
from
flask
import
request
MYSQL_HOST
=
'rm-2zey194899z131ouf.mysql.rds.aliyuncs.com'
# 外网地址
MYSQL_HOST
=
'rm-2zey194899z131ouf
ao
.mysql.rds.aliyuncs.com'
# 外网地址
PORT
=
3306
# 外网端口
USER
=
'root'
PASSWORD
=
'Gongsibao2018'
...
...
entprofile/service/label_type_1.py
View file @
00085fd1
...
...
@@ -11,7 +11,7 @@ import json
"""读取tj_hx_type_connect表,获取大类"""
"""返回格式:["基本标签", "产品标签", "风险标签", "经营标签", "偏好标签"]"""
MYSQL_HOST
=
'rm-2zey194899z131ouf.mysql.rds.aliyuncs.com'
# 外网地址
MYSQL_HOST
=
'rm-2zey194899z131ouf
ao
.mysql.rds.aliyuncs.com'
# 外网地址
PORT
=
3306
# 外网端口
USER
=
'root'
PASSWORD
=
'Gongsibao2018'
...
...
entprofile/service/moneyAPI.py
View file @
00085fd1
...
...
@@ -29,7 +29,7 @@ es1 = Elasticsearch([esip], http_auth=(esuser, espassword), port=7200)
# conn = pymysql.connect(host='43.247.184.94', port=9187, user='nice', passwd='Niceee@2020#@', db='ent_data')
# connection = pymysql.connect(host='43.247.184.94', port=9187, user='nice', passwd='Niceee@2020#@', db='test')
connection
=
pymysql
.
connect
(
host
=
'rm-2zey194899z131ouf.mysql.rds.aliyuncs.com'
,
port
=
3306
,
user
=
'root'
,
passwd
=
'Gongsibao2018'
,
db
=
'ent_data'
)
connection
=
pymysql
.
connect
(
host
=
'rm-2zey194899z131ouf
ao
.mysql.rds.aliyuncs.com'
,
port
=
3306
,
user
=
'root'
,
passwd
=
'Gongsibao2018'
,
db
=
'ent_data'
)
# conn = pymysql.connect(host='47.95.76.74', port=3306, user='root', passwd='Gongsibao2018', db='ent_data')
...
...
@@ -48,7 +48,7 @@ def strQ2B(ustring):
return
rstring
def
moneyTest
(
mycompanyname
):
connection
=
pymysql
.
connect
(
host
=
'rm-2zey194899z131ouf.mysql.rds.aliyuncs.com'
,
port
=
3306
,
user
=
'root'
,
passwd
=
'Gongsibao2018'
,
db
=
'ent_data'
)
connection
=
pymysql
.
connect
(
host
=
'rm-2zey194899z131ouf
ao
.mysql.rds.aliyuncs.com'
,
port
=
3306
,
user
=
'root'
,
passwd
=
'Gongsibao2018'
,
db
=
'ent_data'
)
cur
=
connection
.
cursor
()
result
=
{}
result
[
"data"
]
=
[]
...
...
entprofile/service/talking.py
View file @
00085fd1
...
...
@@ -6,7 +6,7 @@ from flask import Flask, render_template, request
from
flask_cors
import
CORS
def
getName
(
recommendId
):
connection
=
pymysql
.
connect
(
host
=
'rm-2zey194899z131ouf.mysql.rds.aliyuncs.com'
,
port
=
3306
,
user
=
'root'
,
passwd
=
'Gongsibao2018'
,
db
=
'ent_data'
)
connection
=
pymysql
.
connect
(
host
=
'rm-2zey194899z131ouf
ao
.mysql.rds.aliyuncs.com'
,
port
=
3306
,
user
=
'root'
,
passwd
=
'Gongsibao2018'
,
db
=
'ent_data'
)
cur
=
connection
.
cursor
()
sql
=
'select company_name from tj_recommend_do_status where recommend_id = "
%
s"'
%
recommendId
...
...
@@ -18,7 +18,7 @@ def getName(recommendId):
return
s
def
getSource
(
name
):
connection
=
pymysql
.
connect
(
host
=
'rm-2zey194899z131ouf.mysql.rds.aliyuncs.com'
,
port
=
3306
,
user
=
'root'
,
passwd
=
'Gongsibao2018'
,
db
=
'ent_data'
)
connection
=
pymysql
.
connect
(
host
=
'rm-2zey194899z131ouf
ao
.mysql.rds.aliyuncs.com'
,
port
=
3306
,
user
=
'root'
,
passwd
=
'Gongsibao2018'
,
db
=
'ent_data'
)
cur
=
connection
.
cursor
()
sql
=
'select preference_label from tj_label_depth_all where company_name = "
%
s"'
%
name
...
...
@@ -39,7 +39,7 @@ def getSource(name):
def
talk
(
recommendId
,
source
):
connection
=
pymysql
.
connect
(
host
=
'rm-2zey194899z131ouf.mysql.rds.aliyuncs.com'
,
port
=
3306
,
user
=
'root'
,
passwd
=
'Gongsibao2018'
,
db
=
'ent_data'
)
connection
=
pymysql
.
connect
(
host
=
'rm-2zey194899z131ouf
ao
.mysql.rds.aliyuncs.com'
,
port
=
3306
,
user
=
'root'
,
passwd
=
'Gongsibao2018'
,
db
=
'ent_data'
)
cur
=
connection
.
cursor
()
try
:
...
...
@@ -99,7 +99,7 @@ def talk(recommendId,source):
return
False
,{}
def
talkName
(
recommend_product
):
connection
=
pymysql
.
connect
(
host
=
'rm-2zey194899z131ouf.mysql.rds.aliyuncs.com'
,
port
=
3306
,
user
=
'root'
,
passwd
=
'Gongsibao2018'
,
db
=
'ent_data'
)
connection
=
pymysql
.
connect
(
host
=
'rm-2zey194899z131ouf
ao
.mysql.rds.aliyuncs.com'
,
port
=
3306
,
user
=
'root'
,
passwd
=
'Gongsibao2018'
,
db
=
'ent_data'
)
cur
=
connection
.
cursor
()
try
:
...
...
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