| | |
| | | import com.matrix.system.app.vo.ShoppingGoodsDetailVo; |
| | | import com.matrix.system.app.vo.ShoppingGoodsListVo; |
| | | import com.matrix.system.hive.bean.ShoppingGoods; |
| | | import com.matrix.system.hive.dto.GoodsSealLimitDto; |
| | | import com.matrix.system.hive.plugin.util.BaseServices; |
| | | |
| | | import java.util.Date; |
| | |
| | | * @date 2016-07-30 09:54 |
| | | */ |
| | | public interface ShoppingGoodsService extends BaseServices<ShoppingGoods>{ |
| | | |
| | | |
| | | /** |
| | | * 检测商品销售限制 |
| | | * 1、商品是否超出最大销售量 |
| | | * 2、商品是否限购 |
| | | */ |
| | | void checkGoodsSealLimit(GoodsSealLimitDto goodsSealLimitDto); |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 新增ShoppingGoods |
| | | * |
| | | */ |
| | | public int add(ShoppingGoods shoppingGoods); |
| | | int add(ShoppingGoods shoppingGoods); |
| | | |
| | | /** |
| | | * 更新ShoppingGoods |
| | | * |
| | | */ |
| | | public int modify(ShoppingGoods shoppingGoods); |
| | | int modify(ShoppingGoods shoppingGoods); |
| | | |
| | | /** |
| | | * 批量删除ShoppingGoods |
| | | * |
| | | */ |
| | | public int remove(List<Long> list); |
| | | int remove(List<Long> list); |
| | | |
| | | /** |
| | | * 根据id删除ShoppingGoods |
| | | * |
| | | */ |
| | | public int removeById(Long id); |
| | | int removeById(Long id); |
| | | |
| | | /** |
| | | * 分页查询ShoppingGoods |
| | | * |
| | | */ |
| | | public List<ShoppingGoods> findInPage(ShoppingGoods shoppingGoods, PaginationVO pageVo); |
| | | List<ShoppingGoods> findInPage(ShoppingGoods shoppingGoods, PaginationVO pageVo); |
| | | |
| | | /** |
| | | * 根据对象查询ShoppingGoods |
| | | * |
| | | */ |
| | | public List<ShoppingGoods> findByModel(ShoppingGoods shoppingGoods); |
| | | List<ShoppingGoods> findByModel(ShoppingGoods shoppingGoods); |
| | | /** |
| | | * 数据迁移专用 |
| | | * @param shoppingGoods |
| | | * @return |
| | | */ |
| | | public List<ShoppingGoods> findByModelData(ShoppingGoods shoppingGoods); |
| | | List<ShoppingGoods> findByModelData(ShoppingGoods shoppingGoods); |
| | | /** |
| | | * 统计记录数ShoppingGoods |
| | | * |
| | | */ |
| | | public int findTotal(ShoppingGoods shoppingGoods); |
| | | int findTotal(ShoppingGoods shoppingGoods); |
| | | |
| | | /** |
| | | * 根据id查询ShoppingGoods |
| | | * |
| | | */ |
| | | public ShoppingGoods findById(Long id); |
| | | ShoppingGoods findById(Long id); |
| | | |
| | | public int update(Long id); |
| | | int update(Long id); |
| | | |
| | | |
| | | |
| | |
| | | * 数据迁移用 |
| | | * 分页查询查询项目充值卡,去除套餐 |
| | | */ |
| | | public List<ShoppingGoods> findInPageNoTaocan(ShoppingGoods shoppingGoods, PaginationVO pageVo); |
| | | List<ShoppingGoods> findInPageNoTaocan(ShoppingGoods shoppingGoods, PaginationVO pageVo); |
| | | |
| | | /** |
| | | * 数据迁移用 |
| | | * 查询查询项目充值卡,去除套餐 |
| | | * 统计记录数ShoppingGoods |
| | | */ |
| | | public int findTotalNoTaocan(ShoppingGoods shoppingGoods); |
| | | int findTotalNoTaocan(ShoppingGoods shoppingGoods); |
| | | /** |
| | | * 检测是否可以修改 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | public boolean checkIsUpdate(Long id); |
| | | boolean checkIsUpdate(Long id); |
| | | /** |
| | | * 查询所有 |
| | | * @author xiaochonggao |
| | |
| | | * @param shoppingGoods |
| | | * @return |
| | | */ |
| | | public List<ShoppingGoods> findAll(ShoppingGoods shoppingGoods); |
| | | List<ShoppingGoods> findAll(ShoppingGoods shoppingGoods); |
| | | |
| | | public ShoppingGoods findByCode(String goodsCode); |
| | | ShoppingGoods findByCode(String goodsCode); |
| | | |
| | | Date calInvalidTime(ShoppingGoods shoppingGoods, Integer type, Date buyDate); |
| | | |