package com.doumee.service.business; import com.doumee.core.model.PageData; import com.doumee.core.model.PageWrap; import com.doumee.dao.business.model.Discount; import java.util.List; /** * 骑行套餐信息表Service定义 * @author 江蹄蹄 * @date 2025/02/17 09:43 */ public interface DiscountService { /** * 创建 * * @param discount 实体对象 * @return String */ String create(Discount discount); /** * 主键删除 * * @param id 主键 */ void deleteById(String id); /** * 删除 * * @param discount 实体对象 */ void delete(Discount discount); /** * 批量主键删除 * * @param ids 主键集 */ void deleteByIdInBatch(List ids); /** * 主键更新 * * @param discount 实体对象 */ void updateById(Discount discount); /** * 批量主键更新 * * @param discounts 实体集 */ void updateByIdInBatch(List discounts); /** * 主键查询 * * @param id 主键 * @return Discount */ Discount findById(String id); /** * 条件查询单条记录 * * @param discount 实体对象 * @return Discount */ Discount findOne(Discount discount); /** * 条件查询 * * @param discount 实体对象 * @return List */ List findList(Discount discount); /** * 分页查询 * * @param pageWrap 分页对象 * @return PageData */ PageData findPage(PageWrap pageWrap); /** * 条件统计 * * @param discount 实体对象 * @return long */ long count(Discount discount); void updStatus(Discount discount); }