Commit 54ea5746 by pye52

Merge branch 'develop'

parents d3f95c40 8ea35633
......@@ -114,7 +114,7 @@ public class CommandViewModel extends ViewModel {
public void run() {
// 指令插入到数据库,则会触发dataObserver
Command command = new Command(response, action);
// 若为更新指令,则需要检查是否有未完成的,避免同时存在多条更新指令重复执行
// 该action同一时间是否只能在数据库存在一条待执行的指令
if (CommandHelper.oneAtTime(command)) {
int count = commandRepository.queryUndoneCommandCountByAction(action);
if (count > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment