Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
Automat
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
1
Merge Requests
1
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
冯佳佳
Automat
Commits
fc4522d2
Commit
fc4522d2
authored
Mar 19, 2022
by
于方蒙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 admin
parent
241f0be1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
myapps/pc_management/api/machine_portal.py
+1
-1
No files found.
myapps/pc_management/api/machine_portal.py
View file @
fc4522d2
...
@@ -252,7 +252,7 @@ def run_distribute_machine():
...
@@ -252,7 +252,7 @@ def run_distribute_machine():
insert_sql
=
insert_sql
[:
-
1
]
insert_sql
=
insert_sql
[:
-
1
]
insert_sql
+=
" ON DUPLICATE KEY UPDATE status = 1"
insert_sql
+=
" ON DUPLICATE KEY UPDATE status = 1"
db
.
session
.
execute
(
insert_sql
)
db
.
session
.
execute
(
insert_sql
)
if
admin_info
.
level
==
4
:
if
admin_info
.
level
in
(
4
,
5
)
:
machine
.
business_id
=
business_id
machine
.
business_id
=
business_id
db
.
session
.
commit
()
db
.
session
.
commit
()
return_machine_no
.
append
(
i
)
return_machine_no
.
append
(
i
)
...
...
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