贵阳试剂耗材
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/src/main/resources/mapper/WarehousingContentMapper.xml

48 lines
2.8 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.WarehousingContentMapper">
<resultMap id="warehousingContentMap" type="digital.laboratory.platform.reagent.entity.WarehousingContent">
2 years ago
<id property="id" column="id"></id>
2 years ago
<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"/>
2 years ago
<result property="supplierId" column="supplier_id"/>
2 years ago
<result property="reagentConsumableName" column="reagent_consumable_name"/>
<result property="evaluationFormId" column="evaluation_form_id"/>
<result property="purchaseListDetailsId" column="purchase_list_details_id"/>
2 years ago
2 years ago
</resultMap>
<resultMap id="warehousingContentVO" type="digital.laboratory.platform.reagent.vo.WarehousingContentVO" extends="warehousingContentMap">
2 years ago
<result property="supplierName" column="supplier_name"/>
<result property="applicantName" column="applicant_name"/>
2 years ago
</resultMap>
<select id="getWarehousingContentVOList" resultMap="warehousingContentVO" resultType="digital.laboratory.platform.reagent.vo.WarehousingContentVO">
SELECT wc.*,
2 years ago
(select si.supplier_name from supplier_information si where si.id = wc.supplier_id) as supplier_name ,
2 years ago
(select user.name from dlp_base.sys_user user where user.user_id=wc.create_by ) as applicant_name
2 years ago
FROM warehousing_content wc
WHERE wc.warehousing_record_form_id = #{warehousingRecordFormId}
</select>
2 years ago
<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.create_by ) as applicant_name
FROM warehousing_content wc
WHERE wc.warehousing_quantity = wc.total_quantity
2 years ago
${ew.customSqlSegment}
</select>
2 years ago
</mapper>