医生微信登录接口

master
heminjian502 2 years ago
parent eb9cd9aada
commit 639341ebf9

@ -309,7 +309,7 @@ public class AppController extends BaseController
public TableDataInfo queryHomePatientsList(TRecordResultReq recordResultReq) public TableDataInfo queryHomePatientsList(TRecordResultReq recordResultReq)
{ {
// recordResultReq.setStatus("1"); // recordResultReq.setStatus("1");
//startPage(); startPage();
List<TRecordResp> tRecordResps = tRecordService.queryHomePatientList(recordResultReq); List<TRecordResp> tRecordResps = tRecordService.queryHomePatientList(recordResultReq);
return getDataTable(tRecordResps); return getDataTable(tRecordResps);
} }

@ -110,10 +110,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
t.age, t.age,
t.disease, t.disease,
t.firstTime, t.firstTime,
max(t.createTime) max(t.trCreateTime),
t.trCreateTime,
t.tpCreateTime
FROM FROM
( (
SELECT SELECT
tr.create_time AS trCreateTime,
tp.create_time AS tpCreateTime,
tr.id, tr.id,
tr.patient_id AS patientId, tr.patient_id AS patientId,
tr.doctor_id AS doctorId, tr.doctor_id AS doctorId,
@ -163,11 +167,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="startTime == null and endTime != '' and endTime != null "> and tr.create_time &lt;= #{endTime}</if> <if test="startTime == null and endTime != '' and endTime != null "> and tr.create_time &lt;= #{endTime}</if>
<if test="startTime != null and endTime != null "> and tr.create_time between #{startTime} and #{endTime}</if> <if test="startTime != null and endTime != null "> and tr.create_time between #{startTime} and #{endTime}</if>
</where> </where>
<if test="doctorOder !=null and doctorOder !=''" >order by tr.create_time ${doctorOder}</if>
<if test="firstVisitOder!=null and firstVisitOder !=''" >order by tp.create_time ${firstVisitOder}</if>
) t ) t
GROUP BY GROUP BY
t.patientId t.patientId
<if test="doctorOder !=null and doctorOder !=''" >order by t.trCreateTime ${doctorOder}</if>
<if test="firstVisitOder!=null and firstVisitOder !=''" >order by t.tpCreateTime ${firstVisitOder}</if>
</select> </select>
<!--====================工作台相关接口=====================--> <!--====================工作台相关接口=====================-->

Loading…
Cancel
Save