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

import java.util.List;
import com.bonus.canteen.core.nutrition.domain.HealthArticleChronic;

/**
 * 健康科普慢性病关联Mapper接口
 * 
 * @author xsheng
 * @date 2025-05-13
 */
public interface HealthArticleChronicMapper {
    /**
     * 查询健康科普慢性病关联
     * 
     * @param id 健康科普慢性病关联主键
     * @return 健康科普慢性病关联
     */
    public HealthArticleChronic selectHealthArticleChronicById(Long id);

    /**
     * 查询健康科普慢性病关联列表
     * 
     * @param healthArticleChronic 健康科普慢性病关联
     * @return 健康科普慢性病关联集合
     */
    public List<HealthArticleChronic> selectHealthArticleChronicList(HealthArticleChronic healthArticleChronic);

    /**
     * 新增健康科普慢性病关联
     * 
     * @param healthArticleChronic 健康科普慢性病关联
     * @return 结果
     */
    public int insertHealthArticleChronic(HealthArticleChronic healthArticleChronic);

    /**
     * 修改健康科普慢性病关联
     * 
     * @param healthArticleChronic 健康科普慢性病关联
     * @return 结果
     */
    public int updateHealthArticleChronic(HealthArticleChronic healthArticleChronic);

    /**
     * 删除健康科普慢性病关联
     * 
     * @param id 健康科普慢性病关联主键
     * @return 结果
     */
    public int deleteHealthArticleChronicById(Long id);

    /**
     * 批量删除健康科普慢性病关联
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHealthArticleChronicByIds(Long[] ids);

    public int deleteHealthArticleChronicByArticleId(Long articleId);
}
