Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
huaxin-rq
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
耿迪迪
huaxin-rq
Commits
b9770cac
Commit
b9770cac
authored
Apr 21, 2026
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
安检隐患接口修改
parent
71356ed1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
4 deletions
+24
-4
TDanger.java
...ystem/src/main/java/com/zehong/system/domain/TDanger.java
+20
-0
TDangerMapper.xml
...system/src/main/resources/mapper/system/TDangerMapper.xml
+4
-4
No files found.
huaxin-system/src/main/java/com/zehong/system/domain/TDanger.java
View file @
b9770cac
...
...
@@ -184,6 +184,10 @@ public class TDanger extends BaseEntity
@Excel
(
name
=
"表具编号"
)
private
String
meterNum
;
private
String
userInfo
;
private
Long
village
;
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
...
...
@@ -581,6 +585,22 @@ public class TDanger extends BaseEntity
this
.
meterNum
=
meterNum
;
}
public
String
getUserInfo
()
{
return
userInfo
;
}
public
void
setUserInfo
(
String
userInfo
)
{
this
.
userInfo
=
userInfo
;
}
public
Long
getVillage
()
{
return
village
;
}
public
void
setVillage
(
Long
village
)
{
this
.
village
=
village
;
}
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
...
...
huaxin-system/src/main/resources/mapper/system/TDangerMapper.xml
View file @
b9770cac
...
...
@@ -357,7 +357,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
danger.deal_method,
(SELECT nick_name FROM sys_user where user_id = danger.file_id) as fileName,
(
case type
case
danger.
type
when '1' then tu.username
when '2' then (select username from t_business bu where bu.id = danger.receive_id)
when '3' then (select username from t_industry ind where ind.id = danger.receive_id)
...
...
@@ -367,7 +367,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
end
) as receiveName,
(
case type
case
danger.
type
when '1' then (select tu.meternum from t_user tu where tu.id = danger.receive_id)
else '-'
end
...
...
@@ -378,7 +378,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
FROM
t_danger danger
LEFT JOIN sys_user us ON us.user_id = danger.admin_id
<if
test=
"type ==
'1'
"
>
<if
test=
"type ==
1
"
>
LEFT JOIN t_user tu ON tu.id = danger.receive_id
LEFT JOIN t_community com ON com.id = tu.village
</if>
...
...
@@ -415,7 +415,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"type == '1' and userInfo != null "
>
and (tu.username like concat('%',#{userInfo},'%') or tu.phone like concat('%',#{userInfo},'%') or tu.meternum like concat('%',#{userInfo},'%'))
</if>
<if
test=
"type ==
'1'
and village != null "
>
and com.id = #{village}
</if>
<if
test=
"type ==
1
and village != null "
>
and com.id = #{village}
</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