Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
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-progress
Commits
a1ac9bf0
Commit
a1ac9bf0
authored
Apr 09, 2022
by
wuqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2022-4-9 吴卿华
parent
b6d6c43c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
285 additions
and
53 deletions
+285
-53
THiddenTroubleInfoSController.java
...b/controller/supervise/THiddenTroubleInfoSController.java
+5
-0
THiddenTroubleInfoMapper.java
...va/com/zehong/system/mapper/THiddenTroubleInfoMapper.java
+7
-0
ITHiddenTroubleInfoService.java
...com/zehong/system/service/ITHiddenTroubleInfoService.java
+7
-0
THiddenTroubleInfoServiceImpl.java
...ng/system/service/impl/THiddenTroubleInfoServiceImpl.java
+10
-0
THiddenTroubleInfoMapper.xml
...main/resources/mapper/system/THiddenTroubleInfoMapper.xml
+28
-0
index.vue
gassafetyprogress-web/src/views/system/info/index.vue
+228
-53
No files found.
gassafetyprogress-admin/src/main/java/com/zehong/web/controller/supervise/THiddenTroubleInfoSController.java
View file @
a1ac9bf0
...
...
@@ -101,6 +101,11 @@ public class THiddenTroubleInfoSController extends BaseController
@PutMapping
public
AjaxResult
edit
(
@RequestBody
THiddenTroubleInfo
tHiddenTroubleInfo
)
{
//查询燃气信息是否有修改 如果有值证明没有修改 如果没有值证明已经修改
THiddenTroubleInfo
tHiddenTroubleInfo1
=
tHiddenTroubleInfoService
.
selectDetails
(
tHiddenTroubleInfo
);
if
(
tHiddenTroubleInfo1
==
null
){
tHiddenTroubleInfo
.
setHiddenTroubleDealStatus
(
"1"
);
}
return
toAjax
(
tHiddenTroubleInfoService
.
updateTHiddenTroubleInfo
(
tHiddenTroubleInfo
));
}
...
...
gassafetyprogress-system/src/main/java/com/zehong/system/mapper/THiddenTroubleInfoMapper.java
View file @
a1ac9bf0
...
...
@@ -65,4 +65,11 @@ public interface THiddenTroubleInfoMapper
* @return
*/
List
<
THiddenTroubleInfo
>
selectTHiddenTroubleInfoExcelList
(
THiddenTroubleInfo
tHiddenTroubleInfo
);
/**
* 查询燃气信息是否有修改
* @param tHiddenTroubleInfo
* @return
*/
THiddenTroubleInfo
selectDetails
(
THiddenTroubleInfo
tHiddenTroubleInfo
);
}
gassafetyprogress-system/src/main/java/com/zehong/system/service/ITHiddenTroubleInfoService.java
View file @
a1ac9bf0
...
...
@@ -65,4 +65,11 @@ public interface ITHiddenTroubleInfoService
* @return
*/
List
<
THiddenTroubleInfo
>
selectTHiddenTroubleInfoExcelList
(
THiddenTroubleInfo
tHiddenTroubleInfo
);
/**
* 查询燃气信息是否有修改
* @param tHiddenTroubleInfo
* @return
*/
THiddenTroubleInfo
selectDetails
(
THiddenTroubleInfo
tHiddenTroubleInfo
);
}
gassafetyprogress-system/src/main/java/com/zehong/system/service/impl/THiddenTroubleInfoServiceImpl.java
View file @
a1ac9bf0
...
...
@@ -102,4 +102,14 @@ public class THiddenTroubleInfoServiceImpl implements ITHiddenTroubleInfoService
public
List
<
THiddenTroubleInfo
>
selectTHiddenTroubleInfoExcelList
(
THiddenTroubleInfo
tHiddenTroubleInfo
)
{
return
tHiddenTroubleInfoMapper
.
selectTHiddenTroubleInfoExcelList
(
tHiddenTroubleInfo
);
}
/**
* 查询燃气信息是否有修改
* @param tHiddenTroubleInfo
* @return
*/
@Override
public
THiddenTroubleInfo
selectDetails
(
THiddenTroubleInfo
tHiddenTroubleInfo
)
{
return
tHiddenTroubleInfoMapper
.
selectDetails
(
tHiddenTroubleInfo
);
}
}
gassafetyprogress-system/src/main/resources/mapper/system/THiddenTroubleInfoMapper.xml
View file @
a1ac9bf0
...
...
@@ -75,6 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
group by hidden_trouble_id desc
</select>
<insert
id=
"insertTHiddenTroubleInfo"
parameterType=
"THiddenTroubleInfo"
useGeneratedKeys=
"true"
keyProperty=
"hiddenTroubleId"
>
insert into t_hidden_trouble_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -145,4 +146,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{hiddenTroubleId}
</foreach>
</update>
<!--查询燃气信息是否有修改-->
<select
id=
"selectDetails"
resultMap=
"THiddenTroubleInfoResult"
parameterType=
"THiddenTroubleInfo"
>
<include
refid=
"selectTHiddenTroubleInfoVo"
/>
where hidden_trouble_id=#{hiddenTroubleId}
<if
test=
"hiddenTroubleName != null"
>
and hidden_trouble_name = #{hiddenTroubleName}
</if>
<if
test=
"hiddenTroubleLevel != null"
>
and hidden_trouble_level = #{hiddenTroubleLevel}
</if>
<if
test=
"hiddenTroubleType != null"
>
and hidden_trouble_type = #{hiddenTroubleType}
</if>
<if
test=
"hiddenTroubleDescribe != null"
>
and hidden_trouble_describe = #{hiddenTroubleDescribe}
</if>
<if
test=
"longitude != null"
>
and longitude = #{longitude}
</if>
<if
test=
"latitude != null"
>
and latitude = #{latitude}
</if>
<if
test=
"pictureUrl != null"
>
and picture_url= #{pictureUrl}
</if>
</select>
</mapper>
gassafetyprogress-web/src/views/system/info/index.vue
View file @
a1ac9bf0
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