调整
This commit is contained in:
parent
8932587bac
commit
febbb1777f
|
@ -156,6 +156,14 @@ public class AsDeviceServiceImpl extends ServiceImpl<AsDeviceMapper, AsDevice> i
|
||||||
if (ObjectUtil.isNotNull(areaId) && areaId!=0){
|
if (ObjectUtil.isNotNull(areaId) && areaId!=0){
|
||||||
EtOperatingArea etOperatingArea = etOperatingAreaService.selectEtOperatingAreaByAreaId(areaId);
|
EtOperatingArea etOperatingArea = etOperatingAreaService.selectEtOperatingAreaByAreaId(areaId);
|
||||||
device.setAreaName(etOperatingArea.getAreaName());
|
device.setAreaName(etOperatingArea.getAreaName());
|
||||||
|
device.setDeptName(etOperatingArea.getDeptName());
|
||||||
|
}
|
||||||
|
EtModel model = etModelService.selectEtModelByModelId(device.getModelId());
|
||||||
|
if(ObjectUtil.isNotNull(model)){
|
||||||
|
device.setModel(model.getModel());
|
||||||
|
if(StrUtil.isNotBlank(device.getVoltage())){
|
||||||
|
device.setRemainingMileage(CommonUtil.getRemainingMileage(device.getVoltage(),model.getFullVoltage(),model.getLowVoltage(),model.getFullEndurance()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(ObjectUtil.isNotNull(areaId) && areaId!=0){
|
if(ObjectUtil.isNotNull(areaId) && areaId!=0){
|
||||||
SysDept sysDept = wxPayService.getDeptObjByAreaId(areaId);
|
SysDept sysDept = wxPayService.getDeptObjByAreaId(areaId);
|
||||||
|
|
|
@ -43,7 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<sql id="selectAsDeviceVo">
|
<sql id="selectAsDeviceVo">
|
||||||
select device_id, picture, device_name, mac, sn, model_id, hardware_version_id, vehicle_num, area_id, activation_time,
|
select device_id, picture, device_name, mac, sn, model_id, hardware_version_id, vehicle_num, area_id, activation_time,
|
||||||
online_status, create_by, create_time, update_by, update_time, last_time, last_location_time, gps, remark, status,
|
online_status, create_by, create_time, update_by, update_time, last_time, last_location_time, gps, remark, status,
|
||||||
lock_status, location, remaining_power, voltage, qrcode, longitude, latitude, is_area_out_outage, is_admin_unlocking,
|
lock_status, location, remaining_power, voltage, version, qrcode, longitude, latitude, is_area_out_outage, is_admin_unlocking,
|
||||||
signal_strength, satellites, quality, appid, app_name, dept_id from et_device
|
signal_strength, satellites, quality, appid, app_name, dept_id from et_device
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
select de.device_id, de.picture, de.device_name, de.mac, de.sn, de.model_id, de.hardware_version_id, de.vehicle_num, de.area_id,
|
select de.device_id, de.picture, de.device_name, de.mac, de.sn, de.model_id, de.hardware_version_id, de.vehicle_num, de.area_id,
|
||||||
de.activation_time, de.online_status, de.create_by, de.create_time, de.update_by,
|
de.activation_time, de.online_status, de.create_by, de.create_time, de.update_by,
|
||||||
de.update_time, de.last_time, de.last_location_time, de.gps, de.remark, de.status, de.lock_status, de.location,
|
de.update_time, de.last_time, de.last_location_time, de.gps, de.remark, de.status, de.lock_status, de.location,
|
||||||
de.remaining_power, de.voltage, de.qrcode, de.longitude, de.latitude, de.is_area_out_outage, de.is_admin_unlocking,de.appid, de.app_name, de.dept_id from et_device de
|
de.remaining_power, de.voltage, de.version, de.qrcode, de.longitude, de.latitude, de.is_area_out_outage, de.is_admin_unlocking,de.appid, de.app_name, de.dept_id from et_device de
|
||||||
left join et_area_dept ad on ad.area_id = de.area_id
|
left join et_area_dept ad on ad.area_id = de.area_id
|
||||||
left join sys_dept d on d.dept_id = ad.dept_id
|
left join sys_dept d on d.dept_id = ad.dept_id
|
||||||
where 1 = 1
|
where 1 = 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user