package com.bonus.canteen.core.allocation.canteen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bonus.canteen.core.allocation.canteen.model.AllocMealLine;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AllocMealLineMapper extends BaseMapper<AllocMealLine> {
   @Select({"SELECT MAX(meal_line_num) FROM alloc_meal_line WHERE if_del = 2 AND stall_id = #{stallId}"})
   String getLatestMealLineNum(Long stallId);

//   @LeNiuDataPermission(
//      alias = "t1",
//      permissionType = DataPermissionTypeEnum.PERMISSION_STALL
//   )
//   Page<AllocMealLineVO> pageMealLine(@Param("page") Page<AllocMealLineVO> page, @Param("param") AllocCanteenStallPageParam param);
//
//   List<AllocMealLineVO> listMultipleMealLine(@Param("stallIdList") List<Long> stallIdList);
}
