设备列表
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
package com.fuyuanshen.equipment.domain.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@ -21,4 +22,9 @@ public class AppDeviceVo {
|
||||
* 设备MAC
|
||||
*/
|
||||
private String deviceMac;
|
||||
|
||||
/**
|
||||
* 通讯方式 0:4G;1:蓝牙
|
||||
*/
|
||||
private Integer communicationMode;
|
||||
}
|
||||
|
@ -375,8 +375,8 @@ public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> impleme
|
||||
if(device == null){
|
||||
throw new RuntimeException("请先将设备入库!!!");
|
||||
}
|
||||
DeviceType deviceType = deviceTypeMapper.selectById(device.getDeviceType());
|
||||
String mode = deviceType.getCommunicationMode();
|
||||
// DeviceType deviceType = deviceTypeMapper.selectById(device.getDeviceType());
|
||||
// String mode = deviceType.getCommunicationMode();
|
||||
UpdateWrapper<Device> deviceUpdateWrapper = new UpdateWrapper<>();
|
||||
deviceUpdateWrapper.eq("id", device.getId())
|
||||
.set("binding_status", BindingStatusEnum.UNBOUND.getCode());
|
||||
|
@ -94,11 +94,9 @@
|
||||
</select>
|
||||
<select id="queryAppDeviceList" resultType="com.fuyuanshen.equipment.domain.vo.AppDeviceVo">
|
||||
select
|
||||
d.id, d.device_name, d.device_pic, d.device_mac, d.device_sn,
|
||||
d.device_status, d.create_time, d.update_time, d.longitude, d.latitude,
|
||||
d.customer_id, d.current_owner_id, d.original_owner_id, d.customer_name,
|
||||
d.device_imei, d.tenant_id
|
||||
from device d
|
||||
d.id, d.device_name, d.device_mac, d.device_sn,
|
||||
d.device_imei, d.device_mac ,dt.communication_mode
|
||||
from device d inner join device_type dt on d.device_type = dt.id
|
||||
where d.binding_user_id = #{criteria.bindingUserId}
|
||||
</select>
|
||||
|
||||
|
Reference in New Issue
Block a user