|
|
@@ -41,6 +41,19 @@
|
|
|
<result property="assessCount" column="assess_count"/>
|
|
|
</resultMap>
|
|
|
|
|
|
+
|
|
|
+ <resultMap id="stdThumbnailResult" type="cn.tr.module.smart.app.controller.vo.WxDoctorClinicRoomThumbnailVO">
|
|
|
+ <result property="clinicRoomId" column="clinic_room_id"/>
|
|
|
+ <result property="clinicName" column="clinic_name"/>
|
|
|
+ <result property="clinicStartTime" column="clinic_start_time"/>
|
|
|
+ <result property="deptName" column="dept_name"/>
|
|
|
+ <result property="patientCode" column="patient_code"/>
|
|
|
+ <result property="patientName" column="patient_name"/>
|
|
|
+ <result property="patientAge" column="patient_age"/>
|
|
|
+ <result property="patientGender" column="patient_gender"/>
|
|
|
+ <result property="patientAvatar" column="patient_avatar"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
<select id="stdSelectWxAppletClinicList" resultMap="stdWxAppletDetailResult">
|
|
|
select
|
|
|
bcr.id as id,
|
|
|
@@ -222,4 +235,23 @@
|
|
|
</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="selectListByPatientCode" resultMap="stdThumbnailResult">
|
|
|
+ select
|
|
|
+ bcr.id as clinic_room_id,
|
|
|
+ bcr.clinic_name as clinic_name,
|
|
|
+ bcr.clinic_start_time as clinic_start_time,
|
|
|
+ bcr.dept_name as dept_name,
|
|
|
+ bcr.patient_code as patient_code,
|
|
|
+ bcr.patient_name as patient_name,
|
|
|
+ bcr.patient_gender as patient_gender,
|
|
|
+ bcr.patient_age as patient_age,
|
|
|
+ bcr.image_url as patient_avatar
|
|
|
+ from
|
|
|
+ biz_patient as bp
|
|
|
+ join biz_clinic_room as bcr on bp.current_clinic_id = bcr.id
|
|
|
+ <where>
|
|
|
+ bp.deleted = 0 and bcr.deleted = 0 and bp.patient_code like concat('%',#{query.patientCode},'%')
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
</mapper>
|