Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zh-baseversion-project
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
王浩
zh-baseversion-project
Commits
634fdf81
Commit
634fdf81
authored
Sep 09, 2024
by
纪泽龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://111.61.77.35:9999/wanghao/zh-baseversion-project
parents
d9527a17
75784834
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
4 deletions
+17
-4
TDetectorUserVillageSafetyDeviceInfoVo.java
...tem/domain/vo/TDetectorUserVillageSafetyDeviceInfoVo.java
+5
-0
TDetectorUserServiceImpl.java
.../zehong/system/service/impl/TDetectorUserServiceImpl.java
+6
-3
TDetectorUserMapper.xml
.../src/main/resources/mapper/system/TDetectorUserMapper.xml
+2
-1
index.vue
...eb/src/views/regulation/userManagement/gasUsers/index.vue
+4
-0
No files found.
zh-baseversion-system/src/main/java/com/zehong/system/domain/vo/TDetectorUserVillageSafetyDeviceInfoVo.java
View file @
634fdf81
...
@@ -21,6 +21,11 @@ public class TDetectorUserVillageSafetyDeviceInfoVo {
...
@@ -21,6 +21,11 @@ public class TDetectorUserVillageSafetyDeviceInfoVo {
*/
*/
private
String
userType
;
private
String
userType
;
/**
* 燃气类型(0-天然气,1-液化气)
*/
private
String
gasType
;
/**
/**
* 燃气用户名称
* 燃气用户名称
*/
*/
...
...
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TDetectorUserServiceImpl.java
View file @
634fdf81
...
@@ -273,9 +273,11 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
...
@@ -273,9 +273,11 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
// 先过滤掉 没有经纬度的
// 先过滤掉 没有经纬度的
List
<
TDetectorUserVillageSafetyDeviceInfoVo
>
collect5
=
value1
.
stream
().
filter
(
item
->
item
.
getUserLatitude
()
!=
null
&&
item
.
getUserLongitude
()
!=
null
).
collect
(
Collectors
.
toList
());
List
<
TDetectorUserVillageSafetyDeviceInfoVo
>
collect5
=
value1
.
stream
().
filter
(
item
->
item
.
getUserLatitude
()
!=
null
&&
item
.
getUserLongitude
()
!=
null
).
collect
(
Collectors
.
toList
());
// 再过滤掉没有 天然气类型的
List
<
TDetectorUserVillageSafetyDeviceInfoVo
>
collect6
=
collect5
.
stream
().
filter
(
item
->
item
.
getGasType
()
!=
null
).
collect
(
Collectors
.
toList
());
// 过滤掉 没有装置的
// 过滤掉 没有装置的
List
<
TDetectorUserVillageSafetyDeviceInfoVo
>
collect2
=
collect
5
.
stream
().
filter
(
item
->
item
.
getGasUserSafetyDeviceId
()
==
null
).
collect
(
Collectors
.
toList
());
List
<
TDetectorUserVillageSafetyDeviceInfoVo
>
collect2
=
collect
6
.
stream
().
filter
(
item
->
item
.
getGasUserSafetyDeviceId
()
==
null
).
collect
(
Collectors
.
toList
());
// 没有装置的 直接 封装用户数据
// 没有装置的 直接 封装用户数据
if
(
collect2
.
size
()
>
0
)
{
if
(
collect2
.
size
()
>
0
)
{
...
@@ -287,6 +289,7 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
...
@@ -287,6 +289,7 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
userListItem
.
put
(
"phone"
,
tDetectorUserVillageSafetyDeviceInfoVo
.
getPhone
());
userListItem
.
put
(
"phone"
,
tDetectorUserVillageSafetyDeviceInfoVo
.
getPhone
());
userListItem
.
put
(
"address"
,
tDetectorUserVillageSafetyDeviceInfoVo
.
getAddress
());
userListItem
.
put
(
"address"
,
tDetectorUserVillageSafetyDeviceInfoVo
.
getAddress
());
userListItem
.
put
(
"longitude"
,
tDetectorUserVillageSafetyDeviceInfoVo
.
getUserLongitude
());
userListItem
.
put
(
"longitude"
,
tDetectorUserVillageSafetyDeviceInfoVo
.
getUserLongitude
());
userListItem
.
put
(
"gasType"
,
tDetectorUserVillageSafetyDeviceInfoVo
.
getGasType
());
userListItem
.
put
(
"latitude"
,
tDetectorUserVillageSafetyDeviceInfoVo
.
getUserLatitude
());
userListItem
.
put
(
"latitude"
,
tDetectorUserVillageSafetyDeviceInfoVo
.
getUserLatitude
());
if
(
"2"
.
equals
(
tDetectorUserVillageSafetyDeviceInfoVo
.
getUserType
()))
{
if
(
"2"
.
equals
(
tDetectorUserVillageSafetyDeviceInfoVo
.
getUserType
()))
{
userListItem
.
put
(
"iconType"
,
"61"
);
userListItem
.
put
(
"iconType"
,
"61"
);
...
@@ -299,7 +302,7 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
...
@@ -299,7 +302,7 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
}
}
// 过滤掉 有装置的
// 过滤掉 有装置的
List
<
TDetectorUserVillageSafetyDeviceInfoVo
>
collect3
=
collect
5
.
stream
().
filter
(
item
->
item
.
getGasUserSafetyDeviceId
()
!=
null
).
collect
(
Collectors
.
toList
());
List
<
TDetectorUserVillageSafetyDeviceInfoVo
>
collect3
=
collect
6
.
stream
().
filter
(
item
->
item
.
getGasUserSafetyDeviceId
()
!=
null
).
collect
(
Collectors
.
toList
());
if
(
collect3
.
size
()
>
0
)
{
if
(
collect3
.
size
()
>
0
)
{
...
@@ -316,6 +319,7 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
...
@@ -316,6 +319,7 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
userListItem
.
put
(
"address"
,
value2
.
get
(
0
).
getAddress
()
==
null
?
""
:
value2
.
get
(
0
).
getAddress
());
userListItem
.
put
(
"address"
,
value2
.
get
(
0
).
getAddress
()
==
null
?
""
:
value2
.
get
(
0
).
getAddress
());
userListItem
.
put
(
"longitude"
,
value2
.
get
(
0
).
getUserLongitude
()
==
null
?
""
:
value2
.
get
(
0
).
getUserLongitude
());
userListItem
.
put
(
"longitude"
,
value2
.
get
(
0
).
getUserLongitude
()
==
null
?
""
:
value2
.
get
(
0
).
getUserLongitude
());
userListItem
.
put
(
"latitude"
,
value2
.
get
(
0
).
getUserLatitude
()
==
null
?
""
:
value2
.
get
(
0
).
getUserLatitude
());
userListItem
.
put
(
"latitude"
,
value2
.
get
(
0
).
getUserLatitude
()
==
null
?
""
:
value2
.
get
(
0
).
getUserLatitude
());
userListItem
.
put
(
"gasType"
,
value2
.
get
(
0
).
getGasType
()
==
null
?
""
:
value2
.
get
(
0
).
getGasType
());
if
(
value2
.
get
(
0
).
getUserType
()
!=
null
&&
"2"
.
equals
(
value2
.
get
(
0
).
getUserType
()))
{
if
(
value2
.
get
(
0
).
getUserType
()
!=
null
&&
"2"
.
equals
(
value2
.
get
(
0
).
getUserType
()))
{
userListItem
.
put
(
"iconType"
,
"61"
);
userListItem
.
put
(
"iconType"
,
"61"
);
}
else
if
(
value2
.
get
(
0
).
getUserType
()
!=
null
&&
"4"
.
equals
(
value2
.
get
(
0
).
getUserType
()))
{
}
else
if
(
value2
.
get
(
0
).
getUserType
()
!=
null
&&
"4"
.
equals
(
value2
.
get
(
0
).
getUserType
()))
{
...
@@ -341,7 +345,6 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
...
@@ -341,7 +345,6 @@ public class TDetectorUserServiceImpl implements ITDetectorUserService
safetyDeviceMapList
.
add
(
safetyDeviceMapItem
);
safetyDeviceMapList
.
add
(
safetyDeviceMapItem
);
}
}
}
}
}
}
}
}
}
}
...
...
zh-baseversion-system/src/main/resources/mapper/system/TDetectorUserMapper.xml
View file @
634fdf81
...
@@ -309,11 +309,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -309,11 +309,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
dUser.longitude as userLongitude,
dUser.longitude as userLongitude,
dUser.latitude as userLatitude,
dUser.latitude as userLatitude,
dUser.user_type as userType,
dUser.user_type as userType,
dUser.gas_type as gasType,
userVillage.f_village_id as villageId,
userVillage.f_village_id as villageId,
userVillage.f_village_name as villageName,
userVillage.f_village_name as villageName,
userVillage.longitude,
userVillage.longitude,
userVillage.latitude,
userVillage.latitude,
region.f_name AS regionName
,
region.f_name AS regionName,
safetyDeviceInfo.f_gasUser_safety_device_id as gasUserSafetyDeviceId,
safetyDeviceInfo.f_gasUser_safety_device_id as gasUserSafetyDeviceId,
safetyDeviceInfo.f_iot_no as iotNo,
safetyDeviceInfo.f_iot_no as iotNo,
safetyDeviceInfo.f_device_name as deviceName,
safetyDeviceInfo.f_device_name as deviceName,
...
...
zh-baseversion-web/src/views/regulation/userManagement/gasUsers/index.vue
View file @
634fdf81
...
@@ -589,6 +589,10 @@ export default {
...
@@ -589,6 +589,10 @@ export default {
{
required
:
true
,
message
:
"请输入地址"
,
trigger
:
"blur"
},
{
required
:
true
,
message
:
"请输入地址"
,
trigger
:
"blur"
},
// { min: 0, max: 30, message: "长度30位", trigger: "blur" },
// { min: 0, max: 30, message: "长度30位", trigger: "blur" },
],
],
gasType
:
[
{
required
:
true
,
message
:
"请选择燃气类型"
,
trigger
:
"blur"
},
// { min: 0, max: 30, message: "长度30位", trigger: "blur" },
],
},
},
//关联设备下级数据 表单校验
//关联设备下级数据 表单校验
...
...
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