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
8320a55c
Commit
8320a55c
authored
Jan 25, 2024
by
hayden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台管理系统设备管理-设备信息:新增筛选条件门店、房间
parent
c1ed7fee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
17 deletions
+47
-17
Device.java
share-system/src/main/java/share/system/domain/Device.java
+5
-0
DeviceMapper.xml
...-system/src/main/resources/mapper/system/DeviceMapper.xml
+42
-17
No files found.
share-system/src/main/java/share/system/domain/Device.java
View file @
8320a55c
...
@@ -83,6 +83,9 @@ public class Device extends BaseEntity
...
@@ -83,6 +83,9 @@ public class Device extends BaseEntity
/** 门店房间ID */
/** 门店房间ID */
private
Long
roomId
;
private
Long
roomId
;
/** 门店ID */
private
Long
storeId
;
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
...
@@ -106,6 +109,8 @@ public class Device extends BaseEntity
...
@@ -106,6 +109,8 @@ public class Device extends BaseEntity
.
append
(
"gatewayId"
,
getGatewayId
())
.
append
(
"gatewayId"
,
getGatewayId
())
.
append
(
"voltage"
,
getVoltage
())
.
append
(
"voltage"
,
getVoltage
())
.
append
(
"signalValue"
,
getSignalValue
())
.
append
(
"signalValue"
,
getSignalValue
())
.
append
(
"roomId"
,
getRoomId
())
.
append
(
"storeId"
,
getStoreId
())
.
toString
();
.
toString
();
}
}
}
}
share-system/src/main/resources/mapper/system/DeviceMapper.xml
View file @
8320a55c
...
@@ -35,23 +35,48 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -35,23 +35,48 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql>
</sql>
<select
id=
"selectDeviceList"
parameterType=
"Device"
resultMap=
"DeviceResult"
>
<select
id=
"selectDeviceList"
parameterType=
"Device"
resultMap=
"DeviceResult"
>
<include
refid=
"selectDeviceVo"
/>
select
<where>
t1.id,
<if
test=
"devName != null and devName != ''"
>
and dev_name like concat('%', #{devName}, '%')
</if>
t1.dev_name,
<if
test=
"devMac != null and devMac != ''"
>
and dev_mac = #{devMac}
</if>
t1.dev_mac,
<if
test=
"devId != null and devId != ''"
>
and dev_id = #{devId}
</if>
t1.dev_id,
<if
test=
"devPsw != null and devPsw != ''"
>
and dev_psw = #{devPsw}
</if>
t1.dev_psw,
<if
test=
"devVer != null and devVer != ''"
>
and dev_ver = #{devVer}
</if>
t1.dev_ver,
<if
test=
"devType != null and devType != ''"
>
and dev_type = #{devType}
</if>
t1.dev_type,
<if
test=
"projtId != null and projtId != ''"
>
and projt_id = #{projtId}
</if>
t1.projt_id,
<if
test=
"projtPsw != null and projtPsw != ''"
>
and projt_psw = #{projtPsw}
</if>
t1.projt_psw,
<if
test=
"group != null and group != ''"
>
and `group` = #{group}
</if>
t1.`group`,
<if
test=
"status != null and status != ''"
>
and status = #{status}
</if>
t1.status,
<if
test=
"devPosition != null and devPosition != ''"
>
and dev_position = #{devPosition}
</if>
t1.create_by,
<if
test=
"gatewayId != null and gatewayId != ''"
>
and gateway_id = #{gatewayId}
</if>
t1.create_time,
<if
test=
"voltage != null and voltage != ''"
>
and voltage = #{voltage}
</if>
t1.update_by,
<if
test=
"signalValue != null and signalValue != ''"
>
and signal_value = #{signalValue}
</if>
t1.update_time,
<if
test=
"roomId != null"
>
and room_id = #{roomId}
</if>
t1.remark,
t1.dev_position,
t1.gateway_id,
t1.voltage,
t1.signal_value,
t1.room_id
from s_device t1
join s_room t2 on t1.room_id = t2.id
join s_store t3 on t2.store_id = t3.id
<where>
<if
test=
"devName != null and devName != ''"
>
and t1.dev_name like concat('%', #{devName}, '%')
</if>
<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=
"devPsw != null and devPsw != ''"
>
and t1.dev_psw = #{devPsw}
</if>
<if
test=
"devVer != null and devVer != ''"
>
and t1.dev_ver = #{devVer}
</if>
<if
test=
"devType != null and devType != ''"
>
and t1.dev_type = #{devType}
</if>
<if
test=
"projtId != null and projtId != ''"
>
and t1.projt_id = #{projtId}
</if>
<if
test=
"projtPsw != null and projtPsw != ''"
>
and t1.projt_psw = #{projtPsw}
</if>
<if
test=
"group != null and group != ''"
>
and `groupt1.` = #{group}
</if>
<if
test=
"status != null and status != ''"
>
and t1.status = #{status}
</if>
<if
test=
"devPosition != null and devPosition != ''"
>
and t1.dev_position = #{devPosition}
</if>
<if
test=
"gatewayId != null and gatewayId != ''"
>
and t1.gateway_id = #{gatewayId}
</if>
<if
test=
"voltage != null and voltage != ''"
>
and t1.voltage = #{voltage}
</if>
<if
test=
"signalValue != null and signalValue != ''"
>
and t1.signal_value = #{signalValue}
</if>
<if
test=
"roomId != null"
>
and t1.room_id = #{roomId}
</if>
<if
test=
"storeId != null"
>
and t3.id = #{storeId}
</if>
</where>
</where>
</select>
</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