APP新增查询患者诊断记录列表

master
gongzhenkun 2 years ago
parent 52b2335556
commit d500f7b18d

@ -681,4 +681,19 @@ public class AppController extends BaseController
public AjaxResult numberOfDiagnosis(@PathVariable("id") Long doctorId){ public AjaxResult numberOfDiagnosis(@PathVariable("id") Long doctorId){
return AjaxResult.success(tRecordService.queryDoctorNumberOfDiagnosis(doctorId)); return AjaxResult.success(tRecordService.queryDoctorNumberOfDiagnosis(doctorId));
} }
/**
*
*
* @param appPatientRecordReq
* @return {@code AjaxResult}
*/
@ApiOperation("APP查询患者诊断记录列表")
@Log(title = "APP查询患者诊断记录列表", businessType = BusinessType.OTHER)
@GetMapping("/patient/record/list")
public AjaxResult queryInPatientsWithDiagnosisOfRecordList(AppPatientRecordReq appPatientRecordReq){
TRecordResultReq tRecordResultReq = new TRecordResultReq();
BeanUtils.copyProperties(appPatientRecordReq, tRecordResultReq);
return AjaxResult.success(tRecordService.selectTRecordListWithoutResult(tRecordResultReq));
}
} }

@ -0,0 +1,94 @@
package com.ruoyi.system.domain.req;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.io.Serializable;
import java.util.Date;
/**
* App
*
* @author gongzhenkun
* @date 2022/8/24 17:32
*/
@ApiModel(value = "AppPatientRecordReq", description = "App查询患者诊断记录列表")
public class AppPatientRecordReq implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@ApiModelProperty("档案号")
private String identifier;
/**
*
*/
@ApiModelProperty("名称")
private String name;
/**
* 0 1 2
*/
@ApiModelProperty("用户性别: 0=男,1=女,2=未知")
private String sex;
/**
*
*/
@ApiModelProperty("年龄")
@Max(120)
@Min(-1)
private Integer patientAge;
/**
*
*/
@ApiModelProperty("就诊时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private String startTime;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public Integer getPatientAge() {
return patientAge;
}
public void setPatientAge(Integer patientAge) {
this.patientAge = patientAge;
}
public String getStartTime() {
return startTime;
}
public void setStartTime(String startTime) {
this.startTime = startTime;
}
public String getIdentifier() {
return identifier;
}
public void setIdentifier(String identifier) {
this.identifier = identifier;
}
}

@ -50,6 +50,17 @@ public class TRecordResultReq
@ApiModelProperty("是否查看删除状态 默认null不查看,1为查看全部") @ApiModelProperty("是否查看删除状态 默认null不查看,1为查看全部")
private String delFlag; private String delFlag;
@ApiModelProperty("(非必填)患者年龄[Integer]")
private Integer patientAge;
public Integer getPatientAge() {
return patientAge;
}
public void setPatientAge(Integer patientAge) {
this.patientAge = patientAge;
}
public String getName() public String getName()
{ {
return name; return name;

@ -319,6 +319,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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>
<if test="patientAge != null"> and tp.age = #{patientAge} </if>
</where> </where>
<if test="doctorOder !=null and doctorOder !=''" >order by tr.create_time ${doctorOder}</if> <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> <if test="firstVisitOder!=null and firstVisitOder !=''" >order by tp.create_time ${firstVisitOder}</if>

Loading…
Cancel
Save