Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
patzn-cloud-service-hmhj
Overview
Overview
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
wangweidong
patzn-cloud-service-hmhj
Commits
19d0d56c
Commit
19d0d56c
authored
Jul 20, 2022
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除冗余代码‘
parent
46e6e190
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
5 deletions
+21
-5
StatisticsMapper.xml
src/main/resources/mapper/hmhj/StatisticsMapper.xml
+5
-5
20220720新增视图.sql
src/test/java/resources/db_sql/lims/v181/20220720新增视图.sql
+16
-0
No files found.
src/main/resources/mapper/hmhj/StatisticsMapper.xml
View file @
19d0d56c
...
@@ -855,18 +855,18 @@
...
@@ -855,18 +855,18 @@
<!--获取质保金项目数据:-->
<!--获取质保金项目数据:-->
<select
id=
"selectQualityInspectionItemQuantity"
resultType=
"com.patzn.cloud.service.hmhj.entity.Statistics"
>
<select
id=
"selectQualityInspectionItemQuantity"
resultType=
"com.patzn.cloud.service.hmhj.entity.Statistics"
>
select
select
to_char(q.
payment_
time,'yyyy-MM') "occur_date",
to_char(q.
c
time,'yyyy-MM') "occur_date",
count(1) "total",
count(1) "total",
count(case when q.status = 1 then q.id else null end) "done_num"
count(case when q.status = 1 then q.id else null end) "done_num"
from quality_management q where q.deleted = 0
from quality_management q where q.deleted = 0
<if
test=
"null != vo.timeS"
>
<if
test=
"null != vo.timeS"
>
AND q.
payment_
time >= #{vo.timeS}
AND q.
c
time >= #{vo.timeS}
</if>
</if>
<if
test=
"null != vo.timeE"
>
<if
test=
"null != vo.timeE"
>
AND q.
payment_
time
<
= #{vo.timeE}
AND q.
c
time
<
= #{vo.timeE}
</if>
</if>
group by to_char(q.
payment_
time,'yyyy-MM')
group by to_char(q.
c
time,'yyyy-MM')
order by to_char(q.
payment_
time,'yyyy-MM')
order by to_char(q.
c
time,'yyyy-MM')
</select>
</select>
<!--CNAS质量目标完成情况-->
<!--CNAS质量目标完成情况-->
...
...
src/test/java/resources/db_sql/lims/v181/20220720新增视图.sql
0 → 100644
View file @
19d0d56c
/** created by meazty on 2022/7/20 17:34 **/
/** created by meazty on 2022/7/20 17:34 **/
create
or
replace
view
v_sys_file
as
SELECT
f
.
id
,
f
.
name
,
f
.
ctime
,
f
.
status
,
f
.
effective
FROM
dblink
(
func_db_info
(
'dev_base'
::
character
varying
)::
text
,
' select
f.id,
f.name,
f.ctime,
f.status,
f.effective from sys_file f '
::
text
)
f
(
id
bigint
,
name
character
varying
,
ctime
timestamp
without
time
zone
,
status
integer
,
effective
integer
)
\ No newline at end of file
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