|
|
@@ -45,6 +45,7 @@
|
|
|
<result column="append_lock_time" property="appendLockTime"/>
|
|
|
<result column="max_dose" property="maxDose"/>
|
|
|
<result column="last_upload_time" property="lastUploadTime"/>
|
|
|
+ <result column="product_no" property="productNo"/>
|
|
|
<!--<result column="self_control_count" property="selfControlCount"/>-->
|
|
|
<result column="self_control_lock_time" property="selfControlLockTime"/>
|
|
|
<result column="pca_valid_count" property="pcaValidCount"/>
|
|
|
@@ -210,6 +211,7 @@
|
|
|
i.type as device_type,
|
|
|
i.last_upload_time as last_upload_time,
|
|
|
d.alias as device_alias,
|
|
|
+ d.product_no as product_no ,
|
|
|
c.patient_gender as patient_gender,
|
|
|
c.`patient_name` as patient_name,
|
|
|
c.finished as finished,
|
|
|
@@ -308,12 +310,15 @@
|
|
|
</where>
|
|
|
) as i on p.infusion_id=i.id
|
|
|
left join
|
|
|
- (select device_id,alias
|
|
|
+ (select device_id,alias,product_no
|
|
|
from bus_device
|
|
|
<where>
|
|
|
<if test="query.tenantId!=null">
|
|
|
and tenant_id=#{query.tenantId}
|
|
|
</if>
|
|
|
+ <if test="query.productNo!=null">
|
|
|
+ or product_no LIKE concat('%', #{query.productNo}, '%')
|
|
|
+ </if>
|
|
|
</where>
|
|
|
) as d on d.device_id=i.device_id
|
|
|
join (select * from bus_clinic
|