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
5e600f2c
Commit
5e600f2c
authored
May 20, 2023
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改备样管理数据不显示;
parent
819af138
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
EntrustSampleBackupMapper.xml
src/main/resources/mapper/hmhj/EntrustSampleBackupMapper.xml
+5
-7
No files found.
src/main/resources/mapper/hmhj/EntrustSampleBackupMapper.xml
View file @
5e600f2c
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<sql
id=
"where"
>
<sql
id=
"where"
>
<where>
<where>
AND b.deleted = 0
AND s.deleted = 0
AND b.deleted = 0
<if
test=
"null!=vo.sampleCode"
>
<if
test=
"null!=vo.sampleCode"
>
AND s.code LIKE CONCAT('%',#{vo.sampleCode},'%')
AND s.code LIKE CONCAT('%',#{vo.sampleCode},'%')
</if>
</if>
...
@@ -53,10 +53,9 @@
...
@@ -53,10 +53,9 @@
date_part('day', CAST(b.storage_period AS TIMESTAMP) - CAST( now() AS TIMESTAMP)) "remain_days"
date_part('day', CAST(b.storage_period AS TIMESTAMP) - CAST( now() AS TIMESTAMP)) "remain_days"
FROM
FROM
entrust_sample_backup b
entrust_sample_backup b
JOIN entrust_sample s ON b.sample_id = s.ID
JOIN entrust_sample s ON b.sample_id = s.ID
and s.deleted = 0
JOIN entrust e ON s.entrust_id = e.ID
JOIN entrust e ON s.entrust_id = e.ID
AND e.deleted = 0
<include
refid=
"where"
/>
<include
refid=
"where"
/>
AND e.deleted = 0
order by date_part('day', CAST(b.storage_period AS TIMESTAMP) - CAST( now() AS TIMESTAMP)) asc,b.ctime desc
order by date_part('day', CAST(b.storage_period AS TIMESTAMP) - CAST( now() AS TIMESTAMP)) asc,b.ctime desc
</select>
</select>
...
@@ -102,10 +101,9 @@
...
@@ -102,10 +101,9 @@
(case when e.sample_handle_advise = '检测完毕退还' and s.status
>
20 then 1 else 0 end) "weights"
(case when e.sample_handle_advise = '检测完毕退还' and s.status
>
20 then 1 else 0 end) "weights"
FROM
FROM
entrust_sample_backup b
entrust_sample_backup b
JOIN entrust_sample s ON b.sample_id = s.ID
JOIN entrust_sample s ON b.sample_id = s.ID
and s.deleted = 0
JOIN entrust e ON s.entrust_id = e.ID
JOIN entrust e ON s.entrust_id = e.ID
AND e.deleted = 0
<include
refid=
"where"
/>
<include
refid=
"where"
/>
AND e.deleted = 0
order by (case when e.sample_handle_advise = '检测完毕退还' and s.status
>
20 then 1 else 0 end) desc, b.ctime desc
order by (case when e.sample_handle_advise = '检测完毕退还' and s.status
>
20 then 1 else 0 end) desc, b.ctime desc
</select>
</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