111
This commit is contained in:
parent
2612620b50
commit
0f43b64d0b
|
@ -42,6 +42,7 @@ import java.text.SimpleDateFormat;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
import static com.ruoyi.common.constant.ServiceConstants.PAY_TYPE_TMWX;
|
import static com.ruoyi.common.constant.ServiceConstants.PAY_TYPE_TMWX;
|
||||||
|
import static com.ruoyi.common.constant.ServiceConstants.VEHICLE_STATUS_SCHEDULING;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* app接口(需要登录校验的)
|
* app接口(需要登录校验的)
|
||||||
|
@ -582,7 +583,13 @@ public class AppVerifyController extends BaseController
|
||||||
AsDevice asDevice = new AsDevice();
|
AsDevice asDevice = new AsDevice();
|
||||||
asDevice.setSn(sn);
|
asDevice.setSn(sn);
|
||||||
asDevice.setVehicleNum(vehicleNum);
|
asDevice.setVehicleNum(vehicleNum);
|
||||||
asDevice.setStatus(status);
|
AsDevice asDevice1 = asDeviceService.selectAsDeviceBySn(sn);
|
||||||
|
if (ObjectUtil.isNull(asDevice1)) {
|
||||||
|
return error("设备不存在");
|
||||||
|
}
|
||||||
|
if (!VEHICLE_STATUS_SCHEDULING.equals(asDevice1.getStatus())) {
|
||||||
|
asDevice.setStatus(status);
|
||||||
|
}
|
||||||
return toAjax(asDeviceService.updateAsDeviceBySn(asDevice));
|
return toAjax(asDeviceService.updateAsDeviceBySn(asDevice));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -181,6 +181,7 @@ public class ReceiveController {
|
||||||
if(ObjectUtil.isNotNull(area) && !oneMinuteDifference){
|
if(ObjectUtil.isNotNull(area) && !oneMinuteDifference){
|
||||||
/** 2. 判断是否在禁行区内 如果在, 根据配置‘禁行区内断电配置’进行断电 **/
|
/** 2. 判断是否在禁行区内 如果在, 根据配置‘禁行区内断电配置’进行断电 **/
|
||||||
String isAdminUnlocking = asDevice.getIsAdminUnlocking();// 是否是管理员开锁:0-否;1-是
|
String isAdminUnlocking = asDevice.getIsAdminUnlocking();// 是否是管理员开锁:0-否;1-是
|
||||||
|
// 禁行区内断电
|
||||||
boolean noRidingArea = isNoRidingArea(lon, lat, value.getStatus(), asDevice, area, isAdminUnlocking);
|
boolean noRidingArea = isNoRidingArea(lon, lat, value.getStatus(), asDevice, area, isAdminUnlocking);
|
||||||
/** 3.超出运营区外断电 包含靠近运营区播报 */
|
/** 3.超出运营区外断电 包含靠近运营区播报 */
|
||||||
outAreaOutage(value, asDevice, lon, lat, area, isAdminUnlocking, noRidingArea);
|
outAreaOutage(value, asDevice, lon, lat, area, isAdminUnlocking, noRidingArea);
|
||||||
|
|
|
@ -43,7 +43,7 @@ public class EtParkingAreaController extends BaseController
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(EtParkingArea etParkingArea)
|
public TableDataInfo list(EtParkingArea etParkingArea)
|
||||||
{
|
{
|
||||||
// startPage();
|
etParkingArea.setStatus("0");
|
||||||
List<EtParkingArea> list = etParkingAreaService.selectEtParkingAreaList(etParkingArea);
|
List<EtParkingArea> list = etParkingAreaService.selectEtParkingAreaList(etParkingArea);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,6 +121,9 @@ public class AsDeviceServiceImpl extends ServiceImpl<AsDeviceMapper, AsDevice> i
|
||||||
@Autowired
|
@Autowired
|
||||||
private IEtTripLogService etTripLogService;
|
private IEtTripLogService etTripLogService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IEtHardwareVersionService hardwareVersionService;
|
||||||
|
|
||||||
|
|
||||||
@Value(value = "${iot.iotUrl}")
|
@Value(value = "${iot.iotUrl}")
|
||||||
private String iotUrl;
|
private String iotUrl;
|
||||||
|
@ -238,6 +241,12 @@ public class AsDeviceServiceImpl extends ServiceImpl<AsDeviceMapper, AsDevice> i
|
||||||
etOperatingArea = etOperatingAreaService.selectEtOperatingAreaByAreaId(areaId);
|
etOperatingArea = etOperatingAreaService.selectEtOperatingAreaByAreaId(areaId);
|
||||||
asDevice.setAreaName(etOperatingArea.getAreaName());
|
asDevice.setAreaName(etOperatingArea.getAreaName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Long hardwareVersionId = asDevice.getHardwareVersionId();
|
||||||
|
if (ObjectUtil.isNotNull(hardwareVersionId) && areaId!=0) {
|
||||||
|
EtHardwareVersion etHardwareVersion = hardwareVersionService.selectEtHardwareVersionById(hardwareVersionId);
|
||||||
|
asDevice.setHardwareVersion(etHardwareVersion.getVersion());
|
||||||
|
}
|
||||||
pullDeviceInfo(asDevice);
|
pullDeviceInfo(asDevice);
|
||||||
//正在进行中的订单
|
//正在进行中的订单
|
||||||
EtOrder order = new EtOrder();
|
EtOrder order = new EtOrder();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user