1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.sh.stc.sict.theme.hpgp.dao.HpAppointmentEvaMapper">
<resultMap type="cn.sh.stc.sict.theme.hpgp.model.HpAppointmentEva" id="HpAppointmentEvaMap">
<result property="id" column="id"/>
<result property="userId" column="user_id"/>
<result property="patientId" column="patient_id"/>
<result property="appId" column="app_id"/>
<result property="hospCode" column="hosp_code"/>
<result property="hospName" column="hosp_name"/>
<result property="deptCode" column="dept_code"/>
<result property="deptName" column="dept_name"/>
<result property="doctorCode" column="doctor_code"/>
<result property="doctorName" column="doctor_name"/>
<result property="comprehensiveEva" column="comprehensive_eva"/>
<result property="efficacyEva" column="efficacy_eva"/>
<result property="attitudeEva" column="attitude_eva"/>
<result property="appTime" column="app_time"/>
<result property="createTime" column="create_time"/>
<result property="updateTime" column="update_time"/>
</resultMap>
<select id="toBeEavPage" resultType="cn.sh.stc.sict.theme.hpgp.model.HpAppointmentEva">
select patient_id patientId,
id appId,
hos_org_code hospCode,
hos_org_name hospName,
dept_code deptCode,
dept_name deptName,
doctor_id doctorCode,
doctor_name doctorName,
num_source_date appTime
from hp_appointment
where patient_id = #{patientId}
and eva_status = 0
order by num_source_date desc
</select>
</mapper>