package com.willalp.canteen.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.willalp.canteen.domain.HsCanteenDiningPlace;

import java.util.List;

/**
 * 就餐地Service接口
 *
 * @author songyu
 * @date 2022-01-07
 */
public interface IHsCanteenDiningPlaceService extends IService<HsCanteenDiningPlace>
{

    String GIFT_PLACE_CONFIG_KEY = "GIFT_PLACE_CONFIG_KEY";

    /**
     * 查询就餐地列表
     *
     * @param hsCanteenDiningPlace 就餐地
     * @return 就餐地集合
     */
    public List<HsCanteenDiningPlace> selectHsCanteenDiningPlaceList(HsCanteenDiningPlace hsCanteenDiningPlace);


    /**
     * 修改就餐地
     *
     * @param hsCanteenDiningPlace 就餐地
     * @return 结果
     */
    public int updateHsCanteenDiningPlace(HsCanteenDiningPlace hsCanteenDiningPlace);


    /**
     * 删除就餐地信息
     *
     * @param placeId 就餐地主键
     * @return 结果
     */
    public int deleteHsCanteenDiningPlaceByPlaceId(Long placeId);

    public HsCanteenDiningPlace selectById(Long placeId);

    /**
     * 根据配置key获取地点信息
     *
     * @param configKey
     * @return
     */
    List<HsCanteenDiningPlace> getPlaceByConfigKey(String configKey);
}
