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

import java.util.List;
import com.bonus.canteen.core.kitchen.domain.KitchenDeviceSensorMetric;

/**
 * 厨房设备衡量指标设置Mapper接口
 *
 * @author xsheng
 * @date 2025-06-16
 */
public interface KitchenDeviceSensorMetricMapper {
    /**
     * 查询厨房设备衡量指标设置
     *
     * @param measureId 厨房设备衡量指标设置主键
     * @return 厨房设备衡量指标设置
     */
    public KitchenDeviceSensorMetric selectKitchenDeviceSensorMetricByMeasureId(Long measureId);


    /**
     * 批量删除厨房设备衡量指标设置
     *
     * @param measureCode 厨房设备衡量代码
     * @return 结果
     */
    public List<KitchenDeviceSensorMetric> selectKitchenDeviceSensorMetricByMeasureCode(String measureCode);

    /**
     * 查询厨房设备衡量指标设置列表
     *
     * @param kitchenDeviceSensorMetric 厨房设备衡量指标设置
     * @return 厨房设备衡量指标设置集合
     */
    public List<KitchenDeviceSensorMetric> selectKitchenDeviceSensorMetricList(KitchenDeviceSensorMetric kitchenDeviceSensorMetric);

    /**
     * 新增厨房设备衡量指标设置
     *
     * @param kitchenDeviceSensorMetric 厨房设备衡量指标设置
     * @return 结果
     */
    public int insertKitchenDeviceSensorMetric(KitchenDeviceSensorMetric kitchenDeviceSensorMetric);

    /**
     * 修改厨房设备衡量指标设置
     *
     * @param kitchenDeviceSensorMetric 厨房设备衡量指标设置
     * @return 结果
     */
    public int updateKitchenDeviceSensorMetric(KitchenDeviceSensorMetric kitchenDeviceSensorMetric);

    public int rollbackKitchenDeviceSensorMetricByMeasureIds(Long[] measureIds);

    /**
     * 删除厨房设备衡量指标设置
     *
     * @param measureId 厨房设备衡量指标设置主键
     * @return 结果
     */
    public int deleteKitchenDeviceSensorMetricByMeasureId(Long measureId);

    /**
     * 批量删除厨房设备衡量指标设置
     *
     * @param measureIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteKitchenDeviceSensorMetricByMeasureIds(Long[] measureIds);

}
