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
d5304caf
Commit
d5304caf
authored
Aug 31, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
省测卡片问题1,2
parent
68adc734
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
6 deletions
+35
-6
PlanTaskServiceImpl.java
...mos/patrol/business/service/impl/PlanTaskServiceImpl.java
+35
-6
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 @
d5304caf
...
@@ -2036,15 +2036,44 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
...
@@ -2036,15 +2036,44 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
}
}
DecimalFormat
df
=
new
DecimalFormat
(
"#.00"
);
DecimalFormat
df
=
new
DecimalFormat
(
"#.00"
);
List
<
Map
<
String
,
Object
>>
statics
=
planTaskMapper
.
getStatics
(
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
statics
=
planTaskMapper
.
getStatics
(
bizOrgCode
);
if
(
Integer
.
parseInt
(
statics
.
get
(
0
).
get
(
"xfxcjrljxcdw"
).
toString
())
==
0
)
{
int
xcdw
=
0
;
statics
.
get
(
0
).
put
(
"xfxchgzb"
,
"0"
);
int
hgdw
=
0
;
statics
.
get
(
0
).
put
(
"xfxclcl"
,
"0"
);
int
lcdw
=
0
;
for
(
Map
<
String
,
Object
>
map
:
statics
)
{
if
(
map
.
get
(
"code"
).
equals
(
"xfxcjrljxcdw"
))
{
xcdw
=
Integer
.
parseInt
(
map
.
get
(
"value"
).
toString
());
}
if
(
map
.
get
(
"code"
).
equals
(
"xfxchg"
))
{
hgdw
=
Integer
.
parseInt
(
map
.
get
(
"value"
).
toString
());
}
if
(
map
.
get
(
"code"
).
equals
(
"xfxcjrlcdw"
))
{
lcdw
=
Integer
.
parseInt
(
map
.
get
(
"value"
).
toString
());
}
}
if
(
xcdw
==
0
)
{
for
(
Map
<
String
,
Object
>
map
:
statics
)
{
if
(
map
.
get
(
"code"
).
equals
(
"xfxchgzb"
))
{
map
.
put
(
"value"
,
"0"
);
}
if
(
map
.
get
(
"code"
).
equals
(
"xfxclcl"
))
{
map
.
put
(
"value"
,
"0"
);
}
}
}
else
{
}
else
{
statics
.
get
(
0
).
put
(
"xfxchgzb"
,
df
.
format
(
Integer
.
parseInt
(
statics
.
get
(
0
).
get
(
"xfxcjrljxcdw"
).
toString
())
/
Integer
.
parseInt
(
statics
.
get
(
0
).
get
(
"xfxcjrljxcdw"
).
toString
())
));
for
(
Map
<
String
,
Object
>
map
:
statics
statics
.
get
(
0
).
put
(
"xfxclcl"
,
df
.
format
(
Integer
.
parseInt
(
statics
.
get
(
0
).
get
(
"xfxcjrlcdw"
).
toString
())
/
Integer
.
parseInt
(
statics
.
get
(
0
).
get
(
"xfxcjrljxcdw"
).
toString
())
));
)
{
if
(
map
.
get
(
"code"
).
equals
(
"xfxchgzb"
))
{
map
.
put
(
"value"
,
df
.
format
(
hgdw
/
xcdw
));
}
if
(
map
.
get
(
"code"
).
equals
(
"xfxclcl"
))
{
map
.
put
(
"value"
,
df
.
format
(
lcdw
/
xcdw
));
}
}
}
}
return
planTaskMapper
.
getStatics
(
bizOrgCode
)
;
return
statics
;
}
}
...
...
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