45 lines
1.5 KiB
XML
45 lines
1.5 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!DOCTYPE mapper
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.openhis.medication.mapper.MedicationMapper">
|
|
|
|
<select id="selectDetailList" resultType="com.openhis.medication.domain.MedicationDetail">
|
|
SELECT T1.id,
|
|
T1.medication_product_id,
|
|
T1.status_enum,
|
|
T1.org_id,
|
|
T1.dose_form_code,
|
|
T1.total_volume,
|
|
T1.ingredient_item,
|
|
T1.active_flag,
|
|
T1.lot_number,
|
|
T1.effective_date,
|
|
T1.expiration_date,
|
|
T1.effective_date,
|
|
T1.method_code,
|
|
T1.rate_code,
|
|
T1.dose,
|
|
T1.dose_unit_code,
|
|
T1.max_unit,
|
|
T1.definition,
|
|
T2.code,
|
|
T2.name,
|
|
T2.domain_enum,
|
|
T2.name_en,
|
|
T2.py_code,
|
|
T2.wb_code,
|
|
T2.category_code,
|
|
T2.merchandise_name,
|
|
T2.merchandise_py_code,
|
|
T2.merchandise_wb_code,
|
|
T2.unit_code,
|
|
T2.min_unit_code,
|
|
T2.part_percent,
|
|
T2.dose_from
|
|
FROM med_medication AS T1
|
|
LEFT JOIN med_medication_definition AS T2
|
|
ON T1.medication_product_id = T2.id
|
|
WHERE T1.delete_flag = 0
|
|
</select>
|
|
</mapper> |