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
a072516b
Commit
a072516b
authored
Jul 09, 2020
by
黄静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hj
parent
c0ff6c08
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
6 deletions
+7
-6
entprofile/dao/__pycache__/re_status_dao.cpython-37.pyc
+0
-0
entprofile/dao/re_status_dao.py
+3
-3
entprofile/service/__pycache__/consultation_record.cpython-37.pyc
+0
-0
entprofile/service/__pycache__/rec_status.cpython-37.pyc
+0
-0
entprofile/service/rec_status.py
+4
-3
No files found.
entprofile/dao/__pycache__/re_status_dao.cpython-37.pyc
View file @
a072516b
No preview for this file type
entprofile/dao/re_status_dao.py
View file @
a072516b
...
@@ -14,5 +14,5 @@ class rec_status_Dao:
...
@@ -14,5 +14,5 @@ class rec_status_Dao:
self
.
dataBase
=
DataBase
()
self
.
dataBase
=
DataBase
()
else
:
else
:
self
.
dataBase
=
db
self
.
dataBase
=
db
def
select_sql_1
(
self
,
recommend_id
,
status_name
):
def
select_sql_1
(
self
,
recommend_id
,
status_name
,
remark
):
return
self
.
dataBase
.
update
(
'update tj_recommend_do_status set status_name = "
%
s" where recommend_id = "
%
s"'
%
(
status_name
,
recommend_id
),
None
)
return
self
.
dataBase
.
update
(
'update tj_recommend_do_status set status_name = "
%
s",remark = "
%
s" where recommend_id = "
%
s"'
%
(
status_name
,
remark
,
recommend_id
),
None
)
\ No newline at end of file
\ No newline at end of file
entprofile/service/__pycache__/consultation_record.cpython-37.pyc
View file @
a072516b
No preview for this file type
entprofile/service/__pycache__/rec_status.cpython-37.pyc
View file @
a072516b
No preview for this file type
entprofile/service/rec_status.py
View file @
a072516b
...
@@ -13,12 +13,12 @@ from flask import request
...
@@ -13,12 +13,12 @@ from flask import request
#更新状态表的结果
#更新状态表的结果
def
WriteRecStatusToSql
(
recommend_id
,
status_name
):
def
WriteRecStatusToSql
(
recommend_id
,
status_name
,
remark
):
# json写入数据库
# json写入数据库
db_info
=
DataBase
()
db_info
=
DataBase
()
try
:
try
:
rec_status
=
rec_status_Dao
()
rec_status
=
rec_status_Dao
()
rec_status
.
select_sql_1
(
recommend_id
,
status_name
)
rec_status
.
select_sql_1
(
recommend_id
,
status_name
,
remark
)
except
Exception
as
e
:
except
Exception
as
e
:
print
(
e
)
print
(
e
)
...
@@ -37,7 +37,8 @@ def tj_rec_status(server):
...
@@ -37,7 +37,8 @@ def tj_rec_status(server):
print
(
requestdata
)
print
(
requestdata
)
recommend_id
=
requestdata
.
get
(
'recommendId'
)
recommend_id
=
requestdata
.
get
(
'recommendId'
)
status_name
=
requestdata
.
get
(
'stateName'
)
status_name
=
requestdata
.
get
(
'stateName'
)
WriteRecStatusToSql
(
recommend_id
,
status_name
)
remark
=
requestdata
.
get
(
'remark'
)
WriteRecStatusToSql
(
recommend_id
,
status_name
,
remark
)
return
json
.
dumps
({
"status"
:
0
,
"msg"
:
"成功"
,
"data"
:
recommend_id
},
ensure_ascii
=
False
)
return
json
.
dumps
({
"status"
:
0
,
"msg"
:
"成功"
,
"data"
:
recommend_id
},
ensure_ascii
=
False
)
except
:
except
:
return
json
.
dumps
({
"status"
:
-
1
,
"msg"
:
"失败"
,
"data"
:
{}},
ensure_ascii
=
False
)
return
json
.
dumps
({
"status"
:
-
1
,
"msg"
:
"失败"
,
"data"
:
{}},
ensure_ascii
=
False
)
...
...
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