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
0c0291e2
Commit
0c0291e2
authored
May 29, 2023
by
lijingjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
原铝和重取匹配规则(转换编号匹配)修改;
parent
5e600f2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
EntrustSampleItemIndexMapper.xml
...in/resources/mapper/hmhj/EntrustSampleItemIndexMapper.xml
+5
-2
No files found.
src/main/resources/mapper/hmhj/EntrustSampleItemIndexMapper.xml
View file @
0c0291e2
...
...
@@ -117,12 +117,15 @@
JOIN entrust_sample_item i ON i.ID = ii.entrust_sample_item_id AND i.deleted = 0
JOIN entrust_sample s ON s.ID = i.entrust_sample_id AND s.deleted = 0
LEFT JOIN (
select es.slot_no, es.sample_grading, esi.period, esii.name ,esii.test_value,to_char(esii.ctime,'yyyy-MM-dd') "ctime" from entrust_sample_item_index esii
select
es.slot_no, es.sample_grading, esi.period, esii.name ,esii.test_value,
substr(es.code, 0,strpos(es.code,'C')) "cs_code"
from entrust_sample_item_index esii
join entrust_sample_item esi on esi.id = esii.entrust_sample_item_id and esi.deleted = 0
join entrust_sample es on es.id = esi.entrust_sample_id and es.deleted = 0
where esii.deleted = 0 and es.name = '原铝重取'
order by esii.ctime desc
) cq on cq.slot_no = s.slot_no and cq.period = i.period and cq.name = ii.name and cq.c
time = to_char(ii.ctime,'yyyy-MM-dd
')
) cq on cq.slot_no = s.slot_no and cq.period = i.period and cq.name = ii.name and cq.c
s_code = "replace"(s.code, '-', '
')
WHERE ii.deleted = 0
<if
test=
"null != entrustIds"
>
<foreach
collection=
"entrustIds"
index=
"index"
item=
"entrustId"
open=
" and s.entrust_id in ("
separator=
","
close=
")"
>
...
...
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