|
@@ -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 + "不是调拨状态,不能出库!");
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
}
|