4.25
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<mapper namespace="digital.laboratory.platform.reagent.mapper.DeliveryRegistrationFormMapper">
|
||||
|
||||
<resultMap id="deliveryRegistrationFormMap" type="digital.laboratory.platform.reagent.entity.DeliveryRegistrationForm">
|
||||
<id property="deliveryRegistrationFormId" column="delivery_registration_form_id"/>
|
||||
<id property="id" column="id"/>
|
||||
<result property="dateOfDelivery" column="date_of_delivery"/>
|
||||
<result property="depositorId" column="depositor_id"/>
|
||||
<result property="outgoingApplicantId" column="outgoing_applicant_id"/>
|
||||
@@ -13,6 +13,29 @@
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
|
||||
<result property="status" column="status"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="deliveryRegistrationFormVO" type="digital.laboratory.platform.reagent.vo.DeliveryRegistrationFormVO" extends="deliveryRegistrationFormMap">
|
||||
<result property="depositorName" column="depositor_name"></result>
|
||||
<result property="outgoingApplicantName" column="outgoing_applicant_name"></result>
|
||||
</resultMap>
|
||||
|
||||
<select id="getDeliveryRegistrationFormVOPage" resultMap="deliveryRegistrationFormVO" resultType="digital.laboratory.platform.reagent.vo.DeliveryRegistrationFormVO">
|
||||
SELECT drf.*,
|
||||
(select user.name from dlp_base.sys_user user where user.user_id=drf.depositor_id ) as depositor_name,
|
||||
(select user.name from dlp_base.sys_user user where user.user_id=drf.outgoing_applicant_id ) as outgoing_applicant_name
|
||||
FROM delivery_registration_form drf
|
||||
WHERE drf.status = 0
|
||||
</select>
|
||||
|
||||
<select id="getDeliveryRegistrationFormVOById" resultMap="deliveryRegistrationFormVO" resultType="digital.laboratory.platform.reagent.vo.DeliveryRegistrationFormVO">
|
||||
SELECT drf.*,
|
||||
(select user.name from dlp_base.sys_user user where user.user_id=drf.depositor_id ) as depositor_name,
|
||||
(select user.name from dlp_base.sys_user user where user.user_id=drf.outgoing_applicant_id ) as outgoing_applicant_name
|
||||
FROM delivery_registration_form drf
|
||||
WHERE drf.id = #{deliveryRegistrationFormId}
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user