设备列表查询

This commit is contained in:
2025-07-10 08:57:36 +08:00
parent c075c09ee7
commit ff81b791fc
2 changed files with 5 additions and 2 deletions

View File

@ -32,7 +32,7 @@ public class AppDeviceController extends BaseController {
private final APPDeviceService appDeviceService;
/**
* 查询文件列表
* 查询设备列表
*/
@GetMapping("/list")
public TableDataInfo<AppDeviceVo> list(DeviceQueryCriteria bo, PageQuery pageQuery) {

View File

@ -5,7 +5,7 @@
<id column="id" property="id"/>
<result column="device_type" property="deviceType"/>
<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_pic" property="devicePic"/>
<result column="device_mac" property="deviceMac"/>
@ -176,6 +176,9 @@
from device d
inner join device_type dt on d.device_type = dt.id
where d.binding_user_id = #{criteria.bindingUserId}
<if test="criteria.deviceType != null">
and d.device_type = #{criteria.deviceType}
</if>
</select>
<!-- 获取分配设备的客户 -->