Просмотр исходного кода

修改根据条件查询患者疼痛评估评价时间
字段

zhouzeyu 3 месяцев назад
Родитель
Сommit
0e419842ca

+ 1 - 1
tr-modules/tr-module-smartFollowUp/src/main/java/cn/tr/module/smart/web/vo/BizWebPainAssessmentVO.java

@@ -62,5 +62,5 @@ public class BizWebPainAssessmentVO  implements Serializable {
     private String imageUrl;
 
     @ApiModelProperty(value = "评价时间", position = 14)
-    private Date evaluationTime;
+    private Date createTime;
 }

+ 19 - 3
tr-modules/tr-module-smartFollowUp/src/main/resources/mapper/smart/BizPainAssessmentMapper.xml

@@ -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,