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
502e67e9
Commit
502e67e9
authored
Sep 12, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
省测卡片问题
parent
f07b4320
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
PlanTaskServiceImpl.java
...mos/patrol/business/service/impl/PlanTaskServiceImpl.java
+2
-2
KafkaConsumerService.java
.../com/yeejoin/amos/message/kafka/KafkaConsumerService.java
+1
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PlanTaskServiceImpl.java
View file @
502e67e9
...
@@ -2065,7 +2065,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
...
@@ -2065,7 +2065,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
for
(
Map
<
String
,
Object
>
map
:
statics
for
(
Map
<
String
,
Object
>
map
:
statics
)
{
)
{
if
(
map
.
get
(
"code"
).
equals
(
"xfxchgzb"
))
{
if
(
map
.
get
(
"code"
).
equals
(
"xfxchgzb"
))
{
map
.
put
(
"value"
,
String
.
valueOf
(
(((
double
)
hgdw
/
(
double
)
xcdw
))
*
100
));
map
.
put
(
"value"
,
String
.
format
(
"%.2f"
,
(((
double
)
hgdw
/
(
double
)
xcdw
))
*
100
));
}
}
}
}
}
}
...
@@ -2080,7 +2080,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
...
@@ -2080,7 +2080,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
for
(
Map
<
String
,
Object
>
map
:
statics
for
(
Map
<
String
,
Object
>
map
:
statics
)
{
)
{
if
(
map
.
get
(
"code"
).
equals
(
"xfxclcl"
))
{
if
(
map
.
get
(
"code"
).
equals
(
"xfxclcl"
))
{
map
.
put
(
"value"
,
String
.
valueOf
((((
double
)
lcdw
/
(
double
)
zxcdw
))*
100
)
);
map
.
put
(
"value"
,
String
.
format
(
"%.2f"
,
(((
double
)
lcdw
/
(
double
)
zxcdw
))*
100
)
);
}
}
}
}
}
}
...
...
amos-boot-utils/amos-boot-utils-message/src/main/java/com/yeejoin/amos/message/kafka/KafkaConsumerService.java
View file @
502e67e9
...
@@ -86,6 +86,7 @@ public class KafkaConsumerService {
...
@@ -86,6 +86,7 @@ public class KafkaConsumerService {
*/
*/
@KafkaListener
(
id
=
"provinceMessage"
,
groupId
=
"province"
,
topics
=
"#{'${kafka.topics}'.split(',')}"
,
concurrency
=
"2"
)
@KafkaListener
(
id
=
"provinceMessage"
,
groupId
=
"province"
,
topics
=
"#{'${kafka.topics}'.split(',')}"
,
concurrency
=
"2"
)
public
void
consumerSingle1
(
String
message
,
Acknowledgment
ack
)
{
public
void
consumerSingle1
(
String
message
,
Acknowledgment
ack
)
{
log
.
info
(
"省级消息转发打印"
+
message
);
if
(
isZxj
)
{
if
(
isZxj
)
{
Optional
<?>
messages
=
Optional
.
ofNullable
(
message
);
Optional
<?>
messages
=
Optional
.
ofNullable
(
message
);
if
(
messages
.
isPresent
())
{
if
(
messages
.
isPresent
())
{
...
...
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