|
|
|
<?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.SignedBatchListMapper">
|
|
|
|
|
|
|
|
<resultMap id="signedBatchListMap" type="digital.laboratory.platform.reagent.entity.SignedBatchList">
|
|
|
|
<id property="signedBatchListId" column="signed_batch_list_id"/>
|
|
|
|
<result property="batch" column="batch"/>
|
|
|
|
<result property="batchNumber" column="batch_number"/>
|
|
|
|
<result property="dateOfProduction" column="date_of_production"/>
|
|
|
|
<result property="dateOfPurchase" column="date_of_purchase"/>
|
|
|
|
<result property="dateOfReceipt" column="date_of_receipt"/>
|
|
|
|
<result property="expirationDate" column="expiration_date"/>
|
|
|
|
<result property="quantity" column="quantity"/>
|
|
|
|
<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="reagentConsumableId" column="reagent_consumable_id"/>
|
|
|
|
<result property="signedContentId" column="signed_content_id"/>
|
|
|
|
<result property="supplierId" column="supplier_id"/>
|
|
|
|
<result property="warningValue" column="warning_value"/>
|
|
|
|
<result property="signatoryId" column="signatory_id"/>
|
|
|
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
<resultMap id="signedBatchListVO" type="digital.laboratory.platform.reagent.vo.SignedBatchListVO"
|
|
|
|
extends="signedBatchListMap">
|
|
|
|
<result property="supplierName" column="supplier_name"></result>
|
|
|
|
<result property="signatoryName" column="signatory_name"></result>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
<select id="getSignedBatchListVOList" resultMap="signedBatchListVO"
|
|
|
|
resultType="digital.laboratory.platform.reagent.vo.SignedBatchListVO">
|
|
|
|
SELECT sbl.*,
|
|
|
|
(select user.name
|
|
|
|
from dlp_base.sys_user user
|
|
|
|
where user.user_id = sbl.signatory_id)
|
|
|
|
as signatory_name,
|
|
|
|
(
|
|
|
|
select si.supplier_name
|
|
|
|
from supplier_information si
|
|
|
|
where si.supplier_information_id =sbl.supplier_id)
|
|
|
|
as supplier_name
|
|
|
|
FROM signed_batch_list sbl
|
|
|
|
WHERE sbl.signed_content_id = #{signedContentId}
|
|
|
|
</select>
|
|
|
|
</mapper>
|