Browse Source

出库bug修复

lmstack 3 years ago
parent
commit
e8b2725b11

+ 6 - 0
src/main/java/cn/fastfun/service/impl/AppDeviceLogServiceImpl.java

@@ -224,6 +224,9 @@ public class AppDeviceLogServiceImpl extends JpaServiceImp<AppDeviceLog, String>
                     appDeviceLog.setOperator(utilService.getUserName());
                     save(appDeviceLog); // 记录划拨日志
                 }
+                else{
+                    new ApiRuntimeException(p + "不是入库状态或自检未通过,不能调拨!");
+                }
             });
         }
     }
@@ -302,6 +305,9 @@ public class AppDeviceLogServiceImpl extends JpaServiceImp<AppDeviceLog, String>
                     appDeviceLog.setOperator(utilService.getUserName());
                     save(appDeviceLog); // 记录出库日志
                 }
+                else{
+                    new ApiRuntimeException(p + "不是调拨状态,不能出库!");
+                }
             });
         }
     }