package com.matrix.system.hive.service;
|
|
import com.matrix.core.pojo.PaginationVO;
|
import com.matrix.system.hive.bean.ShoppingGoods;
|
import com.matrix.system.hive.plugin.util.BaseServices;
|
|
import java.util.Date;
|
import java.util.List;
|
/**
|
*
|
* @date 2016-07-30 09:54
|
*/
|
public interface ShoppingGoodsService extends BaseServices<ShoppingGoods>{
|
|
/**
|
* 新增ShoppingGoods
|
*
|
*/
|
public int add(ShoppingGoods shoppingGoods);
|
|
/**
|
* 更新ShoppingGoods
|
*
|
*/
|
public int modify(ShoppingGoods shoppingGoods);
|
|
/**
|
* 批量删除ShoppingGoods
|
*
|
*/
|
public int remove(List<Long> list);
|
|
/**
|
* 根据id删除ShoppingGoods
|
*
|
*/
|
public int removeById(Long id);
|
|
/**
|
* 分页查询ShoppingGoods
|
*
|
*/
|
public List<ShoppingGoods> findInPage(ShoppingGoods shoppingGoods, PaginationVO pageVo);
|
|
/**
|
* 根据对象查询ShoppingGoods
|
*
|
*/
|
public List<ShoppingGoods> findByModel(ShoppingGoods shoppingGoods);
|
/**
|
* 数据迁移专用
|
* @param shoppingGoods
|
* @return
|
*/
|
public List<ShoppingGoods> findByModelData(ShoppingGoods shoppingGoods);
|
/**
|
* 统计记录数ShoppingGoods
|
*
|
*/
|
public int findTotal(ShoppingGoods shoppingGoods);
|
|
/**
|
* 根据id查询ShoppingGoods
|
*
|
*/
|
public ShoppingGoods findById(Long id);
|
|
public int update(Long id);
|
|
|
|
|
/**
|
* 数据迁移用
|
* 分页查询查询项目充值卡,去除套餐
|
*/
|
public List<ShoppingGoods> findInPageNoTaocan(ShoppingGoods shoppingGoods, PaginationVO pageVo);
|
|
/**
|
* 数据迁移用
|
* 查询查询项目充值卡,去除套餐
|
* 统计记录数ShoppingGoods
|
*/
|
public int findTotalNoTaocan(ShoppingGoods shoppingGoods);
|
/**
|
* 检测是否可以修改
|
* @param id
|
* @return
|
*/
|
public boolean checkIsUpdate(Long id);
|
/**
|
* 查询所有
|
* @author xiaochonggao
|
* @email 760568680@qq.com
|
* @date 2019年1月29日
|
* @param shoppingGoods
|
* @return
|
*/
|
public List<ShoppingGoods> findAll(ShoppingGoods shoppingGoods);
|
|
public ShoppingGoods findByCode(String goodsCode);
|
|
Date calInvalidTime(ShoppingGoods shoppingGoods, Integer type, Date buyDate);
|
}
|