935090232@qq.com
2021-11-21 59634aeabb04aae0e819bd4c5fe909bb9cdbeb28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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);
}