|
|
@@ -284,20 +284,18 @@ public class DeviceMsgHandle {
|
|
|
// }
|
|
|
|
|
|
//判断连续无功率就自动停止
|
|
|
- if(port_first_status==PortStatusConstant.CHARGING){
|
|
|
- checkAutoStop(power,imei,1);
|
|
|
-
|
|
|
- }
|
|
|
- if(port_second_status==PortStatusConstant.CHARGING){
|
|
|
- checkAutoStop(power,imei,2);
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
redisCache.setCacheObject(RedisConstant.DEVICE_PORT_STATUS + imei, data, 15, TimeUnit.MINUTES);
|
|
|
if (port_first_status != null) {
|
|
|
+ if(port_first_status==PortStatusConstant.CHARGING){
|
|
|
+ checkAutoStop(power,imei,1);
|
|
|
+ }
|
|
|
checkPort(port_first_status, 1, imei, type);
|
|
|
}
|
|
|
if (port_second_status != null) {
|
|
|
+ if(port_second_status==PortStatusConstant.CHARGING){
|
|
|
+ checkAutoStop(power,imei,2);
|
|
|
+ }
|
|
|
checkPort(port_second_status, 2, imei, type);
|
|
|
}
|
|
|
return true;
|