package doumeemes.service.business;
|
|
import doumeemes.core.model.ApiResponse;
|
import doumeemes.core.model.PageData;
|
import doumeemes.core.model.PageWrap;
|
import doumeemes.dao.business.model.CategoryUnion;
|
import java.util.List;
|
|
/**
|
* 物料分类组合信息表Service定义
|
* @author 江蹄蹄
|
* @date 2022/04/27 16:15
|
*/
|
public interface CategoryUnionService {
|
|
/**
|
* 创建
|
*
|
* @param categoryUnion 实体对象
|
* @return Integer
|
*/
|
Integer create(CategoryUnion categoryUnion);
|
|
/**
|
* 主键删除
|
*
|
* @param id 主键
|
*/
|
void deleteById(Integer id);
|
|
/**
|
* 删除
|
*
|
* @param categoryUnion 实体对象
|
*/
|
void delete(CategoryUnion categoryUnion);
|
|
/**
|
* 批量主键删除
|
*
|
* @param ids 主键集
|
*/
|
void deleteByIdInBatch(List<Integer> ids);
|
|
/**
|
* 主键更新
|
*
|
* @param categoryUnion 实体对象
|
*/
|
void updateById(CategoryUnion categoryUnion);
|
|
/**
|
* 批量主键更新
|
*
|
* @param categoryUnions 实体集
|
*/
|
void updateByIdInBatch(List<CategoryUnion> categoryUnions);
|
|
/**
|
* 主键查询
|
*
|
* @param id 主键
|
* @return CategoryUnion
|
*/
|
CategoryUnion findById(Integer id);
|
|
/**
|
* 条件查询单条记录
|
*
|
* @param categoryUnion 实体对象
|
* @return CategoryUnion
|
*/
|
CategoryUnion findOne(CategoryUnion categoryUnion);
|
|
/**
|
* 条件查询
|
*
|
* @param categoryUnion 实体对象
|
* @return List<CategoryUnion>
|
*/
|
List<CategoryUnion> findList(CategoryUnion categoryUnion);
|
|
/**
|
* 分页查询
|
*
|
* @param pageWrap 分页对象
|
* @return PageData<CategoryUnion>
|
*/
|
PageData<CategoryUnion> findPage(PageWrap<CategoryUnion> pageWrap);
|
|
/**
|
* 条件统计
|
*
|
* @param categoryUnion 实体对象
|
* @return long
|
*/
|
long count(CategoryUnion categoryUnion);
|
|
ApiResponse insertData(CategoryUnion categoryUnion);
|
ApiResponse editById(CategoryUnion categoryUnion);
|
}
|