123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- package com.kmall.admin.service;
- import com.kmall.admin.entity.GoodsEntity;
- import com.kmall.common.utils.R;
- import org.springframework.web.multipart.MultipartFile;
- import java.util.List;
- import java.util.Map;
- /**
- * Service接口
- *
- * @author Scott
- * @email
- * @date 2017-08-21 21:19:49
- */
- public interface GoodsService {
- /**
- * 根据主键查询实体
- *
- * @param id 主键
- * @return 实体
- */
- GoodsEntity queryObject(Integer id);
- GoodsEntity queryObjectByProdBarcodeAndBizType(String prodBarcode);
- /**
- * 分页查询
- *
- * @param map 参数
- * @return list
- */
- List<GoodsEntity> queryList(Map<String, Object> map);
- List<GoodsEntity> querySame(Map<String, Object> map);
- /**
- * 分页统计总数
- *
- * @param map 参数
- * @return 总数
- */
- int queryTotal(Map<String, Object> map);
- /**
- * 保存实体
- *
- * @param goods 实体
- * @return 保存条数
- */
- int save(GoodsEntity goods);
- /**
- * 根据主键更新实体
- *
- * @param goods 实体
- * @return 更新条数
- */
- int update(GoodsEntity goods);
- /**
- * 根据主键删除
- *
- * @param id
- * @return 删除条数
- */
- int delete(Integer id);
- /**
- * 根据主键批量删除
- *
- * @param ids
- * @return 删除条数
- */
- int deleteBatch(Integer[] ids);
- /**
- * 商品从回收站恢复
- *
- * @param ids
- * @return
- */
- int back(Integer[] ids);
- /**
- * 上架
- *
- * @param id
- * @return
- */
- int enSale(Integer id);
- /**
- * 上架
- *
- * @param ids
- * @return
- */
- int enSaleBatch(Integer[] ids);
- /**
- * 下架
- *
- * @param id
- * @return
- */
- int unSale(Integer id);
- /**
- * 下架
- *
- * @param ids
- * @return
- */
- int unSaleBatch(Integer[] ids);
- /**
- * 导入商品
- *
- * @param file
- * @return
- */
- int uploadExcel(MultipartFile file);
- }
|