修改诊断记录列表查询

master
chenfei 2 years ago
parent 673b07b728
commit b73e1fb7fe

@ -265,7 +265,13 @@ public class AppController extends BaseController
@GetMapping("/record/info/{id}") @GetMapping("/record/info/{id}")
public AjaxResult patientsWithDiagnosisOfRecordInformationDetails(@PathVariable("id") Long id) public AjaxResult patientsWithDiagnosisOfRecordInformationDetails(@PathVariable("id") Long id)
{ {
return AjaxResult.success(tRecordService.selectById(id)); Map<String,Object> data = new HashMap<>();
data.put("result",tRecordService.selectById(id));
TImage tImage = new TImage();
tImage.setThirdId(id);
List<TImage> images = imageService.selectTImageList(tImage);
data.put("image", images);
return AjaxResult.success(data);
} }
/** /**
@ -278,7 +284,7 @@ public class AppController extends BaseController
@GetMapping("/record/diagnosedList") @GetMapping("/record/diagnosedList")
public TableDataInfo patientsDiagnosedList(TRecordResultReq recordResultReq) public TableDataInfo patientsDiagnosedList(TRecordResultReq recordResultReq)
{ {
recordResultReq.setStatus("1"); // recordResultReq.setStatus("1");
startPage(); startPage();
return getDataTable(tRecordService.selectTRecordListWithoutResult(recordResultReq)); return getDataTable(tRecordService.selectTRecordListWithoutResult(recordResultReq));
} }
@ -293,7 +299,7 @@ public class AppController extends BaseController
@GetMapping("/record/waitingList") @GetMapping("/record/waitingList")
public TableDataInfo patientsWaitingList(TRecordResultReq recordResultReq) public TableDataInfo patientsWaitingList(TRecordResultReq recordResultReq)
{ {
recordResultReq.setStatus("0"); // recordResultReq.setStatus("0");
startPage(); startPage();
return getDataTable(tRecordService.selectTRecordListWithoutResult(recordResultReq)); return getDataTable(tRecordService.selectTRecordListWithoutResult(recordResultReq));
} }

@ -199,20 +199,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="hospitalId != null "> and tr.hospital_id = #{hospitalId}</if> <if test="hospitalId != null "> and tr.hospital_id = #{hospitalId}</if>
<if test="status != null and status != ''"> and tr.status = #{status}</if> <if test="status != null and status != ''"> and tr.status = #{status}</if>
<if test="doctorName != null and doctorName != ''"> and td.name like concat('%', #{doctorName}, '%')</if> <if test="doctorName != null and doctorName != ''"> and td.name like concat('%', #{doctorName}, '%')</if>
<if test="age !=null"> <if test="age !=null and age != ''">
and tp.age between and tp.age between
<foreach item="item" collection="age.split('-')" separator="and"> <foreach item="item" collection="age.split('-')" separator="and">
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="sex !=null">and tp.sex = #{sex} </if> <if test="sex !=null and sex !=''">and tp.sex = #{sex} </if>
<if test="identifier !=null">and tp.identifier like concat('%', #{identifier}, '%')</if> <if test="identifier !=null and identifier != null">and tp.identifier like concat('%', #{identifier}, '%')</if>
<if test="delFlag == null"> <if test="delFlag == null">
and td.del_flag = '0' and tp.del_flag = '0' and td.del_flag = '0' and tp.del_flag = '0'
</if> </if>
<if test="createTime != null and createTime !=''"> <if test="createTime != null and createTime !='' and createTime != 'all'">
and DATE_FORMAT(tp.create_time,'%Y-%m') = #{createTime} and DATE_FORMAT(tp.create_time,'%Y-%m') = #{createTime}
</if> </if>
<if test="createTime == null or createTime ==''">
and to_days(tr.create_time) = to_days(now())
</if>
<if test="startTime != null and startTime != '' and endTime == null "> and tr.create_time &gt;= #{startTime}</if> <if test="startTime != null and startTime != '' and endTime == null "> and tr.create_time &gt;= #{startTime}</if>
<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>

Loading…
Cancel
Save