|
@@ -2,7 +2,11 @@ package com.coffee.admin;
|
|
|
|
|
|
|
|
import com.coffee.bus.controller.BusDeviceController;
|
|
import com.coffee.bus.controller.BusDeviceController;
|
|
|
import com.coffee.bus.controller.BusDeviceHistoryController;
|
|
import com.coffee.bus.controller.BusDeviceHistoryController;
|
|
|
|
|
+import com.coffee.bus.entity.BusDeviceAlarmEntity;
|
|
|
import com.coffee.bus.entity.BusDeviceEntity;
|
|
import com.coffee.bus.entity.BusDeviceEntity;
|
|
|
|
|
+import com.coffee.bus.enums.DeviceAlarmEnum;
|
|
|
|
|
+import com.coffee.bus.enums.DeviceStatusEnum;
|
|
|
|
|
+import com.coffee.bus.enums.FlowStatusEnum;
|
|
|
import com.coffee.bus.mapper.BusDeviceAlarmMapper;
|
|
import com.coffee.bus.mapper.BusDeviceAlarmMapper;
|
|
|
import com.coffee.bus.service.LocalBusDeviceAlarmService;
|
|
import com.coffee.bus.service.LocalBusDeviceAlarmService;
|
|
|
import com.coffee.bus.service.dto.DeviceAlarmQuery;
|
|
import com.coffee.bus.service.dto.DeviceAlarmQuery;
|
|
@@ -55,6 +59,40 @@ public class BusDeviceAlarmTest {
|
|
|
DeviceAlarmQuery query = new DeviceAlarmQuery();
|
|
DeviceAlarmQuery query = new DeviceAlarmQuery();
|
|
|
query.setHositalName("驼人医疗器械有限公司");
|
|
query.setHositalName("驼人医疗器械有限公司");
|
|
|
query.setTenantId("1");
|
|
query.setTenantId("1");
|
|
|
-// System.out.println(controller.deviceUse(query));
|
|
|
|
|
|
|
+ // System.out.println(controller.deviceUse(query));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Test
|
|
|
|
|
+ public void test004(){
|
|
|
|
|
+
|
|
|
|
|
+ BusDeviceAlarmEntity busDeviceAlarmEntity = new BusDeviceAlarmEntity();
|
|
|
|
|
+// busDeviceAlarmEntity.setAlarm(Boolean.TRUE);
|
|
|
|
|
+ // busDeviceAlarmEntity.setAlarmState(DeviceAlarmEnum.Bubble);
|
|
|
|
|
+ //busDeviceAlarmEntity.setWarnAnalgesicPoor(1==1);
|
|
|
|
|
+ busDeviceAlarmEntity.setRunState(DeviceStatusEnum.NoSignal);
|
|
|
|
|
+// busDeviceAlarmEntity.setWarnFlow(FlowStatusEnum.Lowest);
|
|
|
|
|
+ System.out.println(busDeviceAlarmMapper.selectDeviceCount(busDeviceAlarmEntity));
|
|
|
|
|
+ }
|
|
|
|
|
+ @Test
|
|
|
|
|
+ public void test005(){
|
|
|
|
|
+
|
|
|
|
|
+ BusDeviceAlarmEntity busDeviceAlarmEntity = new BusDeviceAlarmEntity();
|
|
|
|
|
+// busDeviceAlarmEntity.setAlarm(Boolean.TRUE);
|
|
|
|
|
+ // busDeviceAlarmEntity.setAlarmState(DeviceAlarmEnum.Bubble);
|
|
|
|
|
+ //busDeviceAlarmEntity.setWarnAnalgesicPoor(1==1);
|
|
|
|
|
+ busDeviceAlarmEntity.setRunState(DeviceStatusEnum.NoSignal);
|
|
|
|
|
+ //busDeviceAlarmEntity.setWarnFlow(FlowStatusEnum.Lowest);
|
|
|
|
|
+ System.out.println(service.selectUseDetail(busDeviceAlarmEntity));
|
|
|
|
|
+ }
|
|
|
|
|
+ @Test
|
|
|
|
|
+ public void test006(){
|
|
|
|
|
+
|
|
|
|
|
+ BusDeviceAlarmEntity busDeviceAlarmEntity = new BusDeviceAlarmEntity();
|
|
|
|
|
+// busDeviceAlarmEntity.setAlarm(Boolean.TRUE);
|
|
|
|
|
+ // busDeviceAlarmEntity.setAlarmState(DeviceAlarmEnum.Bubble);
|
|
|
|
|
+ //busDeviceAlarmEntity.setWarnAnalgesicPoor(1==1);
|
|
|
|
|
+ busDeviceAlarmEntity.setRunState(DeviceStatusEnum.NoSignal);
|
|
|
|
|
+ //busDeviceAlarmEntity.setWarnFlow(FlowStatusEnum.Lowest);
|
|
|
|
|
+ System.out.println(controller.deviceUseDetail("1",busDeviceAlarmEntity));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|