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
85d334d2
Commit
85d334d2
authored
Jun 28, 2023
by
刘林
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_dl_3.7.0.9' into develop_dl_3.7.0.9
parents
a6f54a27
1c7febfa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
21 deletions
+22
-21
OrgUsrServiceImpl.java
...oot/module/common/biz/service/impl/OrgUsrServiceImpl.java
+3
-1
TopographyController.java
.../yeejoin/equipmanage/controller/TopographyController.java
+19
-20
No files found.
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 @
85d334d2
...
@@ -3292,9 +3292,11 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
...
@@ -3292,9 +3292,11 @@ public class OrgUsrServiceImpl extends BaseService<OrgUsrDto, OrgUsr, OrgUsrMapp
if
(
"1601"
.
equals
(
type
))
{
if
(
"1601"
.
equals
(
type
))
{
deleteFirefighters
(
id
);
deleteFirefighters
(
id
);
}
}
// 巡检站端与中心级数据同步
// 4.解决人员更换岗位类型然后删除,App打卡还有脏数据问题
firefightersService
.
update
(
new
UpdateWrapper
<
Firefighters
>().
eq
(
"org_usr_id"
,
id
).
set
(
"is_delete"
,
1
));
// 巡检站端与中心级数据同步
TransactionSynchronizationManager
.
registerSynchronization
(
new
TransactionSynchronization
()
{
TransactionSynchronizationManager
.
registerSynchronization
(
new
TransactionSynchronization
()
{
@Override
@Override
public
void
afterCommit
()
{
public
void
afterCommit
()
{
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/TopographyController.java
View file @
85d334d2
...
@@ -899,9 +899,18 @@ public class TopographyController extends AbstractBaseController {
...
@@ -899,9 +899,18 @@ public class TopographyController extends AbstractBaseController {
String
json
=
JSON
.
toJSONString
(
entity
.
getResult
());
String
json
=
JSON
.
toJSONString
(
entity
.
getResult
());
List
<
Map
<
String
,
String
>>
listObject
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
json
);
List
<
Map
<
String
,
String
>>
listObject
=
(
List
<
Map
<
String
,
String
>>)
JSONArray
.
parse
(
json
);
List
<
IotDataVO
>
vos
=
new
ArrayList
<>();
List
<
IotDataVO
>
vos
=
new
ArrayList
<>();
Map
<
String
,
List
<
Date
>>
dateMap
=
new
HashMap
<>();
for
(
Map
<
String
,
String
>
mapList
:
listObject
)
{
for
(
Map
<
String
,
String
>
mapList
:
listObject
)
{
for
(
Map
.
Entry
entry
:
mapList
.
entrySet
())
{
for
(
Map
.
Entry
entry
:
mapList
.
entrySet
())
{
if
(!
"name"
.
equals
(
entry
.
getKey
())
&&
!
"deviceName"
.
equals
(
entry
.
getKey
()))
{
if
(!
"name"
.
equals
(
entry
.
getKey
())
&&
!
"deviceName"
.
equals
(
entry
.
getKey
())
&&
!
"time"
.
equals
(
entry
.
getKey
())
&&
!
"createdTime"
.
equals
(
entry
.
getKey
()))
{
if
(!
dateMap
.
containsKey
(
entry
.
getKey
()))
{
ArrayList
<
Date
>
dates1
=
new
ArrayList
<>();
dates1
.
add
(
dateParse
(
mapList
.
get
(
"time"
)));
dateMap
.
put
(
entry
.
getKey
().
toString
(),
dates1
);
}
else
{
dateMap
.
get
(
entry
.
getKey
()).
add
(
dateParse
(
mapList
.
get
(
"time"
)));
}
IotDataVO
vo
=
new
IotDataVO
();
IotDataVO
vo
=
new
IotDataVO
();
vo
.
setKey
(
String
.
valueOf
(
entry
.
getKey
()));
vo
.
setKey
(
String
.
valueOf
(
entry
.
getKey
()));
vo
.
setValue
(
String
.
valueOf
(
entry
.
getValue
()));
vo
.
setValue
(
String
.
valueOf
(
entry
.
getValue
()));
...
@@ -909,25 +918,15 @@ public class TopographyController extends AbstractBaseController {
...
@@ -909,25 +918,15 @@ public class TopographyController extends AbstractBaseController {
}
}
}
}
}
}
Map
<
String
,
List
<
Date
>>
dateMap
=
new
HashMap
<>();
// for (int i = 0; i < vos.size(); i = i + 2) {
for
(
int
i
=
0
;
i
<
vos
.
size
();
i
=
i
+
2
)
{
// Date useDate = null;
Date
useDate
=
null
;
// String indexKey = null;
String
indexKey
=
null
;
// if (vos.get(i).getKey().equals("time")) {
if
(
vos
.
get
(
i
).
getKey
().
equals
(
"time"
))
{
// useDate = dateParse(vos.get(i).getValue().toString());
useDate
=
dateParse
(
vos
.
get
(
i
).
getValue
().
toString
());
// indexKey = String.valueOf(vos.get(i + 1).getKey());
indexKey
=
String
.
valueOf
(
vos
.
get
(
i
+
1
).
getKey
());
// }
}
else
{
//
useDate
=
dateParse
(
vos
.
get
(
i
).
getValue
().
toString
());
// }
indexKey
=
String
.
valueOf
(
vos
.
get
(
i
).
getKey
());
}
if
(!
dateMap
.
containsKey
(
indexKey
))
{
ArrayList
<
Date
>
dates1
=
new
ArrayList
<>();
dates1
.
add
(
useDate
);
dateMap
.
put
(
indexKey
,
dates1
);
}
else
{
dateMap
.
get
(
indexKey
).
add
(
useDate
);
}
}
List
<
EquipmentSpecificIndex
>
indexes
=
equipmentSpecificIndexMapper
.
getEquipmentSpeIndexByIotCodeAndTrend
(
iotCode
);
List
<
EquipmentSpecificIndex
>
indexes
=
equipmentSpecificIndexMapper
.
getEquipmentSpeIndexByIotCodeAndTrend
(
iotCode
);
if
(
0
<
indexes
.
size
())
{
if
(
0
<
indexes
.
size
())
{
List
<
TopographyIotIndexTrendVo
>
list
=
new
ArrayList
<>();
List
<
TopographyIotIndexTrendVo
>
list
=
new
ArrayList
<>();
...
...
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