Переглянути джерело

增加
1、长者信息分页接口增加合同号过滤

liangwenxuan 1 місяць тому
батько
коміт
590559a518

+ 3 - 0
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/biz/vo/ElderlyInfoPageReqVO.java

@@ -80,6 +80,9 @@ public class ElderlyInfoPageReqVO extends PageParam {
     @Schema(description = "排序")
     private String orderByClause;
 
+    @Schema(description = "合同号")
+    private String contractNumber;
+
     @Schema(description = "床位id")
     private Long bedId;
 

+ 3 - 0
yudao-module-system/yudao-module-system-biz/src/main/resources/mapper/ElderlyInfoMapper.xml

@@ -80,6 +80,9 @@
         <if test="pageVO.elderName != null and pageVO.elderName != '' ">
             and ei.elder_name like concat('%', #{pageVO.elderName}, '%')
         </if>
+        <if test="pageVO.contractNumber != null and pageVO.contractNumber != '' ">
+            and ec.contract_number like concat('%', #{pageVO.contractNumber}, '%')
+        </if>
         <if test="pageVO.elderSex != null and pageVO.elderSex != '' ">
             and ei.elder_sex = #{pageVO.elderSex}
         </if>