Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_ht
Commits
bf60002b
Commit
bf60002b
authored
Jan 25, 2024
by
hayden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台管理系统设备管理-设备操作日志:新增筛选条件门店、房间
parent
37bbd868
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
10 deletions
+51
-10
DeviceLogController.java
...java/share/web/controller/system/DeviceLogController.java
+2
-1
DeviceLogDto.java
...ystem/src/main/java/share/system/domain/DeviceLogDto.java
+19
-0
DeviceLogMapper.xml
...stem/src/main/resources/mapper/system/DeviceLogMapper.xml
+30
-9
No files found.
share-admin/src/main/java/share/web/controller/system/DeviceLogController.java
View file @
bf60002b
...
...
@@ -17,6 +17,7 @@ import share.common.core.controller.BaseController;
import
share.common.core.domain.AjaxResult
;
import
share.common.enums.BusinessType
;
import
share.system.domain.DeviceLog
;
import
share.system.domain.DeviceLogDto
;
import
share.system.service.DeviceLogService
;
import
share.common.utils.poi.ExcelUtil
;
import
share.common.core.page.TableDataInfo
;
...
...
@@ -39,7 +40,7 @@ public class DeviceLogController extends BaseController
*/
@PreAuthorize
(
"@ss.hasPermi('system:log:list')"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
DeviceLog
deviceLog
)
public
TableDataInfo
list
(
DeviceLog
Dto
deviceLog
)
{
startPage
();
List
<
DeviceLog
>
list
=
deviceLogService
.
selectDeviceLogList
(
deviceLog
);
...
...
share-system/src/main/java/share/system/domain/DeviceLogDto.java
0 → 100644
View file @
bf60002b
package
share
.
system
.
domain
;
import
lombok.Data
;
/**
* @author lichenghu
* @date 2024/1/25
*/
@Data
public
class
DeviceLogDto
extends
DeviceLog
{
/**
* 门店id
*/
private
Long
storeId
;
/**
* 房间id
*/
private
Long
roomId
;
}
share-system/src/main/resources/mapper/system/DeviceLogMapper.xml
View file @
bf60002b
...
...
@@ -28,15 +28,36 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql>
<select
id=
"selectDeviceLogList"
parameterType=
"DeviceLog"
resultMap=
"DeviceLogResult"
>
<include
refid=
"selectDeviceLogVo"
/>
<where>
<if
test=
"devMac != null and devMac != ''"
>
and dev_mac = #{devMac}
</if>
<if
test=
"devId != null and devId != ''"
>
and dev_id = #{devId}
</if>
<if
test=
"seq != null and seq != ''"
>
and seq = #{seq}
</if>
<if
test=
"mqttType != null and mqttType != ''"
>
and mqtt_type = #{mqttType}
</if>
<if
test=
"mqttDescribe != null and mqttDescribe != ''"
>
and mqtt_describe = #{mqttDescribe}
</if>
<if
test=
"payload != null and payload != ''"
>
and payload = #{payload}
</if>
<if
test=
"topic != null and topic != ''"
>
and topic = #{topic}
</if>
select
t1.id,
t1.dev_mac,
t1.dev_id,
t1.seq,
t1.mqtt_type,
t1.mqtt_describe,
t1.payload,
t1.topic,
t1.create_by,
t1.create_time,
t1.update_by,
t1.update_time,
t1.remark,
t1.`result`,
t1.description
from s_device_log t1
join s_device t2 on t1.dev_id = t2.dev_id
join s_room t3 on t2.room_id = t3.id
join s_store t4 on t3.store_id = t4.id
<where>
<if
test=
"devMac != null and devMac != ''"
>
and t1.dev_mac = #{devMac}
</if>
<if
test=
"devId != null and devId != ''"
>
and t1.dev_id = #{devId}
</if>
<if
test=
"seq != null and seq != ''"
>
and t1.seq = #{seq}
</if>
<if
test=
"mqttType != null and mqttType != ''"
>
and t1.mqtt_type = #{mqttType}
</if>
<if
test=
"mqttDescribe != null and mqttDescribe != ''"
>
and t1.mqtt_describe = #{mqttDescribe}
</if>
<if
test=
"payload != null and payload != ''"
>
and t1.payload = #{payload}
</if>
<if
test=
"topic != null and topic != ''"
>
and t1.topic = #{topic}
</if>
<if
test=
"storeId != null"
>
and t4.id = #{storeId}
</if>
<if
test=
"roomId != null"
>
and t3.id = #{roomId}
</if>
</where>
order by create_time desc
</select>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment