Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
Project
Project
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
耿迪迪
gassafety
Commits
26d35ba5
Commit
26d35ba5
authored
3 years ago
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备列表查询问题
parent
85a4ff55
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
TDeviceInfoServiceImpl.java
...om/zehong/system/service/impl/TDeviceInfoServiceImpl.java
+1
-1
TDeviceInfoMapper.xml
...em/src/main/resources/mapper/system/TDeviceInfoMapper.xml
+0
-1
No files found.
gassafety-system/src/main/java/com/zehong/system/service/impl/TDeviceInfoServiceImpl.java
View file @
26d35ba5
...
@@ -51,9 +51,9 @@ public class TDeviceInfoServiceImpl implements ITDeviceInfoService
...
@@ -51,9 +51,9 @@ public class TDeviceInfoServiceImpl implements ITDeviceInfoService
List
<
TDeviceInfo
>
deviceInfoList
=
tDeviceInfoMapper
.
selectTDeviceInfoList
(
tDeviceInfo
);
List
<
TDeviceInfo
>
deviceInfoList
=
tDeviceInfoMapper
.
selectTDeviceInfoList
(
tDeviceInfo
);
if
(
deviceInfoList
.
size
()
!=
0
){
if
(
deviceInfoList
.
size
()
!=
0
){
DeviceInfoVo
deviceInfoVo
=
new
DeviceInfoVo
();
for
(
TDeviceInfo
device
:
deviceInfoList
){
for
(
TDeviceInfo
device
:
deviceInfoList
){
DeviceInfoVo
deviceInfoVo
=
new
DeviceInfoVo
();
BeanUtils
.
copyProperties
(
device
,
deviceInfoVo
);
BeanUtils
.
copyProperties
(
device
,
deviceInfoVo
);
TPipe
pipe
=
tPipeMapper
.
selectTPipeById
(
device
.
getPipeId
());
TPipe
pipe
=
tPipeMapper
.
selectTPipeById
(
device
.
getPipeId
());
...
...
This diff is collapsed.
Click to expand it.
gassafety-system/src/main/resources/mapper/system/TDeviceInfoMapper.xml
View file @
26d35ba5
...
@@ -34,7 +34,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -34,7 +34,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where>
<where>
is_del = '0'
is_del = '0'
<if
test=
"enterpriseId != null and enterpriseId != 0 "
>
and enterprise_id = #{enterpriseId}
</if>
<if
test=
"enterpriseId != null and enterpriseId != 0 "
>
and enterprise_id = #{enterpriseId}
</if>
<if
test=
"pipeId != null "
>
and pipe_id = #{pipeId}
</if>
<if
test=
"deviceName != null and deviceName != ''"
>
and device_name like concat('%', #{deviceName}, '%')
</if>
<if
test=
"deviceName != null and deviceName != ''"
>
and device_name like concat('%', #{deviceName}, '%')
</if>
<if
test=
"deviceCode != null and deviceCode != ''"
>
and device_code like concat('%', #{deviceCode}, '%')
</if>
<if
test=
"deviceCode != null and deviceCode != ''"
>
and device_code like concat('%', #{deviceCode}, '%')
</if>
<if
test=
"deviceAddr != null and deviceAddr != ''"
>
and device_addr = #{deviceAddr}
</if>
<if
test=
"deviceAddr != null and deviceAddr != ''"
>
and device_addr = #{deviceAddr}
</if>
...
...
This diff is collapsed.
Click to expand it.
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