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
98a2f291
Commit
98a2f291
authored
May 06, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop_dl_3.7.0.8' of
http://39.98.45.134:8090/moa/amos-boot-biz…
Merge branch 'develop_dl_3.7.0.8' of
http://39.98.45.134:8090/moa/amos-boot-biz
into develop_dl_3.7.0.8
parents
c2a6b131
e6190254
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
PlanController.java
...ejoin/amos/patrol/business/controller/PlanController.java
+7
-5
PlanTaskServiceImpl.java
...mos/patrol/business/service/impl/PlanTaskServiceImpl.java
+1
-1
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/PlanController.java
View file @
98a2f291
...
@@ -142,12 +142,14 @@ public class PlanController extends AbstractBaseController {
...
@@ -142,12 +142,14 @@ public class PlanController extends AbstractBaseController {
@RequestMapping
(
value
=
"/addPlan"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/addPlan"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
POST
)
public
CommonResponse
checkPlanAdd
(
@ApiParam
(
value
=
"巡检计划"
,
required
=
true
)
@RequestBody
Plan
param
)
{
public
CommonResponse
checkPlanAdd
(
@ApiParam
(
value
=
"巡检计划"
,
required
=
true
)
@RequestBody
Plan
param
)
{
try
{
try
{
if
(
param
.
getDayRate
()
==
1
)
{
long
dayBeginTime
=
param
.
getDayBegin
().
getTime
();
if
(
param
.
getDayBegin
().
getTime
()>
param
.
getDayEnd
().
getTime
()){
long
dayEndTime
=
param
.
getDayEnd
().
getTime
();
throw
new
BadRequest
(
"开始时间不能大于结束时间"
);
long
diff
=
(
dayEndTime
-
dayBeginTime
)
/
1000
/
60
;
if
(
diff
<
param
.
getDuration
())
{
return
CommonResponseUtil
.
failure
(
"工作时长超出结束时间"
);
}
}
}
String
userId
=
getUserId
();
String
userId
=
getUserId
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
String
loginOrgCode
=
getOrgCode
(
reginParams
);
String
loginOrgCode
=
getOrgCode
(
reginParams
);
...
...
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 @
98a2f291
...
@@ -1906,7 +1906,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
...
@@ -1906,7 +1906,7 @@ public class PlanTaskServiceImpl implements IPlanTaskService {
qualified_task_percent
=
0.0
;
qualified_task_percent
=
0.0
;
log
.
error
(
"-----------------------------应巡查总数是 0,请检查!-----------------------------"
);
log
.
error
(
"-----------------------------应巡查总数是 0,请检查!-----------------------------"
);
}
else
{
}
else
{
qualified_task_percent
=
(
Double
.
valueOf
(
real
_count
)
/
Double
.
valueOf
(
total_count
))
*
100
;
qualified_task_percent
=
(
Double
.
valueOf
(
qualified
_count
)
/
Double
.
valueOf
(
total_count
))
*
100
;
}
}
map
.
put
(
"qualified_equip_rate"
,
qualified_task_percent
);
map
.
put
(
"qualified_equip_rate"
,
qualified_task_percent
);
int
missed_count
=
Integer
.
valueOf
(
String
.
valueOf
(
executeInfoMap
.
get
(
"missed_equip_num"
)));
int
missed_count
=
Integer
.
valueOf
(
String
.
valueOf
(
executeInfoMap
.
get
(
"missed_equip_num"
)));
...
...
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