|
|
@@ -3,8 +3,24 @@
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
<mapper namespace="cn.tr.module.smart.common.repository.BizPainAssessmentRepository">
|
|
|
-
|
|
|
- <select id="selectWebBizPainAssessmentList" resultType="cn.tr.module.smart.web.vo.BizWebPainAssessmentVO">
|
|
|
+ <resultMap id="WebPainAssessment" type="cn.tr.module.smart.web.vo.BizWebPainAssessmentVO">
|
|
|
+ <result property="id" column="id"/>
|
|
|
+ <result property="clinicId" column="clinic_id"/>
|
|
|
+ <result property="patientName" column="patient_name"/>
|
|
|
+ <result property="deptId" column="dept_id"/>
|
|
|
+ <result property="deptName" column="dept_name"/>
|
|
|
+ <result property="clinicName" column="clinic_name"/>
|
|
|
+ <result property="clinicStartTime" column="clinic_start_time"/>
|
|
|
+ <result property="satisfactionRating" column="satisfaction_rating"/>
|
|
|
+ <result property="assessmentId" column="assessment_id"/>
|
|
|
+ <result property="clinicEndTime" column="clinic_end_time"/>
|
|
|
+ <result property="patientCode" column="patient_code"/>
|
|
|
+ <result property="patientAge" column="patient_age"/>
|
|
|
+ <result property="patientGender" column="patient_gender"/>
|
|
|
+ <result property="imageUrl" column="image_url"/>
|
|
|
+ <result property="createTime" column="create_time"/>
|
|
|
+ </resultMap>
|
|
|
+ <select id="selectWebBizPainAssessmentList" resultMap="WebPainAssessment" >
|
|
|
SELECT
|
|
|
bpa.id as id,
|
|
|
bcr.id as clinicId,
|
|
|
@@ -17,7 +33,7 @@
|
|
|
bcr.patient_code as patientCode,
|
|
|
bpa.satisfaction_rating as satisfactionRating,
|
|
|
bpa.id as assessmentId,
|
|
|
- bpa.create_time as evaluationTime,
|
|
|
+ bpa.create_time as createTime,
|
|
|
bcr.create_time as create_time,
|
|
|
bcr.create_by as create_by,
|
|
|
bcr.update_time as update_time,
|