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
05375a4f
Commit
05375a4f
authored
Apr 17, 2023
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
b4c4ad94
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
7 deletions
+28
-7
CheckController.java
...join/amos/patrol/business/controller/CheckController.java
+8
-6
PointController.java
...join/amos/patrol/business/controller/PointController.java
+8
-0
PointServiceImpl.java
...n/amos/patrol/business/service/impl/PointServiceImpl.java
+10
-0
IPointService.java
...oin/amos/patrol/business/service/intfc/IPointService.java
+2
-0
dbTemplate_plan_task.xml
...rol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
+0
-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/CheckController.java
View file @
05375a4f
...
@@ -179,11 +179,13 @@ public class CheckController extends AbstractBaseController {
...
@@ -179,11 +179,13 @@ public class CheckController extends AbstractBaseController {
return
CommonResponseUtil
.
failure
(
"无权执行该任务"
);
return
CommonResponseUtil
.
failure
(
"无权执行该任务"
);
}
}
statu
=
planTask
.
getFinishStatus
();
if
(!
requestParam
.
getIsOffline
())
{
if
(!
requestParam
.
getIsOffline
()
&&
statu
==
PlanTaskFinishStatusEnum
.
OVERTIME
.
getValue
())
{
statu
=
planTask
.
getFinishStatus
();
return
CommonResponseUtil
.
failure
(
"任务已超时,上传失败!"
);
if
(!
requestParam
.
getIsOffline
()
&&
statu
==
PlanTaskFinishStatusEnum
.
OVERTIME
.
getValue
())
{
}
else
if
(
statu
==
PlanTaskFinishStatusEnum
.
FINISHED
.
getValue
()){
return
CommonResponseUtil
.
failure
(
"任务已超时,上传失败!"
);
return
CommonResponseUtil
.
failure
(
"任务已完成!"
);
}
else
if
(
statu
==
PlanTaskFinishStatusEnum
.
FINISHED
.
getValue
()){
return
CommonResponseUtil
.
failure
(
"任务已完成!"
);
}
}
}
Date
checkTime
=
requestParam
.
getIsOffline
()?
DateUtil
.
getLongDate
(
requestParam
.
getCheckTime
()):
new
Date
();
Date
checkTime
=
requestParam
.
getIsOffline
()?
DateUtil
.
getLongDate
(
requestParam
.
getCheckTime
()):
new
Date
();
...
@@ -196,7 +198,7 @@ public class CheckController extends AbstractBaseController {
...
@@ -196,7 +198,7 @@ public class CheckController extends AbstractBaseController {
}
}
}
}
int
count
=
checkService
.
checkHasRecord
(
requestParam
);
int
count
=
checkService
.
checkHasRecord
(
requestParam
);
if
(
count
<
1
||
requestParam
.
getPlanTaskId
()
<
1
)
{
if
(
count
<
1
||
requestParam
.
getPlanTaskId
()
<
1
||
requestParam
.
getIsOffline
()
)
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
// String orgCode = getOrgCode(reginParams);
// String orgCode = getOrgCode(reginParams);
String
orgCode
=
reginParams
.
getPersonIdentity
().
getBizOrgCode
();
String
orgCode
=
reginParams
.
getPersonIdentity
().
getBizOrgCode
();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/controller/PointController.java
View file @
05375a4f
...
@@ -1616,4 +1616,12 @@ public class PointController extends AbstractBaseController {
...
@@ -1616,4 +1616,12 @@ public class PointController extends AbstractBaseController {
return
CommonResponseUtil
.
failure
(
"查询巡检点信息失败"
);
return
CommonResponseUtil
.
failure
(
"查询巡检点信息失败"
);
}
}
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"查询巡检点绑定设备巡检项"
,
notes
=
"查询巡检点绑定设备巡检项"
)
@GetMapping
(
value
=
"/equip/item/list"
,
produces
=
"application/json;charset=UTF-8"
)
public
CommonResponse
getEquipItemList
(
@ApiParam
(
value
=
"巡检点id"
,
required
=
true
)
@RequestParam
Long
routeId
,
@ApiParam
(
value
=
"巡检点id"
,
required
=
true
)
@RequestParam
Long
pointId
){
return
CommonResponseUtil
.
success
(
iPointService
.
queryEquipPointItemListByPointId
(
routeId
,
pointId
));
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/PointServiceImpl.java
View file @
05375a4f
...
@@ -1754,6 +1754,16 @@ public class PointServiceImpl implements IPointService {
...
@@ -1754,6 +1754,16 @@ public class PointServiceImpl implements IPointService {
}
}
@Override
@Override
public
List
<
String
>
queryEquipPointItemListByPointId
(
Long
routeId
,
Long
pointId
)
{
Long
[]
longs
=
new
Long
[]{
pointId
};
List
<
RoutePoint
>
list
=
iRoutePointDao
.
queryRoutePoint
(
routeId
,
longs
);
String
excludeItems
=
list
.
get
(
0
).
getExcludeItems
();
String
strings
[]
=
excludeItems
.
split
(
","
);
List
<
String
>
itemIds
=
Arrays
.
asList
(
strings
);
return
itemIds
;
}
@Override
public
List
<
PointResponse
>
getPointConfigDom
()
{
public
List
<
PointResponse
>
getPointConfigDom
()
{
// TODO Auto-generated method stub
// TODO Auto-generated method stub
return
pointMapper
.
getPointConfigDom
();
return
pointMapper
.
getPointConfigDom
();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/intfc/IPointService.java
View file @
05375a4f
...
@@ -372,4 +372,6 @@ public interface IPointService {
...
@@ -372,4 +372,6 @@ public interface IPointService {
void
syncPointClassify
(
Map
<
String
,
Object
>
map
);
void
syncPointClassify
(
Map
<
String
,
Object
>
map
);
List
<
PointInputItemVo
>
queryOldPointInputItemNew
(
Long
pointId
,
Long
id
);
List
<
PointInputItemVo
>
queryOldPointInputItemNew
(
Long
pointId
,
Long
id
);
List
<
String
>
queryEquipPointItemListByPointId
(
Long
routeId
,
Long
pointId
);
}
}
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
View file @
05375a4f
...
@@ -41,7 +41,6 @@
...
@@ -41,7 +41,6 @@
<if
test=
"orgCode!=null"
>
<if
test=
"orgCode!=null"
>
and (a.org_Code like concat (#{orgCode},"-%")or a.org_Code= #{orgCode})
and (a.org_Code like concat (#{orgCode},"-%")or a.org_Code= #{orgCode})
</if>
</if>
<if
test=
"bizOrgCode!=null"
>
and a.org_Code like concat (#{bizOrgCode},"%")
</if>
<if
test=
"searchDay!=null and searchDay != '' and searchDay == 1"
>
<if
test=
"searchDay!=null and searchDay != '' and searchDay == 1"
>
and a.`check_date` = curdate()
and a.`check_date` = curdate()
</if>
</if>
...
...
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