设备列表查询
This commit is contained in:
@ -32,7 +32,7 @@ public class AppDeviceController extends BaseController {
|
|||||||
private final APPDeviceService appDeviceService;
|
private final APPDeviceService appDeviceService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询文件列表
|
* 查询设备列表
|
||||||
*/
|
*/
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo<AppDeviceVo> list(DeviceQueryCriteria bo, PageQuery pageQuery) {
|
public TableDataInfo<AppDeviceVo> list(DeviceQueryCriteria bo, PageQuery pageQuery) {
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<id column="id" property="id"/>
|
<id column="id" property="id"/>
|
||||||
<result column="device_type" property="deviceType"/>
|
<result column="device_type" property="deviceType"/>
|
||||||
<result column="customer_id" property="customerId"/>
|
<result column="customer_id" property="customerId"/>
|
||||||
<!--<result column="device_no" property="deviceNo"/>-->
|
<result column="device_no" property="deviceNo"/>
|
||||||
<result column="device_name" property="deviceName"/>
|
<result column="device_name" property="deviceName"/>
|
||||||
<result column="device_pic" property="devicePic"/>
|
<result column="device_pic" property="devicePic"/>
|
||||||
<result column="device_mac" property="deviceMac"/>
|
<result column="device_mac" property="deviceMac"/>
|
||||||
@ -176,6 +176,9 @@
|
|||||||
from device d
|
from device d
|
||||||
inner join device_type dt on d.device_type = dt.id
|
inner join device_type dt on d.device_type = dt.id
|
||||||
where d.binding_user_id = #{criteria.bindingUserId}
|
where d.binding_user_id = #{criteria.bindingUserId}
|
||||||
|
<if test="criteria.deviceType != null">
|
||||||
|
and d.device_type = #{criteria.deviceType}
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 获取分配设备的客户 -->
|
<!-- 获取分配设备的客户 -->
|
||||||
|
Reference in New Issue
Block a user