瀏覽代碼

补充提交

liangwenxuan 2 月之前
父節點
當前提交
e529045d47

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

@@ -36,5 +36,14 @@ public class ElderlyOrderFoodPageReqVO extends PageParam {
 
     @Schema(description = "楼层名称", example = "1")
     private String floorName;
+
+    @Schema(description = "房间名称", example = "1")
+    private String roomName;
+
+    @Schema(description = "长者姓名", example = "1")
+    private String elderName;
+
+    @Schema(description = "额外自选选项", example = "1")
+    private String extraDishesOption;
 }
 

+ 9 - 0
yudao-module-system/yudao-module-system-biz/src/main/resources/mapper/ElderlyOrderFoodMapper.xml

@@ -32,6 +32,15 @@
         <if test="reqVO.floorName != null and  reqVO.floorName != ''">
             AND f.floor_name like concat('%',#{reqVO.floorName},'%')
         </if>
+        <if test="reqVO.roomName != null and  reqVO.roomName != ''">
+            AND f.room_name like concat('%',#{reqVO.roomName},'%')
+        </if>
+        <if test="reqVO.elderName != null and  reqVO.elderName != ''">
+            AND ei.elder_name like concat('%',#{reqVO.elderName},'%')
+        </if>
+        <if test="reqVO.extraDishesOption != null and  reqVO.extraDishesOption != ''">
+            AND eof.extra_dishes_option = #{reqVO.extraDishesOption}
+        </if>
         <if test="reqVO.orderFoodStartDate != null">
             AND eof.order_food_date &gt;= #{reqVO.orderFoodStartDate}
         </if>