Commit c2cadec7 authored by RANNOU's avatar RANNOU 👽
Browse files

[enh] Extraction: samples count with TAG_ID and not individual count (#485)

parent 657faf06
......@@ -255,6 +255,7 @@ public class ExtractionStrategyDaoImpl<C extends ExtractionStrategyContextVO, F
// Bind some referential ids
xmlQuery.bind("strategyLabelPmfmId", String.valueOf(PmfmEnum.STRATEGY_LABEL.getId()));
xmlQuery.bind("tagIdPmfmId", String.valueOf(PmfmEnum.TAG_ID.getId()));
return xmlQuery;
}
......
......@@ -35,7 +35,7 @@
<!-- TODO: EFFORT à renommer en ??? -->
<select alias="EXPECTED_EFFORT" type="number">APP.ACQUISITION_NUMBER</select>
<select alias="REALIZED_EFFORT" type="number">count(distinct S.ID)</select>
<select alias="REALIZED_EFFORT" type="number">count(distinct SM.ID)</select>
<!--<select alias="SAMPLE_COUNT" type="number">count(distinct S.ID)</select>-->
<select alias="LANDING_COUNT" type="number">count(distinct L.ID)</select>
......@@ -61,6 +61,7 @@
)
</from>
<from join="true">LEFT OUTER JOIN SAMPLE S ON S.LANDING_FK = L.ID</from>
<from join="true">LEFT OUTER JOIN SAMPLE_MEASUREMENT SM ON SM.SAMPLE_FK = S.ID AND SM.PMFM_FK = &amp;tagIdPmfmId</from>
<groupby>
ST.PROJECT, ST.STRATEGY,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment