Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
huangzhicong
/
SmartCanteen
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
54ea5746
authored
May 15, 2020
by
pye52
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop'
parents
d3f95c40
8ea35633
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
app/src/main/java/com/bgycc/smartcanteen/viewModel/CommandViewModel.java
+1
-1
No files found.
app/src/main/java/com/bgycc/smartcanteen/viewModel/CommandViewModel.java
View file @
54ea5746
...
@@ -114,7 +114,7 @@ public class CommandViewModel extends ViewModel {
...
@@ -114,7 +114,7 @@ public class CommandViewModel extends ViewModel {
public
void
run
()
{
public
void
run
()
{
// 指令插入到数据库,则会触发dataObserver
// 指令插入到数据库,则会触发dataObserver
Command
command
=
new
Command
(
response
,
action
);
Command
command
=
new
Command
(
response
,
action
);
//
若为更新指令,则需要检查是否有未完成的,避免同时存在多条更新指令重复执行
//
该action同一时间是否只能在数据库存在一条待执行的指令
if
(
CommandHelper
.
oneAtTime
(
command
))
{
if
(
CommandHelper
.
oneAtTime
(
command
))
{
int
count
=
commandRepository
.
queryUndoneCommandCountByAction
(
action
);
int
count
=
commandRepository
.
queryUndoneCommandCountByAction
(
action
);
if
(
count
>
0
)
{
if
(
count
>
0
)
{
...
...
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