|
@@ -271,6 +271,11 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
|
|
if (deviceInfo == null) {
|
|
if (deviceInfo == null) {
|
|
return R.fail("设备不存在");
|
|
return R.fail("设备不存在");
|
|
}
|
|
}
|
|
|
|
+ Integer busyState = deviceInfo.getBusyState();
|
|
|
|
+ SysDictRedis sdr = SysDictUtils.get(EnumDeviceBusyStatus.Code.CODE.getCode(), EnumDeviceBusyStatus.N_2.getCode());
|
|
|
|
+ if (busyState.intValue() == Integer.valueOf(sdr.getValue()).intValue()) {
|
|
|
|
+ return R.fail("设备已停运");
|
|
|
|
+ }
|
|
DeviceStatusDto.Vo deviceStatus = deviceInfo.getDeviceStatus();
|
|
DeviceStatusDto.Vo deviceStatus = deviceInfo.getDeviceStatus();
|
|
SysDictRedis sysDictRedis = SysDictUtils.get(EnumDeviceFaultLevelPayThreshold.Code.CODE.getCode(), EnumDeviceFaultLevelPayThreshold.NOT_PAY.getCode());
|
|
SysDictRedis sysDictRedis = SysDictUtils.get(EnumDeviceFaultLevelPayThreshold.Code.CODE.getCode(), EnumDeviceFaultLevelPayThreshold.NOT_PAY.getCode());
|
|
if (deviceInfo.getFaultLevel() >= Integer.valueOf(sysDictRedis.getValue())) {
|
|
if (deviceInfo.getFaultLevel() >= Integer.valueOf(sysDictRedis.getValue())) {
|