|
|
@@ -84,8 +84,9 @@
|
|
|
<select id="pageQuery" resultMap="queryResult" parameterType="com.nb.bus.service.dto.ClinicQuery">
|
|
|
select
|
|
|
p.id as patient_id,
|
|
|
- p.code as patient_code,
|
|
|
+-- p.code as patient_code,
|
|
|
c.id as clinic_id,
|
|
|
+ if(c.monitor_type=1,p.code,c.patient_code) as patient_code,
|
|
|
-- c.patient_code as patient_code,
|
|
|
c.patient_name as patient_name,
|
|
|
c.ward as ward,
|
|
|
@@ -128,7 +129,7 @@
|
|
|
</if>
|
|
|
</where>
|
|
|
) as c
|
|
|
- join (select * from bus_patient
|
|
|
+ left join (select * from bus_patient
|
|
|
<where>
|
|
|
<if test="query.patientCode!=null">
|
|
|
and code like concat('%',#{query.patientCode},'%')
|