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.
42 lines
2.1 KiB
42 lines
2.1 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.DecentralizeDetailsMapper">
|
||
|
|
||
|
<resultMap id="decentralizeDetailsMap" type="digital.laboratory.platform.reagent.entity.DecentralizeDetails">
|
||
|
<id property="decentralizeDetailsId" column="decentralize_details_id"/>
|
||
|
<result property="brand" column="brand"/>
|
||
|
<result property="category" column="category"/>
|
||
|
<result property="decentralizedRequestId" column="decentralized_request_id"/>
|
||
|
<result property="deviationOrUncertainty" column="deviation_or_uncertainty"/>
|
||
|
<result property="packagedCopies" column="packaged_copies"/>
|
||
|
<result property="quantity" column="quantity"/>
|
||
|
<result property="reagentConsumableId" column="reagent_consumable_id"/>
|
||
|
<result property="species" column="species"/>
|
||
|
<result property="specificationAndModel" column="specification_and_model"/>
|
||
|
<result property="standardValueOrPurity" column="standard_value_or_purity"/>
|
||
|
<result property="technicalParameter" column="technical_parameter"/>
|
||
|
<result property="unitPrice" column="unit_price"/>
|
||
|
<result property="purpose" column="purpose"/>
|
||
|
</resultMap>
|
||
|
|
||
|
<resultMap id="decentralizeDetailsVO" type="digital.laboratory.platform.reagent.vo.DecentralizeDetailsVO"
|
||
|
extends="decentralizeDetailsMap">
|
||
|
<result property="reagentConsumableName" column="reagent_consumable_name"/>
|
||
|
|
||
|
</resultMap>
|
||
|
|
||
|
<!--通过条件查询分散采购明细列表-->
|
||
|
<select id="getDecentralizeDetailsVOList" resultMap="decentralizeDetailsVO"
|
||
|
resultType="digital.laboratory.platform.reagent.vo.DecentralizeDetailsVO">
|
||
|
SELECT dd.*,
|
||
|
(select rc.name
|
||
|
from reagent_consumables rc
|
||
|
where rc.reagent_consumable_id = dd.reagent_consumable_id) As reagent_consumable_name
|
||
|
FROM decentralize_details dd
|
||
|
WHERE dd.decentralized_request_id = #{decentralizedRequestId}
|
||
|
</select>
|
||
|
</mapper>
|
||
|
|