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
5fd6675c
Commit
5fd6675c
authored
Aug 26, 2024
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改线路名称
parent
72dc0356
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
15 deletions
+21
-15
TaskServiceImpl.java
...in/amos/patrol/business/service/impl/TaskServiceImpl.java
+2
-2
dbTemplate_plan_task.xml
...rol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
+19
-13
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/TaskServiceImpl.java
View file @
5fd6675c
...
@@ -645,8 +645,8 @@ public class TaskServiceImpl implements ITaskService {
...
@@ -645,8 +645,8 @@ public class TaskServiceImpl implements ITaskService {
HashMap
<
String
,
Object
>
temph1
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
temph1
=
new
HashMap
<>();
temph1
.
put
(
"fid"
,
"name"
);
temph1
.
put
(
"fid"
,
"name"
);
temph1
.
put
(
"dataIndex"
,
"name"
);
temph1
.
put
(
"dataIndex"
,
"name"
);
temph1
.
put
(
"name"
,
" 巡检
区域
"
);
temph1
.
put
(
"name"
,
" 巡检
对象名称
"
);
temph1
.
put
(
"title"
,
"巡检
区域
"
);
temph1
.
put
(
"title"
,
"巡检
对象名称
"
);
temph1
.
put
(
"type"
,
"dataGrid"
);
temph1
.
put
(
"type"
,
"dataGrid"
);
temph1
.
put
(
"key"
,
"name"
);
temph1
.
put
(
"key"
,
"name"
);
colModel
.
add
(
temph1
);
colModel
.
add
(
temph1
);
...
...
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
View file @
5fd6675c
...
@@ -1156,6 +1156,7 @@
...
@@ -1156,6 +1156,7 @@
( ifnull( sum( p_plan_task.`point_num` ), 0 ) - ifnull( sum( p_plan_task.`finish_num` ), 0 ) ) AS `wxj`
( ifnull( sum( p_plan_task.`point_num` ), 0 ) - ifnull( sum( p_plan_task.`finish_num` ), 0 ) ) AS `wxj`
from p_plan_task left join p_plan
from p_plan_task left join p_plan
on p_plan_task.plan_id=p_plan.id
on p_plan_task.plan_id=p_plan.id
LEFT JOIN p_route on p_route.id= p_plan.route_id
<where>
<where>
<choose>
<choose>
<when
test=
"timeType == 'dt'"
>
<when
test=
"timeType == 'dt'"
>
...
@@ -1174,7 +1175,7 @@
...
@@ -1174,7 +1175,7 @@
</choose>
</choose>
<if
test=
"name != null and name!=''"
>
<if
test=
"name != null and name!=''"
>
and p_
plan
.`name` like CONCAT( '%',#{name}, '%')
and p_
route
.`name` like CONCAT( '%',#{name}, '%')
</if>
</if>
</where>
</where>
</select>
</select>
...
@@ -1187,7 +1188,8 @@
...
@@ -1187,7 +1188,8 @@
on p_plan_task.plan_id=p_plan.id
on p_plan_task.plan_id=p_plan.id
LEFT JOIN p_plan_task_detail
LEFT JOIN p_plan_task_detail
ON p_plan_task_detail.task_no=p_plan_task.id
ON p_plan_task_detail.task_no=p_plan_task.id
<where>
LEFT JOIN p_route on p_route.id= p_plan.route_id
<where>
<choose>
<choose>
<when
test=
"timeType == 'dt'"
>
<when
test=
"timeType == 'dt'"
>
and DATE(p_plan_task.begin_time) = DATE(curdate())
and DATE(p_plan_task.begin_time) = DATE(curdate())
...
@@ -1204,7 +1206,7 @@
...
@@ -1204,7 +1206,7 @@
</choose>
</choose>
<if
test=
"name != null and name!=''"
>
<if
test=
"name != null and name!=''"
>
and p_
plan
.`name` like CONCAT('%',#{name}, '%')
and p_
route
.`name` like CONCAT('%',#{name}, '%')
</if>
</if>
</where>
</where>
</select>
</select>
...
@@ -1212,10 +1214,11 @@
...
@@ -1212,10 +1214,11 @@
<select
id=
"getLinetype"
resultType=
"java.util.Map"
>
<select
id=
"getLinetype"
resultType=
"java.util.Map"
>
select
select
distinct SUBSTRING_INDEX(p_
plan.name,'-',-1) as `name_measure` from p_plan
distinct SUBSTRING_INDEX(p_
route.name,'-',-1) as `name_measure` from p_route
<where>
<where>
p_route.is_delete=0
<if
test=
"name != null and name!=''"
>
<if
test=
"name != null and name!=''"
>
p_plan
.`name` like CONCAT('%',#{name}, '%')
and p_route
.`name` like CONCAT('%',#{name}, '%')
</if>
</if>
</where>
</where>
limit #{offset},#{pageSize}
limit #{offset},#{pageSize}
...
@@ -1223,10 +1226,10 @@
...
@@ -1223,10 +1226,10 @@
<select
id=
"getLinetypecount"
resultType=
"long"
>
<select
id=
"getLinetypecount"
resultType=
"long"
>
select
select
COUNT(1) AS num from p_
plan
COUNT(1) AS num from p_
route
<where>
<where>
<if
test=
"name != null and name!=''"
>
<if
test=
"name != null and name!=''"
>
p_
plan
.`name` like CONCAT('%',#{name}, '%')
p_
route
.`name` like CONCAT('%',#{name}, '%')
</if>
</if>
</where>
</where>
</select>
</select>
...
@@ -1250,11 +1253,12 @@
...
@@ -1250,11 +1253,12 @@
RIGHT JOIN p_plan_task_detail pptd ON ppt.ID = pptd.TASK_NO
RIGHT JOIN p_plan_task_detail pptd ON ppt.ID = pptd.TASK_NO
LEFT JOIN p_plan pp ON ppt.plan_id = pp.id
LEFT JOIN p_plan pp ON ppt.plan_id = pp.id
LEFT JOIN p_point ppo ON ppo.id = pptd.point_id
LEFT JOIN p_point ppo ON ppo.id = pptd.point_id
LEFT JOIN p_route on p_route.id= pp.route_id
<where>
<where>
pptd.`status` = 2
pptd.`status` = 2
<if
test=
"name != null and name !=''"
>
<if
test=
"name != null and name !=''"
>
and p
p
.`name` like CONCAT('%',#{name}, '%')
and p
_route
.`name` like CONCAT('%',#{name}, '%')
</if>
</if>
<choose>
<choose>
<when
test=
"timeType == 'dt'"
>
<when
test=
"timeType == 'dt'"
>
...
@@ -1295,10 +1299,12 @@
...
@@ -1295,10 +1299,12 @@
RIGHT JOIN p_plan_task_detail pptd ON ppt.ID = pptd.TASK_NO
RIGHT JOIN p_plan_task_detail pptd ON ppt.ID = pptd.TASK_NO
LEFT JOIN p_plan pp ON ppt.plan_id = pp.id
LEFT JOIN p_plan pp ON ppt.plan_id = pp.id
LEFT JOIN p_point ppo ON ppo.id = pptd.point_id
LEFT JOIN p_point ppo ON ppo.id = pptd.point_id
<where>
LEFT JOIN p_route on p_route.id= pp.route_id
<where>
pptd.`status` = 2
pptd.`status` = 2
<if
test=
"name != null and name !=''"
>
<if
test=
"name != null and name !=''"
>
and p
p
.`name` like CONCAT('%',#{name}, '%')
and p
_route
.`name` like CONCAT('%',#{name}, '%')
</if>
</if>
<choose>
<choose>
<when
test=
"timeType == 'dt'"
>
<when
test=
"timeType == 'dt'"
>
...
@@ -1359,7 +1365,7 @@
...
@@ -1359,7 +1365,7 @@
</choose>
</choose>
<if
test=
"name != null and name !=''"
>
<if
test=
"name != null and name !=''"
>
and p
p
.`name` like CONCAT('%',#{name}, '%')
and p
r
.`name` like CONCAT('%',#{name}, '%')
</if>
</if>
</where>
</where>
GROUP BY
GROUP BY
...
@@ -1376,7 +1382,7 @@
...
@@ -1376,7 +1382,7 @@
(
(
SELECT
SELECT
ppo.point_no pointNum_measure,
ppo.point_no pointNum_measure,
p
po.route_
name routeName_measure,
p
r.
name routeName_measure,
ppo.`name` name_measure,
ppo.`name` name_measure,
ppo.biz_org_name bizOrgName_measure,
ppo.biz_org_name bizOrgName_measure,
pr.boss_name AS actor_measure,
pr.boss_name AS actor_measure,
...
@@ -1406,7 +1412,7 @@
...
@@ -1406,7 +1412,7 @@
</choose>
</choose>
<if
test=
"name != null and name !=''"
>
<if
test=
"name != null and name !=''"
>
and p
p
.`name` like CONCAT('%',#{name}, '%')
and p
r
.`name` like CONCAT('%',#{name}, '%')
</if>
</if>
</where>
</where>
GROUP BY
GROUP BY
...
...
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