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
b04a7094
Commit
b04a7094
authored
Nov 28, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_dl_plan6' into develop_dl_plan6
parents
d12c59ed
e282fc25
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
OrgUsrMapper.xml
...ule-common-api/src/main/resources/mapper/OrgUsrMapper.xml
+1
-1
SupervisionConfigureController.java
...quipmanage/controller/SupervisionConfigureController.java
+4
-4
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+1
-1
KafkaConsumerService.java
.../com/yeejoin/amos/message/kafka/KafkaConsumerService.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 @
b04a7094
...
@@ -1121,7 +1121,7 @@ LEFT JOIN (
...
@@ -1121,7 +1121,7 @@ LEFT JOIN (
( CASE WHEN cfp.post_qualification IS NULL THEN 0 ELSE 1 END ) AS is_certificate,
( CASE WHEN cfp.post_qualification IS NULL THEN 0 ELSE 1 END ) AS is_certificate,
IF
IF
(
(
( SELECT field_value FROM cb_dynamic_form_instance dfi WHERE dfi.field_code = 'peopleType' AND dfi.instance_id = u.sequence_nbr ) =
2
,
( SELECT field_value FROM cb_dynamic_form_instance dfi WHERE dfi.field_code = 'peopleType' AND dfi.instance_id = u.sequence_nbr ) =
1601
,
1,
1,
0
0
) AS is_firefighters,
) AS is_firefighters,
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/SupervisionConfigureController.java
View file @
b04a7094
...
@@ -330,7 +330,7 @@ public class SupervisionConfigureController extends AbstractBaseController {
...
@@ -330,7 +330,7 @@ public class SupervisionConfigureController extends AbstractBaseController {
long
nowDateTime
=
new
Date
().
getTime
();
//当前时间戳
long
nowDateTime
=
new
Date
().
getTime
();
//当前时间戳
Map
<
String
,
String
>
stateMap
=
fireFightingSystemMapper
.
queryPressureNowStateBySpecificId
((
Long
)
item
.
get
(
"id"
));
Map
<
String
,
String
>
stateMap
=
fireFightingSystemMapper
.
queryPressureNowStateBySpecificId
((
Long
)
item
.
get
(
"id"
));
ids
.
add
((
Long
)
item
.
get
(
"id"
));
ids
.
add
((
Long
)
item
.
get
(
"id"
));
boolean
time
=
fals
e
;
boolean
time
=
tru
e
;
if
(!
ObjectUtils
.
isEmpty
(
stateMap
)
&&
stateMap
.
containsKey
(
"update_date"
)
&&
stateMap
.
containsKey
(
"equipment_index_name"
))
{
if
(!
ObjectUtils
.
isEmpty
(
stateMap
)
&&
stateMap
.
containsKey
(
"update_date"
)
&&
stateMap
.
containsKey
(
"equipment_index_name"
))
{
item
.
put
(
"update_time"
,
String
.
valueOf
(
stateMap
.
get
(
"update_date"
)).
replaceAll
(
"T"
,
" "
));
item
.
put
(
"update_time"
,
String
.
valueOf
(
stateMap
.
get
(
"update_date"
)).
replaceAll
(
"T"
,
" "
));
if
(!
ObjectUtils
.
isEmpty
(
stateMap
.
get
(
"value"
)))
{
if
(!
ObjectUtils
.
isEmpty
(
stateMap
.
get
(
"value"
)))
{
...
@@ -347,13 +347,13 @@ public class SupervisionConfigureController extends AbstractBaseController {
...
@@ -347,13 +347,13 @@ public class SupervisionConfigureController extends AbstractBaseController {
}
}
long
res
=
nowDateTime
-
update_time
;
long
res
=
nowDateTime
-
update_time
;
long
diffMinute
=
res
/
1000
/
60
;
long
diffMinute
=
res
/
1000
/
60
;
if
(
diffMinute
<=
5
)
{
if
(
diffMinute
>
5
)
{
time
=
tru
e
;
time
=
fals
e
;
}
}
item
.
put
(
"upTime"
,
diffMinute
);
item
.
put
(
"upTime"
,
diffMinute
);
}
}
}
}
item
.
put
(
"stateDesc"
,
Integer
.
parseInt
(
String
.
valueOf
(
item
.
get
(
"isAlarm"
)))
==
0
||
time
?
"正常"
:
"异常"
);
item
.
put
(
"stateDesc"
,
Integer
.
parseInt
(
String
.
valueOf
(
item
.
get
(
"isAlarm"
)))
==
0
&&
time
?
"正常"
:
"异常"
);
return
item
;
return
item
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
List
<
Map
<
String
,
Object
>>
stateMap
=
fireFightingSystemMapper
.
queryStartAndStopBySpecificId
(
ids
);
List
<
Map
<
String
,
Object
>>
stateMap
=
fireFightingSystemMapper
.
queryStartAndStopBySpecificId
(
ids
);
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
b04a7094
...
@@ -4885,7 +4885,7 @@
...
@@ -4885,7 +4885,7 @@
</if>
</if>
GROUP BY
GROUP BY
es.id
es.id
) a
) a
ORDER BY FIELD(status,'压力低','正常','--')
</select>
</select>
<select
id=
"getInfluentFlowBySuper"
resultType=
"java.util.Map"
>
<select
id=
"getInfluentFlowBySuper"
resultType=
"java.util.Map"
>
...
...
amos-boot-utils/amos-boot-utils-message/src/main/java/com/yeejoin/amos/message/kafka/KafkaConsumerService.java
View file @
b04a7094
...
@@ -28,7 +28,7 @@ public class KafkaConsumerService {
...
@@ -28,7 +28,7 @@ public class KafkaConsumerService {
* 消费单条消息,topics 可以监听多个topic,如:topics = {"topic1", "topic2"}
* 消费单条消息,topics 可以监听多个topic,如:topics = {"topic1", "topic2"}
* @param message 消息
* @param message 消息
*/
*/
@KafkaListener
(
id
=
"consumerSingle"
,
topics
=
"#{'${kafka.topics}'.split(',')}"
,
errorHandler
=
"consumerAwareListenerErrorHandler
"
)
@KafkaListener
(
id
=
"consumerSingle"
,
topics
=
"#{'${kafka.topics}'.split(',')}"
,
concurrency
=
"2
"
)
public
void
consumerSingle
(
String
message
,
Acknowledgment
ack
)
{
public
void
consumerSingle
(
String
message
,
Acknowledgment
ack
)
{
JSONObject
messageObj
=
JSONObject
.
fromObject
(
message
);
JSONObject
messageObj
=
JSONObject
.
fromObject
(
message
);
String
topic
=
messageObj
.
getString
(
"topic"
);
String
topic
=
messageObj
.
getString
(
"topic"
);
...
...
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