-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DSM] PEPPER-853 sm id fix #2636
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
af54a7b
PEPPER-853 added a check for the number of scrolls and uss to not be …
pegahtah ae8bc14
Merge branch 'develop' into PEPPER-853_zeroSmIdFix
pegahtah 45efeed
Merge branch 'develop' into PEPPER-853_zeroSmIdFix
pegahtah d8dbc9e
I simplified the query to first check the numbers entered
pegahtah 1153ed8
Merge remote-tracking branch 'origin/develop' into PEPPER-853_zeroSmI…
pegahtah 28de7a8
PEPPER-853 changes to consider NULL as 0 too
pegahtah d2147dd
Merge branch 'develop' into PEPPER-853_zeroSmIdFix
pegahtah File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ public class MercurySampleDao implements Dao<MercurySampleDto> { | |
+ "LEFT JOIN ddp_onc_history_detail oD on (mr.medical_record_id = oD.medical_record_id AND NOT oD.deleted <=> 1) " | ||
+ "LEFT JOIN ddp_tissue t on (oD.onc_history_detail_id = t.onc_history_detail_id AND NOT t.deleted <=> 1) " | ||
+ "WHERE oD.tissue_received IS NOT NULL AND p.ddp_participant_id = ? AND ddp.instance_name = ? " | ||
+ "AND (IFNULL(t.uss_count, 0) <> 0 OR IFNULL(t.scrolls_count, 0) <> 0) " | ||
+ "AND IFNULL(t.uss_count, 0) = (SELECT count(*) from sm_id sm " | ||
+ "left join sm_id_type smtype on (sm.sm_id_type_id = smtype.sm_id_type_id) " | ||
+ "where smtype.sm_id_type = \"uss\" and sm.tissue_id = t.tissue_id and NOT sm.deleted <=> 1 " | ||
|
@@ -40,7 +41,7 @@ public class MercurySampleDao implements Dao<MercurySampleDto> { | |
+ "From ddp_mercury_sequencing where ddp_participant_id = ? group by (tissue_id) ) as table2 " | ||
+ "on table2.seqt = table1.tissue_id " | ||
+ "LEFT JOIN (select order_id, mercury_sequencing_id, order_status, order_date, mercury_pdo_id " | ||
+ "FROM ddp_mercury_sequencing WHERE ddp_participant_id = ?) as table3 ON(table3.mercury_sequencing_id = table2.ms_id)"; | ||
+ "FROM ddp_mercury_sequencing WHERE ddp_participant_id = ?) as table3 ON(table3.mercury_sequencing_id = table2.ms_id) "; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this change intentional? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I like to have an extra space at the end in case we need to concat the query with some other condition |
||
|
||
|
||
public static String SQL_GET_ELIGIBLE_SAMPLES = | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just avoiding the ones that are both 0 or both null should do the trick.