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
ca726a4f
Commit
ca726a4f
authored
Feb 07, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
557f1bc8
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
10 deletions
+21
-10
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+3
-0
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+7
-0
BigScreenController.java
...m/yeejoin/equipmanage/controller/BigScreenController.java
+2
-2
ConfigureController.java
...m/yeejoin/equipmanage/controller/ConfigureController.java
+4
-4
IotFeign.java
...src/main/java/com/yeejoin/equipmanage/fegin/IotFeign.java
+1
-0
EmergencyServiceImpl.java
...eejoin/equipmanage/service/impl/EmergencyServiceImpl.java
+3
-3
EquipmentSpecificAlarmServiceImpl.java
...anage/service/impl/EquipmentSpecificAlarmServiceImpl.java
+1
-1
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-common-api/src/main/resources/mapper/OrgUsrMapper.xml
View file @
ca726a4f
...
@@ -164,6 +164,9 @@
...
@@ -164,6 +164,9 @@
<if
test=
"map.positionType != null and map.positionType != ''"
>
<if
test=
"map.positionType != null and map.positionType != ''"
>
AND FIND_IN_SET(#{map.positionType},g.positionType)
AND FIND_IN_SET(#{map.positionType},g.positionType)
</if>
</if>
<if
test=
"map.peopleType != null and map.peopleType != ''"
>
AND g.peopleType = #{map.peopleType}
</if>
GROUP BY
GROUP BY
u.sequence_nbr ,
u.sequence_nbr ,
u.biz_org_name ,
u.biz_org_name ,
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/OrgUsrServiceImpl.java
View file @
ca726a4f
...
@@ -604,12 +604,19 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -604,12 +604,19 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
map
.
put
(
"positionType"
,
positionType
);
map
.
put
(
"positionType"
,
positionType
);
}
}
String
peopleType
=
""
;
if
(
req
.
containsKey
(
"peopleType"
))
{
peopleType
=
req
.
get
(
"peopleType"
).
toString
();
map
.
put
(
"peopleType"
,
peopleType
);
}
req
.
remove
(
"pageSize"
);
req
.
remove
(
"pageSize"
);
req
.
remove
(
"pageNum"
);
req
.
remove
(
"pageNum"
);
req
.
remove
(
"parentId"
);
req
.
remove
(
"parentId"
);
req
.
remove
(
"amosOrgId"
);
req
.
remove
(
"amosOrgId"
);
req
.
remove
(
"company"
);
req
.
remove
(
"company"
);
req
.
remove
(
"positionType"
);
req
.
remove
(
"positionType"
);
req
.
remove
(
"peopleType"
);
req
.
remove
(
"bizOrgName"
);
req
.
remove
(
"bizOrgName"
);
map
.
put
(
"fieldsValue"
,
req
);
map
.
put
(
"fieldsValue"
,
req
);
map
.
put
(
"fields"
,
alertFormServiceImpl
.
queryListByFormId
(
OrgPersonEnum
.
人员
.
getCode
()));
map
.
put
(
"fields"
,
alertFormServiceImpl
.
queryListByFormId
(
OrgPersonEnum
.
人员
.
getCode
()));
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/BigScreenController.java
View file @
ca726a4f
...
@@ -114,8 +114,8 @@ public class BigScreenController extends AbstractBaseController {
...
@@ -114,8 +114,8 @@ public class BigScreenController extends AbstractBaseController {
ResponseModel
entity1
=
null
;
ResponseModel
entity1
=
null
;
ResponseModel
entity2
=
null
;
ResponseModel
entity2
=
null
;
try
{
try
{
entity1
=
iotFeign
.
selectListNew
(
getAppKey
(),
getProduct
(),
getToken
(),
iotCode
,
startDateStr
,
nowStrLong
,
"true"
,
pressurePumpStart
);
entity1
=
iotFeign
.
selectListNew
(
getAppKey
(),
getProduct
(),
getToken
(),
prefix
,
suffix
,
startDateStr
,
nowStrLong
,
"true"
,
pressurePumpStart
);
entity2
=
iotFeign
.
selectListNew
(
getAppKey
(),
getProduct
(),
getToken
(),
iotCode
,
startDateStr
,
nowStrLong
,
"false"
,
pressurePumpStart
);
entity2
=
iotFeign
.
selectListNew
(
getAppKey
(),
getProduct
(),
getToken
(),
prefix
,
suffix
,
startDateStr
,
nowStrLong
,
"false"
,
pressurePumpStart
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/ConfigureController.java
View file @
ca726a4f
...
@@ -332,8 +332,8 @@ public class ConfigureController extends AbstractBaseController {
...
@@ -332,8 +332,8 @@ public class ConfigureController extends AbstractBaseController {
ResponseModel
entity1
=
null
;
ResponseModel
entity1
=
null
;
ResponseModel
entity2
=
null
;
ResponseModel
entity2
=
null
;
try
{
try
{
entity1
=
iotFeign
.
selectListNew
(
getAppKey
(),
getProduct
(),
getToken
(),
iotCode
,
startDateStr
,
nowStrLong
,
"true"
,
pressurePumpStart
);
entity1
=
iotFeign
.
selectListNew
(
getAppKey
(),
getProduct
(),
getToken
(),
prefix
,
suffix
,
startDateStr
,
nowStrLong
,
"true"
,
pressurePumpStart
);
entity2
=
iotFeign
.
selectListNew
(
getAppKey
(),
getProduct
(),
getToken
(),
iotCode
,
startDateStr
,
nowStrLong
,
"false"
,
pressurePumpStart
);
entity2
=
iotFeign
.
selectListNew
(
getAppKey
(),
getProduct
(),
getToken
(),
prefix
,
suffix
,
startDateStr
,
nowStrLong
,
"false"
,
pressurePumpStart
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
@@ -393,8 +393,8 @@ public class ConfigureController extends AbstractBaseController {
...
@@ -393,8 +393,8 @@ public class ConfigureController extends AbstractBaseController {
ResponseModel
entity1
=
null
;
ResponseModel
entity1
=
null
;
ResponseModel
entity2
=
null
;
ResponseModel
entity2
=
null
;
try
{
try
{
entity1
=
iotFeign
.
selectListNew
(
getAppKey
(),
getProduct
(),
getToken
(),
iotCode
,
startDateStr
,
nowStrLong
,
"true"
,
pressurePumpStart
);
entity1
=
iotFeign
.
selectListNew
(
getAppKey
(),
getProduct
(),
getToken
(),
prefix
,
suffix
,
startDateStr
,
nowStrLong
,
"true"
,
pressurePumpStart
);
entity2
=
iotFeign
.
selectListNew
(
getAppKey
(),
getProduct
(),
getToken
(),
iotCode
,
startDateStr
,
nowStrLong
,
"false"
,
pressurePumpStart
);
entity2
=
iotFeign
.
selectListNew
(
getAppKey
(),
getProduct
(),
getToken
(),
prefix
,
suffix
,
startDateStr
,
nowStrLong
,
"false"
,
pressurePumpStart
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/fegin/IotFeign.java
View file @
ca726a4f
...
@@ -57,6 +57,7 @@ public interface IotFeign {
...
@@ -57,6 +57,7 @@ public interface IotFeign {
@RequestHeader
(
"product"
)
String
product
,
@RequestHeader
(
"product"
)
String
product
,
@RequestHeader
(
"token"
)
String
token
,
@RequestHeader
(
"token"
)
String
token
,
@RequestParam
(
value
=
"measurement"
)
String
measurement
,
@RequestParam
(
value
=
"measurement"
)
String
measurement
,
@RequestParam
(
required
=
false
,
value
=
"deviceName"
)
String
deviceName
,
@RequestParam
(
value
=
"timeStart"
)
String
beginDate
,
@RequestParam
(
value
=
"timeStart"
)
String
beginDate
,
@RequestParam
(
value
=
"timeEnd"
)
String
endDate
,
@RequestParam
(
value
=
"timeEnd"
)
String
endDate
,
@RequestParam
(
"FHS_PressurePump_Start"
)
String
key
,
@RequestParam
(
"FHS_PressurePump_Start"
)
String
key
,
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EmergencyServiceImpl.java
View file @
ca726a4f
...
@@ -239,7 +239,7 @@ public class EmergencyServiceImpl implements IEmergencyService {
...
@@ -239,7 +239,7 @@ public class EmergencyServiceImpl implements IEmergencyService {
suffix
=
iotCode
.
toString
().
substring
(
8
);
suffix
=
iotCode
.
toString
().
substring
(
8
);
ResponseModel
responseModel
=
null
;
ResponseModel
responseModel
=
null
;
try
{
try
{
responseModel
=
iotFeign
.
selectListNew
(
appKey
,
product
,
token
,
prefix
,
startTime
,
endTime
,
null
,
pressurePumpStart
);
responseModel
=
iotFeign
.
selectListNew
(
appKey
,
product
,
token
,
prefix
,
null
,
startTime
,
endTime
,
null
,
pressurePumpStart
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
@@ -319,9 +319,9 @@ public class EmergencyServiceImpl implements IEmergencyService {
...
@@ -319,9 +319,9 @@ public class EmergencyServiceImpl implements IEmergencyService {
AtomicInteger
twoNum
=
new
AtomicInteger
();
AtomicInteger
twoNum
=
new
AtomicInteger
();
if
(!
CollectionUtils
.
isEmpty
(
specificList
))
{
if
(!
CollectionUtils
.
isEmpty
(
specificList
))
{
String
prefix
=
null
;
String
prefix
=
null
;
String
suffix
=
null
;
for
(
Map
<
String
,
Object
>
x
:
specificList
)
{
for
(
Map
<
String
,
Object
>
x
:
specificList
)
{
Object
iotCode
=
x
.
get
(
"iotCode"
);
Object
iotCode
=
x
.
get
(
"iotCode"
);
String
suffix
=
null
;
if
(
x
.
get
(
"iotCode"
)
!=
null
&&
iotCode
.
toString
().
length
()
>
8
)
{
if
(
x
.
get
(
"iotCode"
)
!=
null
&&
iotCode
.
toString
().
length
()
>
8
)
{
prefix
=
iotCode
.
toString
().
substring
(
0
,
8
);
prefix
=
iotCode
.
toString
().
substring
(
0
,
8
);
suffix
=
iotCode
.
toString
().
substring
(
8
);
suffix
=
iotCode
.
toString
().
substring
(
8
);
...
@@ -364,7 +364,7 @@ public class EmergencyServiceImpl implements IEmergencyService {
...
@@ -364,7 +364,7 @@ public class EmergencyServiceImpl implements IEmergencyService {
// 停泵前的前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"
);
ResponseModel
pipeResponseModel
=
iotFeign
.
selectListNew
(
appKey
,
product
,
token
,
prefix
,
stop5BeforeTime
,
intervalTime
,
null
,
"FHS_PipePressureDetector_PipePressure"
);
ResponseModel
pipeResponseModel
=
iotFeign
.
selectListNew
(
appKey
,
product
,
token
,
prefix
,
null
,
stop5BeforeTime
,
intervalTime
,
null
,
"FHS_PipePressureDetector_PipePressure"
);
if
(
200
==
pipeResponseModel
.
getStatus
())
{
if
(
200
==
pipeResponseModel
.
getStatus
())
{
String
pipeJson
=
JSON
.
toJSONString
(
pipeResponseModel
.
getResult
());
String
pipeJson
=
JSON
.
toJSONString
(
pipeResponseModel
.
getResult
());
List
<
Map
<
String
,
String
>>
pipeDataList
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
pipeJson
);
List
<
Map
<
String
,
String
>>
pipeDataList
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
pipeJson
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificAlarmServiceImpl.java
View file @
ca726a4f
...
@@ -789,7 +789,7 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
...
@@ -789,7 +789,7 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
vo
=
equipmentSpecificMapper
.
getEquipmentSpecificIotCodeWYB
().
get
(
0
);
vo
=
equipmentSpecificMapper
.
getEquipmentSpecificIotCodeWYB
().
get
(
0
);
}
}
int
startNum
=
Integer
.
parseInt
(
stringObjectMap
.
get
(
"startNum"
).
toString
());
int
startNum
=
Integer
.
parseInt
(
stringObjectMap
.
get
(
"startNum"
).
toString
());
ResponseModel
start
=
iotFeign
.
selectListNew
(
remoteSecurityService
.
getServerToken
().
getAppKey
(),
remoteSecurityService
.
getServerToken
().
getProduct
(),
remoteSecurityService
.
getServerToken
().
getToke
(),
vo
.
getIotCode
().
substring
(
0
,
8
),
startTime
,
endTime
,
"true"
,
pressurePumpStart
);
ResponseModel
start
=
iotFeign
.
selectListNew
(
remoteSecurityService
.
getServerToken
().
getAppKey
(),
remoteSecurityService
.
getServerToken
().
getProduct
(),
remoteSecurityService
.
getServerToken
().
getToke
(),
vo
.
getIotCode
().
substring
(
0
,
8
),
null
,
startTime
,
endTime
,
"true"
,
pressurePumpStart
);
if
(
200
==
start
.
getStatus
()
&&
!
ObjectUtils
.
isEmpty
(
start
.
getResult
()))
{
if
(
200
==
start
.
getStatus
()
&&
!
ObjectUtils
.
isEmpty
(
start
.
getResult
()))
{
String
json1
=
JSON
.
toJSONString
(
start
.
getResult
());
String
json1
=
JSON
.
toJSONString
(
start
.
getResult
());
List
<
Map
<
String
,
String
>>
listObject1
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
json1
);
List
<
Map
<
String
,
String
>>
listObject1
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
json1
);
...
...
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