贵阳试剂耗材
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dlp-reagent-managment/target/classes/mapper/SignedBatchListMapper.xml

50 lines
2.3 KiB

2 years ago
<?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">
2 years ago
<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"/>
2 years ago
2 years ago
</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>
2 years ago
</mapper>