package com.kmall.admin.service; import com.kmall.admin.entity.GoodsBatchEntity; import java.util.List; import java.util.Map; /** * 批次(多)— SKU(多)Service接口 * * @author emato * @email admin@qhdswl.com * @date 2020-06-13 09:58:15 */ public interface GoodsBatchService { /** * 根据主键查询实体 * * @param id 主键 * @return 实体 */ GoodsBatchEntity queryObject(Integer id); /** * 分页查询 * * @param map 参数 * @return list */ List queryList(Map map); /** * 分页统计总数 * * @param map 参数 * @return 总数 */ int queryTotal(Map map); /** * 保存实体 * * @param goodsBatch 实体 * @return 保存条数 */ int save(GoodsBatchEntity goodsBatch); /** * 根据主键更新实体 * * @param goodsBatch 实体 * @return 更新条数 */ int update(GoodsBatchEntity goodsBatch); /** * 根据主键删除 * * @param id * @return 删除条数 */ int delete(Integer id); /** * 根据主键批量删除 * * @param ids * @return 删除条数 */ int deleteBatch(Integer[] ids); List queryListBySku(String sku); }