Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
bbc301b3
Commit
bbc301b3
authored
Feb 07, 2023
by
maoying
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_dl_plan6_temp' of…
Merge branch 'develop_dl_plan6_temp' of
http://39.98.45.134:8090/moa/amos-boot-biz
into develop_dl_plan6_temp
parents
45cf464f
557f1bc8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
EquipmentSpecificController.java
...n/equipmanage/controller/EquipmentSpecificController.java
+1
-1
IEquipmentSpecificSerivce.java
...eejoin/equipmanage/service/IEquipmentSpecificSerivce.java
+1
-1
EmergencyServiceImpl.java
...eejoin/equipmanage/service/impl/EmergencyServiceImpl.java
+6
-6
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipmentSpecificController.java
View file @
bbc301b3
...
@@ -386,7 +386,7 @@ public class EquipmentSpecificController extends AbstractBaseController {
...
@@ -386,7 +386,7 @@ public class EquipmentSpecificController extends AbstractBaseController {
ReginParams
ReginParams
=
getSelectedOrgInfo
();
ReginParams
ReginParams
=
getSelectedOrgInfo
();
String
bizCode
=
ReginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
();
String
bizCode
=
ReginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
();
return
equipmentSpecificSerivce
.
getListByEquipmentCode
(
code
,
bizCode
);
return
equipmentSpecificSerivce
.
getListByEquipmentCode
J
(
code
,
bizCode
);
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IEquipmentSpecificSerivce.java
View file @
bbc301b3
...
@@ -227,7 +227,7 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
...
@@ -227,7 +227,7 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
* @param code 装备分类逗号隔开
* @param code 装备分类逗号隔开
* @return 装备list
* @return 装备list
*/
*/
// List<Map<String, Object>> getListByEquipmentCode
(String code,String bizOrgCode);
List
<
Map
<
String
,
Object
>>
getListByEquipmentCodeJ
(
String
code
,
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getFirePumpInfoEQ
(
String
code
,
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getFirePumpInfoEQ
(
String
code
,
String
bizOrgCode
);
/**
/**
* 根据装备分类code获取装备列表,id 升序
* 根据装备分类code获取装备列表,id 升序
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EmergencyServiceImpl.java
View file @
bbc301b3
...
@@ -248,11 +248,11 @@ public class EmergencyServiceImpl implements IEmergencyService {
...
@@ -248,11 +248,11 @@ public class EmergencyServiceImpl implements IEmergencyService {
List
<
Map
<
String
,
String
>>
dataList
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
json
);
List
<
Map
<
String
,
String
>>
dataList
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
json
);
if
(!
CollectionUtils
.
isEmpty
(
dataList
))
{
if
(!
CollectionUtils
.
isEmpty
(
dataList
))
{
Collections
.
reverse
(
dataList
);
Collections
.
reverse
(
dataList
);
Map
<
String
,
List
<
Map
<
String
,
String
>>>
dataMap
=
dataList
.
stream
().
filter
(
y
->
y
.
containsKey
(
"createdTime"
)).
collect
(
Collectors
.
groupingBy
(
e
->
e
.
get
(
"createdTime"
).
substring
(
5
,
16
)
.
replace
(
"T"
,
" "
)
));
Map
<
String
,
List
<
Map
<
String
,
String
>>>
dataMap
=
dataList
.
stream
().
filter
(
y
->
y
.
containsKey
(
"createdTime"
)).
collect
(
Collectors
.
groupingBy
(
e
->
e
.
get
(
"createdTime"
).
substring
(
5
,
16
)));
timeList
.
forEach
(
t
->
{
timeList
.
forEach
(
t
->
{
List
<
Map
<
String
,
String
>>
data
=
dataMap
.
get
(
t
);
List
<
Map
<
String
,
String
>>
data
=
dataMap
.
get
(
t
);
if
(!
CollectionUtils
.
isEmpty
(
data
))
{
if
(!
CollectionUtils
.
isEmpty
(
data
))
{
List
<
Map
<
String
,
String
>>
yDataList
=
data
Map
.
get
(
t
).
stream
().
filter
(
o
->
"true"
.
equals
(
o
.
get
(
pressurePumpStart
).
toString
(
))).
collect
(
Collectors
.
toList
());
List
<
Map
<
String
,
String
>>
yDataList
=
data
.
stream
().
filter
(
o
->
"true"
.
equals
(
o
.
get
(
pressurePumpStart
))).
collect
(
Collectors
.
toList
());
yList
.
add
(
CollectionUtils
.
isEmpty
(
yDataList
)
?
0
:
1
);
yList
.
add
(
CollectionUtils
.
isEmpty
(
yDataList
)
?
0
:
1
);
}
else
{
}
else
{
yList
.
add
(
0
);
yList
.
add
(
0
);
...
@@ -331,13 +331,13 @@ public class EmergencyServiceImpl implements IEmergencyService {
...
@@ -331,13 +331,13 @@ public class EmergencyServiceImpl implements IEmergencyService {
if
(
200
==
halfResponseModel
.
getStatus
())
{
if
(
200
==
halfResponseModel
.
getStatus
())
{
String
json
=
JSON
.
toJSONString
(
halfResponseModel
.
getResult
());
String
json
=
JSON
.
toJSONString
(
halfResponseModel
.
getResult
());
List
<
Map
<
String
,
String
>>
halfDataList
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
json
);
List
<
Map
<
String
,
String
>>
halfDataList
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
json
);
List
<
Map
<
String
,
String
>>
halfCollect
=
halfDataList
.
stream
().
filter
(
o
->
"true"
.
equals
(
o
.
get
(
pressurePumpStart
)
.
toString
()
)).
collect
(
Collectors
.
toList
());
List
<
Map
<
String
,
String
>>
halfCollect
=
halfDataList
.
stream
().
filter
(
o
->
"true"
.
equals
(
o
.
get
(
pressurePumpStart
))).
collect
(
Collectors
.
toList
());
halfNum
.
addAndGet
(
halfCollect
.
size
());
halfNum
.
addAndGet
(
halfCollect
.
size
());
}
}
if
(
200
==
twoResponseModel
.
getStatus
())
{
if
(
200
==
twoResponseModel
.
getStatus
())
{
String
json
=
JSON
.
toJSONString
(
twoResponseModel
.
getResult
());
String
json
=
JSON
.
toJSONString
(
twoResponseModel
.
getResult
());
List
<
Map
<
String
,
String
>>
twoDataList
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
json
);
List
<
Map
<
String
,
String
>>
twoDataList
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
json
);
List
<
Map
<
String
,
String
>>
twoCollect
=
twoDataList
.
stream
().
filter
(
o
->
"true"
.
equals
(
o
.
get
(
pressurePumpStart
)
.
toString
()
)).
collect
(
Collectors
.
toList
());
List
<
Map
<
String
,
String
>>
twoCollect
=
twoDataList
.
stream
().
filter
(
o
->
"true"
.
equals
(
o
.
get
(
pressurePumpStart
))).
collect
(
Collectors
.
toList
());
twoNum
.
addAndGet
(
twoCollect
.
size
());
twoNum
.
addAndGet
(
twoCollect
.
size
());
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -360,7 +360,7 @@ public class EmergencyServiceImpl implements IEmergencyService {
...
@@ -360,7 +360,7 @@ public class EmergencyServiceImpl implements IEmergencyService {
List
<
Map
<
String
,
String
>>
stopDataList
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
stopJson
);
List
<
Map
<
String
,
String
>>
stopDataList
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
stopJson
);
List
<
Map
<
String
,
String
>>
collect
=
stopDataList
.
stream
().
filter
(
o
->
o
.
containsKey
(
"createdTime"
)).
collect
(
Collectors
.
toList
());
List
<
Map
<
String
,
String
>>
collect
=
stopDataList
.
stream
().
filter
(
o
->
o
.
containsKey
(
"createdTime"
)).
collect
(
Collectors
.
toList
());
if
(!
CollectionUtils
.
isEmpty
(
collect
))
{
if
(!
CollectionUtils
.
isEmpty
(
collect
))
{
intervalTime
=
collect
.
get
(
0
).
get
(
"createdTime"
).
substring
(
0
,
19
)
.
replace
(
"T"
,
" "
)
;
intervalTime
=
collect
.
get
(
0
).
get
(
"createdTime"
).
substring
(
0
,
19
);
// 停泵前的前5分钟,判断管网压力状态
// 停泵前的前5分钟,判断管网压力状态
try
{
try
{
String
stop5BeforeTime
=
DateUtils
.
convertDateToString
(
DateUtils
.
dateAddMinutes
(
DateUtils
.
convertStrToDate
(
intervalTime
,
"yyyy-MM-dd HH:mm:ss"
),
-
5
),
"yyyy-MM-dd HH:mm:ss"
);
String
stop5BeforeTime
=
DateUtils
.
convertDateToString
(
DateUtils
.
dateAddMinutes
(
DateUtils
.
convertStrToDate
(
intervalTime
,
"yyyy-MM-dd HH:mm:ss"
),
-
5
),
"yyyy-MM-dd HH:mm:ss"
);
...
@@ -396,7 +396,7 @@ public class EmergencyServiceImpl implements IEmergencyService {
...
@@ -396,7 +396,7 @@ public class EmergencyServiceImpl implements IEmergencyService {
List
<
Map
<
String
,
String
>>
startDataList
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
startJson
);
List
<
Map
<
String
,
String
>>
startDataList
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
startJson
);
List
<
Map
<
String
,
String
>>
collect
=
startDataList
.
stream
().
filter
(
o
->
o
.
containsKey
(
"createdTime"
)).
collect
(
Collectors
.
toList
());
List
<
Map
<
String
,
String
>>
collect
=
startDataList
.
stream
().
filter
(
o
->
o
.
containsKey
(
"createdTime"
)).
collect
(
Collectors
.
toList
());
if
(!
CollectionUtils
.
isEmpty
(
collect
))
{
if
(!
CollectionUtils
.
isEmpty
(
collect
))
{
intervalTime
=
collect
.
get
(
0
).
get
(
"createdTime"
).
substring
(
0
,
19
)
.
replace
(
"T"
,
" "
)
;
intervalTime
=
collect
.
get
(
0
).
get
(
"createdTime"
).
substring
(
0
,
19
);
durationTime
=
intervalTime
;
durationTime
=
intervalTime
;
}
}
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
bbc301b3
...
@@ -1832,7 +1832,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -1832,7 +1832,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
}
}
@Override
@Override
public
List
<
Map
<
String
,
Object
>>
getListByEquipmentCode
(
String
code
,
String
bizOrgCode
)
{
public
List
<
Map
<
String
,
Object
>>
getListByEquipmentCode
J
(
String
code
,
String
bizOrgCode
)
{
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
if
(
StringUtil
.
isNotEmpty
(
code
))
{
if
(
StringUtil
.
isNotEmpty
(
code
))
{
String
[]
strings
=
code
.
split
(
","
);
String
[]
strings
=
code
.
split
(
","
);
...
...
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