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
d291b82f
Commit
d291b82f
authored
Jul 27, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口
parent
1c4e1494
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
1 deletion
+35
-1
PlanController.java
...ejoin/amos/patrol/business/controller/PlanController.java
+10
-0
PlanTaskVo.java
.../java/com/yeejoin/amos/patrol/business/vo/PlanTaskVo.java
+2
-0
dbTemplate_plan.xml
...m-patrol/src/main/resources/db/mapper/dbTemplate_plan.xml
+14
-1
dbTemplate_plan_task.xml
...rol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
+9
-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/PlanController.java
View file @
d291b82f
...
@@ -56,7 +56,17 @@ public class PlanController extends AbstractBaseController {
...
@@ -56,7 +56,17 @@ public class PlanController extends AbstractBaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"巡检计划查询"
,
notes
=
"巡检计划查询"
)
@RequestMapping
(
value
=
"/queryPlanByOrgCodeNew"
,
produces
=
"application/json;charset=UTF-8"
,
method
=
RequestMethod
.
POST
)
public
CommonResponse
qryCheckInfoNew
()
{
PlanInfoPageParam
param
=
new
PlanInfoPageParam
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
param
.
setBizOrgCode
(
reginParams
.
getPersonIdentity
().
getCompanyBizOrgCode
());
List
<
HashMap
<
String
,
Object
>>
list
=
planService
.
getPlanInfoNoPage
(
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/vo/PlanTaskVo.java
View file @
d291b82f
...
@@ -32,5 +32,7 @@ public class PlanTaskVo {
...
@@ -32,5 +32,7 @@ public class PlanTaskVo {
private
String
remark
;
private
String
remark
;
private
String
userDept
;
private
String
userDept
;
private
String
statusName
;
}
}
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_plan.xml
View file @
d291b82f
...
@@ -133,6 +133,15 @@
...
@@ -133,6 +133,15 @@
<select
id=
"getPlanInfo"
resultType=
"java.util.HashMap"
>
<select
id=
"getPlanInfo"
resultType=
"java.util.HashMap"
>
SELECT
SELECT
a.id,a.name , IFNULL(a.plan_begin,"") planBegin,a.`status`,
a.id,a.name , IFNULL(a.plan_begin,"") planBegin,a.`status`,
(case a.plan_type
when 1 THEN '天'
when 2 THEN '周'
when 3 THEN '月'
else '年' END) as planTypeName,
(case a.is_fixed_date
when 0 THEN '否'
else '是' END) as isFixedDateName,
IFNULL(a.plan_end,"") planEnd,a.plan_end planEnd,a.plan_type planType,
IFNULL(a.plan_end,"") planEnd,a.plan_end planEnd,a.plan_type planType,
b.name routeName,a.route_id routeId,a.is_fixed_date isFixedDate,a.remark,a.remark1
b.name routeName,a.route_id routeId,a.is_fixed_date isFixedDate,a.remark,a.remark1
FROM
FROM
...
@@ -157,7 +166,10 @@
...
@@ -157,7 +166,10 @@
<!--巡检计划查询不分页 -->
<!--巡检计划查询不分页 -->
<select
id=
"getPlanInfoNoPage"
resultType=
"java.util.HashMap"
>
<select
id=
"getPlanInfoNoPage"
resultType=
"java.util.HashMap"
>
SELECT
SELECT
a.id,a.name ,a.plan_type planType,b.name routeName,a.route_id routeId,a.is_fixed_date isFixedDate,a.remark
cast(a.id as char) as id,
a.name ,a.plan_type planType,b.name routeName,a.route_id routeId,a.is_fixed_date isFixedDate,a.remark
FROM
FROM
p_plan a,
p_plan a,
p_route b
p_route b
...
@@ -169,6 +181,7 @@
...
@@ -169,6 +181,7 @@
<if
test=
"remark!=null"
>
and a.remark like concat(concat("%",#{remark}),"%")
</if>
<if
test=
"remark!=null"
>
and a.remark like concat(concat("%",#{remark}),"%")
</if>
<if
test=
"orgCode!=null"
>
and (a.org_code LIKE CONCAT( #{orgCode}, '-%' ) or a.org_code= #{orgCode} )
</if>
<if
test=
"orgCode!=null"
>
and (a.org_code LIKE CONCAT( #{orgCode}, '-%' ) or a.org_code= #{orgCode} )
</if>
<if
test=
"userId!=null"
>
and FIND_IN_SET(#{userId},a.user_id)
</if>
<if
test=
"userId!=null"
>
and FIND_IN_SET(#{userId},a.user_id)
</if>
<if
test=
"bizOrgCode!=null"
>
and b.biz_org_code like concat(concat("%",#{bizOrgCode}),"%")
</if>
order by a.id
order by a.id
</select>
</select>
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
View file @
d291b82f
...
@@ -67,6 +67,15 @@
...
@@ -67,6 +67,15 @@
'%Y-%m-%d %H:%i:%s'
'%Y-%m-%d %H:%i:%s'
) endTime,
) endTime,
b.is_finish status,
b.is_finish status,
(case b.is_finish
when 0 THEN '尚未巡检'
when 1 THEN '按时完成'
else '超时漏检' END) as `statusName`,
c.dept_id deptId,
c.dept_id deptId,
c.remark1 as remark
c.remark1 as remark
FROM p_plan_task_detail b
FROM p_plan_task_detail b
...
...
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