GoodsDao.java 952 B

12345678910111213141516171819202122232425262728293031
  1. package com.kmall.admin.dao;
  2. import com.kmall.admin.entity.GoodsEntity;
  3. import com.kmall.manager.dao.BaseDao;
  4. import org.apache.ibatis.annotations.Param;
  5. import java.util.List;
  6. import java.util.Map;
  7. /**
  8. * Dao
  9. *
  10. * @author Scott
  11. * @email
  12. * @date 2017-08-21 21:19:49
  13. */
  14. public interface GoodsDao extends BaseDao<GoodsEntity> {
  15. Long queryMaxId();
  16. GoodsEntity queryObjectBySn(String goodsSn);
  17. GoodsEntity queryObjectByProdBarcodeAndBizType(@Param("prodBarcode")String prodBarcode, @Param("storeId")Integer storeId);
  18. List<GoodsEntity> querySame(Map<String, Object> map);
  19. List<GoodsEntity> queryObjectByProdBarcode(@Param("prodBarcode") String prodBarcode, @Param("merchSn") String merchSn,@Param("goodsId")Long id);
  20. GoodsEntity queryObjectByStoreId(@Param("id") Long id, @Param("storeId") Long storeId);
  21. GoodsEntity queryGoodsByGoodsSnAndStoreId(@Param("goodsSn") String goodsSn, @Param("storeId") Long storeId);
  22. }