|
|
@@ -223,8 +223,8 @@
|
|
|
i.remark as remark,
|
|
|
i.type as device_type,
|
|
|
i.last_upload_time as last_upload_time,
|
|
|
- d.alias as device_alias,
|
|
|
- d.product_no as product_no ,
|
|
|
+ <!--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,
|
|
|
@@ -322,15 +322,15 @@
|
|
|
</choose>
|
|
|
</where>
|
|
|
) as i on p.infusion_id=i.id
|
|
|
- left join
|
|
|
- (select device_id,alias,product_no
|
|
|
- from bus_device
|
|
|
- <where>
|
|
|
- <if test="query.tenantId!=null">
|
|
|
- and tenant_id=#{query.tenantId}
|
|
|
- </if>
|
|
|
- </where>
|
|
|
- ) as d on d.device_id=i.device_id
|
|
|
+ <!--left join-->
|
|
|
+ <!--(select device_id,alias,product_no-->
|
|
|
+ <!--from bus_device-->
|
|
|
+ <!--<where>-->
|
|
|
+ <!--<if test="query.tenantId!=null">-->
|
|
|
+ <!--and tenant_id=#{query.tenantId}-->
|
|
|
+ <!--</if>-->
|
|
|
+ <!--</where>-->
|
|
|
+ <!--) as d on d.device_id=i.device_id-->
|
|
|
join (select * from bus_clinic
|
|
|
<where>
|
|
|
finished=0
|
|
|
@@ -351,38 +351,38 @@
|
|
|
</if>
|
|
|
</where>
|
|
|
) c on p.clinic_id=c.id
|
|
|
- <if test="query.bedNo!=null || query.name!=null || query.code!=null || query.anaDoctor!=null || query.surgeName!=null ||query.gender!=null ||query.anaType!=null || query.deviceId != null || query.productNo!=null">
|
|
|
- <where>
|
|
|
- (1=0
|
|
|
- <if test="query.bedNo!=null">
|
|
|
- or c.bed_no LIKE concat('%', #{query.bedNo}, '%')
|
|
|
- </if>
|
|
|
- <if test="query.name!=null">
|
|
|
- or c.`patient_name` LIKE concat('%', #{query.name}, '%')
|
|
|
- </if>
|
|
|
- <if test="query.code!=null">
|
|
|
- or p.`code` LIKE concat('%', #{query.code}, '%')
|
|
|
- </if>
|
|
|
- <if test="query.anaDoctor!=null">
|
|
|
- or c.`ana_doctor` like concat('%', #{query.anaDoctor}, '%')
|
|
|
- </if>
|
|
|
- <if test="query.surgeName!=null">
|
|
|
- or c.`surgery_name` like concat('%',#{query.surgeName}, '%')
|
|
|
- </if>
|
|
|
- <if test="query.gender!=null">
|
|
|
- or c.patient_gender LIKE concat('%', #{query.gender}, '%')
|
|
|
- </if>
|
|
|
- <if test="query.anaType!=null">
|
|
|
- or c.ana_type LIKE concat('%', #{query.anaType}, '%')
|
|
|
- </if>)
|
|
|
- <if test="query.deviceId!=null">
|
|
|
- or i.device_id like concat('%', #{query.deviceId}, '%')
|
|
|
- </if>
|
|
|
- <if test="query.deviceAlias!=null">
|
|
|
- or d.alias like concat('%', #{query.deviceAlias}, '%')
|
|
|
- </if>
|
|
|
- </where>
|
|
|
- </if>
|
|
|
+ <!--<if test="query.bedNo!=null || query.name!=null || query.code!=null || query.anaDoctor!=null || query.surgeName!=null ||query.gender!=null ||query.anaType!=null || query.deviceId != null || query.productNo!=null">-->
|
|
|
+ <!--<where>-->
|
|
|
+ <!--(1=0-->
|
|
|
+ <!--<if test="query.bedNo!=null">-->
|
|
|
+ <!--or c.bed_no LIKE concat('%', #{query.bedNo}, '%')-->
|
|
|
+ <!--</if>-->
|
|
|
+ <!--<if test="query.name!=null">-->
|
|
|
+ <!--or c.`patient_name` LIKE concat('%', #{query.name}, '%')-->
|
|
|
+ <!--</if>-->
|
|
|
+ <!--<if test="query.code!=null">-->
|
|
|
+ <!--or p.`code` LIKE concat('%', #{query.code}, '%')-->
|
|
|
+ <!--</if>-->
|
|
|
+ <!--<if test="query.anaDoctor!=null">-->
|
|
|
+ <!--or c.`ana_doctor` like concat('%', #{query.anaDoctor}, '%')-->
|
|
|
+ <!--</if>-->
|
|
|
+ <!--<if test="query.surgeName!=null">-->
|
|
|
+ <!--or c.`surgery_name` like concat('%',#{query.surgeName}, '%')-->
|
|
|
+ <!--</if>-->
|
|
|
+ <!--<if test="query.gender!=null">-->
|
|
|
+ <!--or c.patient_gender LIKE concat('%', #{query.gender}, '%')-->
|
|
|
+ <!--</if>-->
|
|
|
+ <!--<if test="query.anaType!=null">-->
|
|
|
+ <!--or c.ana_type LIKE concat('%', #{query.anaType}, '%')-->
|
|
|
+ <!--</if>)-->
|
|
|
+ <!--<!–<if test="query.deviceId!=null">–>-->
|
|
|
+ <!--<!–or i.device_id like concat('%', #{query.deviceId}, '%')–>-->
|
|
|
+ <!--<!–</if>–>-->
|
|
|
+ <!--<!–<if test="query.deviceAlias!=null">–>-->
|
|
|
+ <!--<!–or d.alias like concat('%', #{query.deviceAlias}, '%')–>-->
|
|
|
+ <!--<!–</if>–>-->
|
|
|
+ <!--</where>-->
|
|
|
+ <!--</if>-->
|
|
|
order by c.monitor_start_time desc
|
|
|
</select>
|
|
|
|