dish cache

This commit is contained in:
2024-12-16 18:41:04 +08:00
parent 7747190fd9
commit 0b77bc7d70
6 changed files with 56 additions and 16 deletions

View File

@@ -68,7 +68,7 @@ public interface DishMapper {
* @param categoryId
* @return
*/
@Select("select * from dish where category_id = #{categoryId}")
@Select("select * from dish where category_id = #{categoryId} and status = 1")
List<Dish> selectByCategoryId(Long categoryId);
List<Dish> selectByDishIdsAndStatusDisable(List<Long> dishIds);