This commit is contained in:
邱贞招 2025-03-13 10:16:44 +08:00
parent 2612620b50
commit 0f43b64d0b
4 changed files with 19 additions and 2 deletions

View File

@ -42,6 +42,7 @@ import java.text.SimpleDateFormat;
import java.util.*;
import static com.ruoyi.common.constant.ServiceConstants.PAY_TYPE_TMWX;
import static com.ruoyi.common.constant.ServiceConstants.VEHICLE_STATUS_SCHEDULING;
/**
* app接口需要登录校验的
@ -582,7 +583,13 @@ public class AppVerifyController extends BaseController
AsDevice asDevice = new AsDevice();
asDevice.setSn(sn);
asDevice.setVehicleNum(vehicleNum);
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));
}

View File

@ -181,6 +181,7 @@ public class ReceiveController {
if(ObjectUtil.isNotNull(area) && !oneMinuteDifference){
/** 2. 判断是否在禁行区内 如果在, 根据配置‘禁行区内断电配置’进行断电 **/
String isAdminUnlocking = asDevice.getIsAdminUnlocking();// 是否是管理员开锁0-1-
// 禁行区内断电
boolean noRidingArea = isNoRidingArea(lon, lat, value.getStatus(), asDevice, area, isAdminUnlocking);
/** 3.超出运营区外断电 包含靠近运营区播报 */
outAreaOutage(value, asDevice, lon, lat, area, isAdminUnlocking, noRidingArea);

View File

@ -43,7 +43,7 @@ public class EtParkingAreaController extends BaseController
@GetMapping("/list")
public TableDataInfo list(EtParkingArea etParkingArea)
{
// startPage();
etParkingArea.setStatus("0");
List<EtParkingArea> list = etParkingAreaService.selectEtParkingAreaList(etParkingArea);
return getDataTable(list);
}

View File

@ -121,6 +121,9 @@ public class AsDeviceServiceImpl extends ServiceImpl<AsDeviceMapper, AsDevice> i
@Autowired
private IEtTripLogService etTripLogService;
@Autowired
private IEtHardwareVersionService hardwareVersionService;
@Value(value = "${iot.iotUrl}")
private String iotUrl;
@ -238,6 +241,12 @@ public class AsDeviceServiceImpl extends ServiceImpl<AsDeviceMapper, AsDevice> i
etOperatingArea = etOperatingAreaService.selectEtOperatingAreaByAreaId(areaId);
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);
//正在进行中的订单
EtOrder order = new EtOrder();