|
|
@@ -28,8 +28,11 @@
|
|
|
<if test="reqVO.floorName != null and reqVO.floorName != ''">
|
|
|
AND f.floor_name like concat('%',#{reqVO.floorName},'%')
|
|
|
</if>
|
|
|
- <if test="reqVO.orderFoodDate != null">
|
|
|
- AND eof.order_food_date = #{reqVO.orderFoodDate}
|
|
|
+ <if test="reqVO.orderFoodStartDate != null">
|
|
|
+ AND eof.order_food_date >= #{reqVO.orderFoodStartDate}
|
|
|
+ </if>
|
|
|
+ <if test="reqVO.orderFoodEndDate != null">
|
|
|
+ AND eof.order_food_date <= #{reqVO.orderFoodEndDate}
|
|
|
</if>
|
|
|
ORDER BY eof.order_food_date DESC, eof.id DESC
|
|
|
</select>
|
|
|
@@ -60,10 +63,13 @@
|
|
|
<if test="reqVO.floorName != null and reqVO.floorName != ''">
|
|
|
AND f.floor_name like concat('%',#{reqVO.floorName},'%')
|
|
|
</if>
|
|
|
- <if test="reqVO.orderFoodDate != null">
|
|
|
- AND eof.order_food_date = #{reqVO.orderFoodDate}
|
|
|
+ <if test="reqVO.orderFoodStartDate != null">
|
|
|
+ AND eof.order_food_date >= #{reqVO.orderFoodStartDate}
|
|
|
+ </if>
|
|
|
+ <if test="reqVO.orderFoodEndDate != null">
|
|
|
+ AND eof.order_food_date <= #{reqVO.orderFoodEndDate}
|
|
|
</if>
|
|
|
- ORDER BY b.build_name DESC, f.floor_name DESC, r.room_name DESC, eof.order_food_date DESC,eof.elder_id DESC
|
|
|
+ ORDER BY b.build_name DESC, f.floor_name DESC, r.room_name DESC, eof.elder_id DESC,eof.order_food_date DESC
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|