package com.matrix.system.hive.dao;
|
|
import java.util.List;
|
|
import com.matrix.core.pojo.PaginationVO;
|
import com.matrix.system.app.vo.ShoppingGoodsDetailVo;
|
import com.matrix.system.hive.bean.ShoppingGoodsAssemble;
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
/**
|
*
|
* @date 2016-08-12 17:57
|
*/
|
|
|
public interface ShoppingGoodsAssembleDao{
|
|
//TODO 组合关系现在是通过null的字段来判断组合产品的类型的,后期数据迁移后,要改成类型
|
public List<ShoppingGoodsAssemble> selectGoodsByShoppingGoodsIdAndType(@Param("goodsId") Long shoppingGoodsId,
|
@Param("goodsType") String goodsType);
|
|
public List<ShoppingGoodsAssemble> selectGoodsByShoppingGoodsId(@Param("goodsId") Long shoppingGoodsId);
|
|
public List<ShoppingGoodsAssemble> selectProjByShoppingGoodsId(@Param("goodsId") Long shoppingGoodsId);
|
|
public List<ShoppingGoodsAssemble> selectAssembleShoppingGoodsByShoppingGoodsId(@Param("goodsId") Long shoppingGoodsId);
|
|
public int insert(ShoppingGoodsAssemble shoppingGoodsAssemble);
|
|
public int update(ShoppingGoodsAssemble shoppingGoodsAssemble);
|
|
public int deleteByIds(@Param("list") List<Long> list);
|
|
public int deleteById(Long id);
|
|
public List<ShoppingGoodsAssemble> selectInPage(@Param("record") ShoppingGoodsAssemble shoppingGoodsAssemble, @Param("pageVo") PaginationVO pageVo);
|
|
public List<ShoppingGoodsAssemble> selectByModel(@Param("record") ShoppingGoodsAssemble shoppingGoodsAssemble);
|
|
public int selectTotalRecord(@Param("record") ShoppingGoodsAssemble shoppingGoodsAssemble);
|
|
public ShoppingGoodsAssemble selectById(Long id);
|
|
/**
|
*
|
*/
|
/**
|
* @param shoppingGoodsId 商品id
|
* @param status 状态值
|
*/
|
public void updateByGoodsId(@Param("shoppingGoodsId") Long shoppingGoodsId, @Param("status") String status);
|
/**
|
* 根据shoppinggoodsid 删除assmeble 组合信息
|
* @Title: deleteByGoodsId
|
* @author:jyy
|
* @param shoppingGoodsId
|
* @return
|
* int 返回类型
|
* @date 2016年9月18日 下午5:47:22
|
* @throws
|
*/
|
public int deleteByGoodsId(@Param("shoppingGoodsId") Long shoppingGoodsId);
|
|
public void batchInsert(@Param("list") List<ShoppingGoodsAssemble> list);
|
|
List<ShoppingGoodsDetailVo> selectGoodsRelationGoodsList(@Param("goodsId") Long id, @Param("goodsType") String goodsType);
|
}
|