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
a9629ea4
Commit
a9629ea4
authored
Oct 30, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
双规小程序接口
parent
80f44a1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dbTemplate_check.xml
...-patrol/src/main/resources/db/mapper/dbTemplate_check.xml
+2
-2
No files found.
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_check.xml
View file @
a9629ea4
...
...
@@ -559,7 +559,7 @@
SUM ( CASE WHEN pt.finish_status = '3' THEN ( CASE WHEN pl.plan_type = #{type} THEN 1 ELSE 0 END) ELSE 0 END ) timeOut,
(
CASE
WHEN '2' = #{type} THEN (
(1+date_part('week',pt.begin_time) - date_part('week', pt.begin_time - ((date_part('day',pt.begin_time)))::interval)
) )
WHEN '2' = #{type} THEN (
1+( date_part( 'week', pt.begin_time )
) )
ELSE ( CASE WHEN '1' = #{type} THEN DATE_FORMAT ( pt.check_date, '%Y-%m-%d' ) ELSE ( substr( DATE_FORMAT ( pt.check_date, '%Y-%m' ) , 6)) END ) END
) stime,
pl.plan_type as type
...
...
@@ -574,7 +574,7 @@
<!-- <if test="orgCode!=null">AND org_code LIKE #{orgCode}</if>-->
<if
test=
"orgCode!=null"
>
AND pt.org_code LIKE concat(#{orgCode}::text,'%')
</if>
GROUP BY stime
order by stime
desc
order by stime
ASC
</select>
...
...
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