|
|
|
<?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="digital.laboratory.platform.reagent.mapper.WarehousingContentMapper">
|
|
|
|
|
|
|
|
<resultMap id="warehousingContentMap" type="digital.laboratory.platform.reagent.entity.WarehousingContent">
|
|
|
|
<id property="id" column="id"></id>
|
|
|
|
<result property="reagentConsumableId" column="reagent_consumable_id"></result>
|
|
|
|
<result property="totalQuantity" column="total_quantity"></result>
|
|
|
|
<result property="warehousingRecordFormId" column="warehousing_record_form_id"></result>
|
|
|
|
<result property="warehousingQuantity" column="warehousing_quantity"></result>
|
|
|
|
<result property="catalogueNumber" column="catalogue_number"></result>
|
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
|
<result property="acceptanceRecordFormId" column="acceptance_record_form_id"/>
|
|
|
|
<result property="supplierId" column="supplier_id"/>
|
|
|
|
<result property="reagentConsumableName" column="reagent_consumable_name"/>
|
|
|
|
<result property="evaluationFormId" column="evaluation_form_id"/>
|
|
|
|
<result property="purchaseListDetailsId" column="purchase_list_details_id"/>
|
|
|
|
<result property="status" column="status"/>
|
|
|
|
<result property="warningValue" column="warning_value"/>
|
|
|
|
<result property="code" column="code"/>
|
|
|
|
<result property="lastStorageLocation" column="last_storage_location"/>
|
|
|
|
<result property="latticeId" column="lattice_id"/>
|
|
|
|
<result property="boxId" column="box_id"/>
|
|
|
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
<resultMap id="warehousingContentVO" type="digital.laboratory.platform.reagent.vo.WarehousingContentVO" extends="warehousingContentMap">
|
|
|
|
<result property="supplierName" column="supplier_name"/>
|
|
|
|
<result property="applicantName" column="applicant_name"/>
|
|
|
|
<result property="brand" column="brand"/>
|
|
|
|
<result property="category" column="category"/>
|
|
|
|
<result property="specificationAndModel" column="specification_and_model"/>
|
|
|
|
<result property="standardValueOrPurity" column="standard_value_or_purity"/>
|
|
|
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
<select id="getWarehousingContentVOList" resultMap="warehousingContentVO" resultType="digital.laboratory.platform.reagent.vo.WarehousingContentVO">
|
|
|
|
SELECT wc.*,
|
|
|
|
(select si.supplier_name from supplier_information si where si.id = wc.supplier_id) as supplier_name ,
|
|
|
|
(select user.name from dlp_base.sys_user user where user.user_id=wc.update_by ) as applicant_name
|
|
|
|
FROM warehousing_content wc
|
|
|
|
WHERE wc.warehousing_record_form_id = #{warehousingRecordFormId}
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<select id="getWarehousingContentVOPage" resultMap="warehousingContentVO" resultType="digital.laboratory.platform.reagent.vo.WarehousingContentVO">
|
|
|
|
SELECT wc.*,
|
|
|
|
(select si.supplier_name from supplier_information si where si.id = wc.supplier_id) as supplier_name,
|
|
|
|
(select user.name from dlp_base.sys_user user where user.user_id=wc.update_by ) as applicant_name,
|
|
|
|
(select rc.category from reagent_consumables rc where rc.reagent_consumable_id = wc.reagent_consumable_id) AS category,
|
|
|
|
(select rc.specification_and_model from reagent_consumables rc where rc.reagent_consumable_id = wc.reagent_consumable_id) AS specification_and_model,
|
|
|
|
(select rc.brand from reagent_consumables rc where rc.reagent_consumable_id = wc.reagent_consumable_id) AS brand,
|
|
|
|
(select rc.standard_value_or_purity from reagent_consumables rc where rc.reagent_consumable_id = wc.reagent_consumable_id) AS standard_value_or_purity
|
|
|
|
FROM warehousing_content wc
|
|
|
|
${ew.customSqlSegment}
|
|
|
|
</select>
|
|
|
|
</mapper>
|