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
b7cdf1e6
Commit
b7cdf1e6
authored
Jan 19, 2024
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
巡检查询当日应巡查列表
parent
0ce25fd0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
91 additions
and
0 deletions
+91
-0
CheckController.java
...join/amos/patrol/business/controller/CheckController.java
+25
-0
CheckMapper.java
.../yeejoin/amos/patrol/business/dao/mapper/CheckMapper.java
+4
-0
CheckServiceImpl.java
...n/amos/patrol/business/service/impl/CheckServiceImpl.java
+10
-0
ICheckService.java
...oin/amos/patrol/business/service/intfc/ICheckService.java
+2
-0
dbTemplate_check.xml
...-patrol/src/main/resources/db/mapper/dbTemplate_check.xml
+50
-0
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 @
b7cdf1e6
...
...
@@ -148,6 +148,31 @@ public class CheckController extends AbstractBaseController {
return
CommonResponseUtil
.
success
(
list
);
}
/**
*
* 浙江省设备平台今日应巡查任务
* **/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"巡检记录查询"
,
notes
=
"巡检记录查询"
)
@RequestMapping
(
value
=
"/listTaskNew"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
POST
)
public
CommonResponse
listTaskNew
(
@ApiParam
(
value
=
"查询条件"
,
required
=
false
)
@RequestBody
(
required
=
false
)
CheckInfoPageParam
param
,
@ApiParam
(
value
=
"分页参数"
,
required
=
true
)
CommonPageable
commonPageable
)
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
param
.
setOrderBy
(
"checkDate desc"
);
param
.
setBizOrgCode
(
ObjectUtils
.
isEmpty
(
param
.
getBizOrgCode
())
?
"3"
.
equals
(
param
.
getIsOK
())
?
null
:
reginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
()
:
param
.
getBizOrgCode
());
if
(
commonPageable
!=
null
){
param
.
setPageNumber
(
commonPageable
.
getPageNumber
()-
1
);
param
.
setPageSize
(
commonPageable
.
getPageSize
());
}
Page
<
CheckInfoVo
>
list
=
checkService
.
getPlanTaskCheckInfo
(
param
);
return
CommonResponseUtil
.
success
(
list
);
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/dao/mapper/CheckMapper.java
View file @
b7cdf1e6
...
...
@@ -19,6 +19,10 @@ public interface CheckMapper extends BaseMapper {
List
<
CheckInfoVo
>
getCheckInfo
(
CheckInfoPageParam
param
);
long
getPlanTaskCheckCount
(
CheckInfoPageParam
param
);
List
<
CheckInfoVo
>
getPlanTaskCheckInfo
(
CheckInfoPageParam
param
);
List
<
CheckInfoVo
>
getCheckInfoNew
(
CheckInfoPageParam
param
);
long
getCheckInfoCount
(
CheckInfoPageParam
param
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/impl/CheckServiceImpl.java
View file @
b7cdf1e6
...
...
@@ -168,6 +168,16 @@ public class CheckServiceImpl implements ICheckService {
return
new
PageImpl
<>(
content
,
param
,
total
);
}
public
Page
<
CheckInfoVo
>
getPlanTaskCheckInfo
(
CheckInfoPageParam
param
)
{
long
total
=
checkMapper
.
getPlanTaskCheckCount
(
param
);
List
<
CheckInfoVo
>
content
=
Lists
.
newArrayList
();
if
(
total
==
0
)
{
return
new
PageImpl
<>(
content
,
param
,
total
);
}
content
=
checkMapper
.
getPlanTaskCheckInfo
(
param
);
return
new
PageImpl
<>(
content
,
param
,
total
);
}
public
Page
<
CheckInfoVo
>
getPeoplePatrolPage
(
CheckInfoPageParam
param
)
{
long
total
=
checkMapper
.
getPeoplePageCount
(
param
);
List
<
CheckInfoVo
>
content
=
Lists
.
newArrayList
();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/service/intfc/ICheckService.java
View file @
b7cdf1e6
...
...
@@ -263,6 +263,8 @@ public interface ICheckService {
Page
<
CheckInfoVo
>
getCheckInfoNew
(
String
toke
,
String
product
,
String
appKey
,
CheckInfoPageParam
param
);
Page
<
CheckInfoVo
>
getPlanTaskCheckInfo
(
CheckInfoPageParam
param
);
Page
<
CheckInfoVo
>
getPeoplePatrolPage
(
CheckInfoPageParam
param
);
Map
<
String
,
Object
>
getPeopleStatistic
(
String
bizOrgCode
,
String
userId
);
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_check.xml
View file @
b7cdf1e6
...
...
@@ -256,6 +256,56 @@
</choose>
</select>
<select
id=
"getPlanTaskCheckCount"
resultType=
"long"
>
SELECT
count(a.id)
FROM
p_plan_task_detail b
LEFT JOIN p_plan_task a ON a.id = b.task_no
LEFT JOIN p_plan c ON c.id = a.plan_id
LEFT JOIN p_point d ON d.id = b.point_id
LEFT JOIN p_route e ON e.id = a.route_id
LEFT JOIN wl_warehouse_structure wws ON wws.id = d.risk_source_id
LEFT JOIN p_check pc ON pc.plan_task_detail_id = b.id
<where>
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
and a.org_code LIKE CONCAT(#{bizOrgCode},'%')
</if>
and DATE_FORMAT( a.check_date, '%Y-%m-%d' ) = CURRENT_DATE ()
</where>
</select>
<select
id=
"getPlanTaskCheckInfo"
resultMap=
"checkInfoMap"
>
SELECT
b.id,
e.NAME route_name,
d.NAME point_name,
a.user_name user_name,
wws.NAME address,
date_format( pc.check_time, '%Y-%m-%d %H:%i:%s' ) checkDate,
( CASE b.is_finish WHEN 0 THEN '未执行' WHEN 1 THEN '已执行' ELSE '未执行' END ) AS `Finish_Status`,
( CASE b.is_finish WHEN 0 THEN '尚未巡检' WHEN 1 THEN '按时完成' ELSE '超时漏检' END ) AS `is_ok`,
c.biz_org_name AS department_name
FROM
p_plan_task_detail b
LEFT JOIN p_plan_task a ON a.id = b.task_no
LEFT JOIN p_plan c ON c.id = a.plan_id
LEFT JOIN p_point d ON d.id = b.point_id
LEFT JOIN p_route e ON e.id = a.route_id
LEFT JOIN wl_warehouse_structure wws ON wws.id = d.risk_source_id
LEFT JOIN p_check pc ON pc.plan_task_detail_id = b.id
<where>
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
and a.org_code LIKE CONCAT(#{bizOrgCode},'%')
</if>
and DATE_FORMAT( a.check_date, '%Y-%m-%d' ) = CURRENT_DATE ()
</where>
<choose>
<when
test=
"pageSize==-1"
></when>
<when
test=
"pageSize!=-1"
>
limit #{offset}, #{pageSize}
</when>
</choose>
</select>
<select
id=
"getCheckInfoNew"
resultMap=
"checkInfoMap"
>
SELECT
a.id,
...
...
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