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
255839a8
Commit
255839a8
authored
May 05, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
aefdbab3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
dbTemplate_plan_task.xml
...rol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
+9
-6
No files found.
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
View file @
255839a8
...
@@ -1165,10 +1165,12 @@
...
@@ -1165,10 +1165,12 @@
LEFT JOIN p_route pr ON pr.id = ppk.route_id
LEFT JOIN p_route pr ON pr.id = ppk.route_id
<where>
<where>
<if
test=
"param.userId != null "
>
find_in_set(#{param.userId}, ppk.user_id)
</if>
<if
test=
"param.userId != null "
>
find_in_set(#{param.userId}, ppk.user_id)
</if>
<if
test=
"param.beginTime != null and param.beginTime != '' "
>
and ppk.begin_time
<![CDATA[>=]]>
#{param.beginTime}
</if>
<if
test=
"param.beginDate != null and param.beginDate != '' "
>
ppk.begin_time
<![CDATA[>=]]>
#{param.beginDate}
</if>
<if
test=
"param.endTime != null and param.endTime != ''"
>
and ppk.end_time
<![CDATA[<=]]>
#{param.endTime}
</if>
<if
test=
"param.endDate != null and param.endDate != ''"
>
and ppk.end_time
<![CDATA[<=]]>
#{param.endDate}
</if>
<if
test=
"param.taskName != null"
>
and pp.name like concat(concat("%", #{param.taskName}), "%")
</if>
<if
test=
"param.taskName != null and param.taskName != ''"
>
and pp.name like concat('%',#{param.taskName},'%')
</if>
<if
test=
"param.routeId!=null"
>
and ppk.route_id = #{param.routeId}
</if>
<if
test=
"param.status != null"
>
and pptd.STATUS = #{param.status}
</if>
<if
test=
"param.routeId != null"
>
and ppk.route_id = #{param.routeId}
</if>
<if
test=
"param.bizOrgCode != null"
>
and pp.biz_org_code like concat('%',#{param.bizOrgCode},'%')
</if>
</where>
</where>
ORDER BY
ORDER BY
ppk.begin_time DESC
ppk.begin_time DESC
...
@@ -1198,12 +1200,13 @@
...
@@ -1198,12 +1200,13 @@
<if
test=
"param.taskName != null and param.taskName != ''"
>
and pp.name like concat('%',#{param.taskName},'%')
</if>
<if
test=
"param.taskName != null and param.taskName != ''"
>
and pp.name like concat('%',#{param.taskName},'%')
</if>
<if
test=
"param.status != null"
>
and pptd.STATUS = #{param.status}
</if>
<if
test=
"param.status != null"
>
and pptd.STATUS = #{param.status}
</if>
<if
test=
"param.routeId != null"
>
and ppk.route_id = #{param.routeId}
</if>
<if
test=
"param.routeId != null"
>
and ppk.route_id = #{param.routeId}
</if>
<if
test=
"param.bizOrgCode != null"
>
and pp.biz_org_code like concat('%',#{param.bizOrgCode},'%')
</if>
</where>
</where>
ORDER BY
ORDER BY
ppk.begin_time DESC
ppk.begin_time DESC
<choose>
<choose>
<when
test=
"param.pageSize==-1"
></when>
<when
test=
"param.pageSize==-1"
></when>
<when
test=
"param.pageSize!=-1"
>
limit #{param.
offset
}, #{param.pageSize}
</when>
<when
test=
"param.pageSize!=-1"
>
limit #{param.
pageNumber
}, #{param.pageSize}
</when>
</choose>
</choose>
</select>
</select>
...
@@ -1215,7 +1218,7 @@
...
@@ -1215,7 +1218,7 @@
pp.biz_org_name AS stationName,
pp.biz_org_name AS stationName,
ppk.begin_time AS beginTime,
ppk.begin_time AS beginTime,
ppk.end_time AS endTime,
ppk.end_time AS endTime,
SEC_TO_TIME
(UNIX_TIMESTAMP(ppk.end_time) - UNIX_TIMESTAMP(ppk.begin_time)) AS difSecond,
(UNIX_TIMESTAMP(ppk.end_time) - UNIX_TIMESTAMP(ppk.begin_time)) AS difSecond,
( CASE pptd.is_finish WHEN 0 THEN '未完成' WHEN 1 THEN '已完成' WHEN 2 THEN '超时漏检' END ) AS taskStatus
( CASE pptd.is_finish WHEN 0 THEN '未完成' WHEN 1 THEN '已完成' WHEN 2 THEN '超时漏检' END ) AS taskStatus
FROM
FROM
`p_plan_task` ppk
`p_plan_task` ppk
...
...
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