Browse Source

申诉记录列表查询加入患者姓名查询

zhanghang 3 years ago
parent
commit
0c078db6b0

+ 3 - 0
report-service/src/main/java/com/lantone/report/vo/GetComplaintRecordVO.java

@@ -52,4 +52,7 @@ public class GetComplaintRecordVO extends Page implements Serializable {
     @ApiModelProperty(value = "是否已归档(0:未归档,1:已归档)")
     private String isPlacefile;
 
+    @ApiModelProperty(value = "患者姓名")
+    private String patientName;
+
 }

+ 2 - 2
report-service/src/main/java/com/lantone/report/web/MedAppealInfoManagementController.java

@@ -89,8 +89,8 @@ public class MedAppealInfoManagementController {
         return CommonResult.success(medAppealInfoManagementFacade.getAppealDept(getAppealDeptVo));
     }
 
-    @ApiOperation(value = "申诉审核科室下拉列表查询[by:songxl]",
-            notes = "申诉审核科室下拉列表查询")
+    @ApiOperation(value = "申诉审核模块下拉列表查询[by:songxl]",
+            notes = "申诉审核模块下拉列表查询")
     @PostMapping("/getAppealMode")
     public CommonResult<List<GetAppealModeDTO>> getAppealMode(@RequestBody @Valid GetAppealModeVo getAppealModeVo) {
         return CommonResult.success(medAppealInfoManagementFacade.getAppealMode(getAppealModeVo));

+ 3 - 0
report-service/src/main/resources/mapper/AppealExamineInfoMapper.xml

@@ -59,6 +59,9 @@
         <if test="getComplaintRecordVO.deptName != null and getComplaintRecordVO.deptName != '' ">
             <![CDATA[ AND b.beh_dept_name = #{getComplaintRecordVO.deptName}]]>
         </if>
+        <if test="getComplaintRecordVO.patientName != null and getComplaintRecordVO.patientName != '' ">
+            <![CDATA[ AND b.name like concat('%',#{getComplaintRecordVO.patientName},'%')]]>
+        </if>
         ) a
         LEFT JOIN med_appeal_examine_info c ON a.id = c.appeal_info_id
         WHERE