|
@@ -31,7 +31,27 @@
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<select id="stdSelectWxAppletClinicList" resultMap="stdWxAppletResult">
|
|
<select id="stdSelectWxAppletClinicList" resultMap="stdWxAppletResult">
|
|
|
-
|
|
|
|
|
|
|
+ select
|
|
|
|
|
+ bcr.id as id,
|
|
|
|
|
+ bcr.patient_name as patient_name,
|
|
|
|
|
+ bcr.patient_age as patient_age,
|
|
|
|
|
+ bcr.patient_gender as patient_gender,
|
|
|
|
|
+ bcr.patient_code as patient_code,
|
|
|
|
|
+ bcr.clinic_start_time as clinic_start_time,
|
|
|
|
|
+ bcr.dept_id as dept_id,
|
|
|
|
|
+ bcr.dept_name as dept_name,
|
|
|
|
|
+ bcr.clinic_name as clinic_name,
|
|
|
|
|
+ bcr.clinic_status as clinic_status,
|
|
|
|
|
+ bcrwu.care as care
|
|
|
|
|
+ from
|
|
|
|
|
+ biz_clinic_room as bcr
|
|
|
|
|
+ join biz_clinic_room_wx_user as bcrwu on bcrwu.clinic_room_id=bcr.id
|
|
|
|
|
+ <where>
|
|
|
|
|
+ and bcrwu.wx_user_id = #{query.userId}
|
|
|
|
|
+ <if test="query.patientCode != null and query.patientCode != ''">
|
|
|
|
|
+ bcr.patient_code like concat('',#{query.patientCode},'')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </where>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|