|
|
|
@ -50,11 +50,36 @@ |
|
|
|
|
from reagent_consumable_inventory ${ew.customSqlSegment} |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="getFullVOPage" |
|
|
|
|
resultType="digital.laboratory.platform.reagent.vo.ReagentConsumableInventoryFullVO"> |
|
|
|
|
SELECT bd.*, |
|
|
|
|
r1.*, |
|
|
|
|
(SELECT s1.supplier_name FROM supplier_information s1 WHERE s1.id = bd.supplier_id) as supplier_name |
|
|
|
|
FROM batch_details bd, |
|
|
|
|
reagent_consumable_inventory r1 |
|
|
|
|
WHERE bd.reagent_consumable_inventory_id = r1.reagent_consumable_inventory_id |
|
|
|
|
<if test="name != null"> |
|
|
|
|
AND r1.`reagent_consumable_name` = #{name} |
|
|
|
|
</if> |
|
|
|
|
<if test="category != null"> |
|
|
|
|
AND r1.`category` = #{category} |
|
|
|
|
</if> |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="getReagentConsumableInventoryVOPage" resultMap="reagentConsumableInventoryVO" |
|
|
|
|
resultType="digital.laboratory.platform.reagent.vo.ReagentConsumableInventoryVO"> |
|
|
|
|
select * |
|
|
|
|
from reagent_consumable_inventory |
|
|
|
|
${ew.customSqlSegment} |
|
|
|
|
from reagent_consumable_inventory ${ew.customSqlSegment} |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="getUserList" resultType="digital.laboratory.platform.reagent.vo.UserVO"> |
|
|
|
|
SELECT * |
|
|
|
|
FROM dlp_base.sys_user user |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="getOrgList" resultType="digital.laboratory.platform.reagent.vo.OrgVO"> |
|
|
|
|
SELECT * |
|
|
|
|
FROM dlp_base.sys_org org |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="getUserList" resultType="digital.laboratory.platform.reagent.vo.UserVO"> |
|
|
|
@ -77,80 +102,80 @@ |
|
|
|
|
(select rci.specification_and_model |
|
|
|
|
from reagent_consumable_inventory rci |
|
|
|
|
where rci.reagent_consumable_inventory_id = |
|
|
|
|
rmp.reagent_consumable_inventory_id) as specification_and_model, |
|
|
|
|
rmp.reagent_consumable_inventory_id) as specification_and_model, |
|
|
|
|
(select rci.`code` |
|
|
|
|
from reagent_consumable_inventory rci |
|
|
|
|
where rci.reagent_consumable_inventory_id = |
|
|
|
|
rmp.reagent_consumable_inventory_id) as `code`, |
|
|
|
|
rmp.reagent_consumable_inventory_id) as `code`, |
|
|
|
|
(select rci.category |
|
|
|
|
from reagent_consumable_inventory rci |
|
|
|
|
where rci.reagent_consumable_inventory_id = |
|
|
|
|
rmp.reagent_consumable_inventory_id) as category, |
|
|
|
|
rmp.reagent_consumable_inventory_id) as category, |
|
|
|
|
(select rci.brand |
|
|
|
|
from reagent_consumable_inventory rci |
|
|
|
|
where rci.reagent_consumable_inventory_id = |
|
|
|
|
rmp.reagent_consumable_inventory_id) as brand, |
|
|
|
|
rmp.reagent_consumable_inventory_id) as brand, |
|
|
|
|
(select rci.deviation_or_uncertainty |
|
|
|
|
from reagent_consumable_inventory rci |
|
|
|
|
where rci.reagent_consumable_inventory_id = |
|
|
|
|
rmp.reagent_consumable_inventory_id) as deviation_or_uncertainty, |
|
|
|
|
rmp.reagent_consumable_inventory_id) as deviation_or_uncertainty, |
|
|
|
|
(select rci.instruction_book_id |
|
|
|
|
from reagent_consumable_inventory rci |
|
|
|
|
where rci.reagent_consumable_inventory_id = |
|
|
|
|
rmp.reagent_consumable_inventory_id) as instruction_book_id, |
|
|
|
|
rmp.reagent_consumable_inventory_id) as instruction_book_id, |
|
|
|
|
(select rci.species |
|
|
|
|
from reagent_consumable_inventory rci |
|
|
|
|
where rci.reagent_consumable_inventory_id = |
|
|
|
|
rmp.reagent_consumable_inventory_id) as species, |
|
|
|
|
rmp.reagent_consumable_inventory_id) as species, |
|
|
|
|
(select rci.alias |
|
|
|
|
from reagent_consumable_inventory rci |
|
|
|
|
where rci.reagent_consumable_inventory_id = |
|
|
|
|
rmp.reagent_consumable_inventory_id) as alias, |
|
|
|
|
rmp.reagent_consumable_inventory_id) as alias, |
|
|
|
|
(select rci.remark |
|
|
|
|
from reagent_consumable_inventory rci |
|
|
|
|
where rci.reagent_consumable_inventory_id = |
|
|
|
|
rmp.reagent_consumable_inventory_id) as remark, |
|
|
|
|
rmp.reagent_consumable_inventory_id) as remark, |
|
|
|
|
(select rci.configuration_concentration |
|
|
|
|
from reagent_consumable_inventory rci |
|
|
|
|
where rci.reagent_consumable_inventory_id = |
|
|
|
|
rmp.reagent_consumable_inventory_id) as configuration_concentration, |
|
|
|
|
rmp.reagent_consumable_inventory_id) as configuration_concentration, |
|
|
|
|
(select rci.storage_life |
|
|
|
|
from reagent_consumable_inventory rci |
|
|
|
|
where rci.reagent_consumable_inventory_id = |
|
|
|
|
rmp.reagent_consumable_inventory_id) as storage_life, |
|
|
|
|
rmp.reagent_consumable_inventory_id) as storage_life, |
|
|
|
|
(select rci.warning_information |
|
|
|
|
from reagent_consumable_inventory rci |
|
|
|
|
where rci.reagent_consumable_inventory_id = |
|
|
|
|
rmp.reagent_consumable_inventory_id) as warning_information, |
|
|
|
|
(select r1.`status` from reference_material r1 where r1.id = rmp.id) as reference_material_status, |
|
|
|
|
(select r1.`id` from reference_material r1 where r1.id = rmp.id) as reference_material_id, |
|
|
|
|
rmp.reagent_consumable_inventory_id) as warning_information, |
|
|
|
|
(select r1.`status` from reference_material r1 where r1.id = rmp.id) as reference_material_status, |
|
|
|
|
(select r1.`id` from reference_material r1 where r1.id = rmp.id) as reference_material_id, |
|
|
|
|
(select bd.batch |
|
|
|
|
from batch_details bd |
|
|
|
|
where bd.batch_details_id = rmp.batch_details_id) as batch, |
|
|
|
|
where bd.batch_details_id = rmp.batch_details_id) as batch, |
|
|
|
|
(select bd.fixed_result |
|
|
|
|
from batch_details bd |
|
|
|
|
where bd.batch_details_id = rmp.batch_details_id) as fixed_result, |
|
|
|
|
where bd.batch_details_id = rmp.batch_details_id) as fixed_result, |
|
|
|
|
(select bd.purchase_time |
|
|
|
|
from batch_details bd |
|
|
|
|
where bd.batch_details_id = rmp.batch_details_id) as purchase_time, |
|
|
|
|
where bd.batch_details_id = rmp.batch_details_id) as purchase_time, |
|
|
|
|
(select bd.batch_number |
|
|
|
|
from batch_details bd |
|
|
|
|
where bd.batch_details_id = rmp.batch_details_id) as batch_number, |
|
|
|
|
where bd.batch_details_id = rmp.batch_details_id) as batch_number, |
|
|
|
|
(select bd.supplier_id |
|
|
|
|
from batch_details bd |
|
|
|
|
where bd.batch_details_id = rmp.batch_details_id) as manufacturer_id, |
|
|
|
|
where bd.batch_details_id = rmp.batch_details_id) as manufacturer_id, |
|
|
|
|
(select srs.configuration_concentration |
|
|
|
|
from standard_reserve_solution srs |
|
|
|
|
where srs.reference_id = rmp.id) as configuration_concentration, |
|
|
|
|
where srs.reference_id = rmp.id) as configuration_concentration, |
|
|
|
|
(select srs.configuration_date |
|
|
|
|
from standard_reserve_solution srs |
|
|
|
|
where srs.reference_id = rmp.id) as configuration_date, |
|
|
|
|
where srs.reference_id = rmp.id) as configuration_date, |
|
|
|
|
(select srs.solution_numbering |
|
|
|
|
from standard_reserve_solution srs |
|
|
|
|
where srs.reference_id = rmp.id) as solution_numbering, |
|
|
|
|
where srs.reference_id = rmp.id) as solution_numbering, |
|
|
|
|
(select srs.validity_period |
|
|
|
|
from standard_reserve_solution srs |
|
|
|
|
where srs.reference_id = rmp.id) as validity_period |
|
|
|
|
where srs.reference_id = rmp.id) as validity_period |
|
|
|
|
FROM reference_material rmp |
|
|
|
|
${ew.customSqlSegment} |
|
|
|
|
</select> |
|
|
|
|