20250225 更新
This commit is contained in:
@@ -7,9 +7,10 @@
|
||||
<resultMap id="BaseResultMap" type="digital.laboratory.platform.entrustment.entity.EntrustMaterialCheckoutResult">
|
||||
<id property="id" column="entrust_material_id" jdbcType="VARCHAR"/>
|
||||
<result property="entrustId" column="entrust_id" jdbcType="VARCHAR"/>
|
||||
<result property="qualitativeResult" column="qualitative_result" jdbcType="VARCHAR" typeHandler="com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler"/>
|
||||
<result property="qualitativeResult" column="qualitative_result"/>
|
||||
<result property="quantitativeResult" column="quantitative_result" jdbcType="VARCHAR"/>
|
||||
<result property="otherResult" column="other_result" jdbcType="VARCHAR"/>
|
||||
<result property="checkoutRemark" column="checkout_remark" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
||||
<result property="createBy" column="create_by" jdbcType="VARCHAR"/>
|
||||
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
|
||||
@@ -18,6 +19,7 @@
|
||||
|
||||
<resultMap id="EntrustMaterialCheckoutResultVO" type="digital.laboratory.platform.entrustment.vo.EntrustMaterialCheckoutResultVO" extends="BaseResultMap">
|
||||
<result property="name" column ="name"/>
|
||||
<result property="acceptNo" column ="accept_no"/>
|
||||
<result property="orderNo" column ="order_no"/>
|
||||
</resultMap>
|
||||
|
||||
@@ -35,9 +37,14 @@
|
||||
|
||||
<sql id="getEntrustMaterialCheckoutResultVO">
|
||||
SELECT
|
||||
<include refid="Base_Column_List"/>,
|
||||
emr.entrust_material_id,
|
||||
emr.entrust_id,
|
||||
emr.qualitative_result,
|
||||
emr.quantitative_result,
|
||||
emr.other_result,
|
||||
em.name,
|
||||
em.entrustment_id,
|
||||
em.accept_no,
|
||||
em.order_no
|
||||
FROM b_entrust_material_checkout_result emr
|
||||
LEFT JOIN b_entrustment_identification_material em
|
||||
|
||||
@@ -121,6 +121,7 @@
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="returnOrNot" column="return_or_not"/>
|
||||
<result property="returnOrNot" column="material_image_flag"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="entrustmentVO" type="digital.laboratory.platform.entrustment.vo.EntrustmentVO" extends="entrustmentMap">
|
||||
@@ -274,7 +275,8 @@
|
||||
e.entrust_requirement,
|
||||
e.post_address,
|
||||
e.return_or_not,
|
||||
e.is_trans
|
||||
e.is_trans,
|
||||
e.material_image_flag
|
||||
</sql>
|
||||
|
||||
<sql id="getEntrustmentVOSQL">
|
||||
@@ -363,7 +365,7 @@
|
||||
where i.id = e.identification_id
|
||||
) as identification_no,
|
||||
(
|
||||
SELECT COUNT(*) FROM b_entrust_material_checkout_result emr WHERE emr.entrust_id = e.id
|
||||
SELECT COUNT(*) FROM b_entrust_material_checkout_result emr WHERE emr.entrust_id = e.id AND qualitative_result != '' AND qualitative_result IS NOT NULL
|
||||
) AS checkout_result_count
|
||||
|
||||
FROM b_entrustment e
|
||||
|
||||
Reference in New Issue
Block a user