Ver código fonte

判断条件

夏文涛 1 ano atrás
pai
commit
bfd489e660

+ 1 - 1
src/main/java/com/sqx/modules/errand/controller/app/AppTbIndentController.java

@@ -392,7 +392,7 @@ public class AppTbIndentController {
                 throw new SqxException("不能操作非自己的订单");
             }
 
-            if (!"3".equals(data.getIndentState())) {
+            if (!"3".equals(data.getIndentState()) && !"4".equals(data.getIndentState())) {
                 throw new SqxException("订单状态发生变更,请刷新后重试!");
             }
 

+ 2 - 2
src/main/java/com/sqx/modules/errand/service/impl/TbIndentServiceImpl.java

@@ -1070,7 +1070,7 @@ public class TbIndentServiceImpl extends ServiceImpl<TbIndentDao, TbIndent> impl
             throw new SqxException("不能操作非自己的订单");
         }
 
-        if (!"3".equals(indent.getIndentState())) {
+        if (!"3".equals(indent.getIndentState()) && !"4".equals(indent.getIndentState())) {
             throw new SqxException("订单状态发生变更,请刷新后重试!");
         }
 
@@ -1873,7 +1873,7 @@ public class TbIndentServiceImpl extends ServiceImpl<TbIndentDao, TbIndent> impl
             throw new SqxException("不能操作非自己的订单");
         }
 
-        if (!"3".equals(indent.getIndentState())) {
+        if (!"3".equals(indent.getIndentState()) && !"4".equals(indent.getIndentState())) {
             throw new SqxException("订单状态发生变更,请刷新后重试!");
         }