wzy
2021-01-13 95a75fc2342ed20f2b31eeb30a6171222c2faedf
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
70
71
72
73
package com.matrix.system.hive.dao;
 
import com.matrix.system.hive.bean.SysStoreInfo;
import com.matrix.system.hive.pojo.StoreInOutRecordVO;
import org.apache.ibatis.annotations.Param;
 
import com.matrix.core.pojo.PaginationVO;
 
import java.util.List;
 
/**
 *
 * 
 * @date 2016-07-17 10:23
 */
 
public interface SysStoreInfoDao {
    public int insert(SysStoreInfo sysStoreInfo);
 
    public void batchInsert(@Param("list") List<SysStoreInfo> list);
 
    public int update(SysStoreInfo sysStoreInfo);
 
    public int deleteByIds(@Param("list") List<Long> list);
 
    public int deleteById(Long iD);
 
    public List<SysStoreInfo> selectInPage(@Param("record") SysStoreInfo sysStoreInfo,
                                           @Param("pageVo") PaginationVO pageVo);
 
    public List<SysStoreInfo> selectCountInPage(@Param("record") SysStoreInfo sysStoreInfo,
                                           @Param("pageVo") PaginationVO pageVo);
 
    public List<SysStoreInfo> selectByModel(@Param("record") SysStoreInfo sysStoreInfo);
 
    public int selectTotalRecord(@Param("record") SysStoreInfo sysStoreInfo);
 
    public int selectCountTotalRecord(@Param("record") SysStoreInfo sysStoreInfo);
 
    public SysStoreInfo selectById(Long iD);
 
    public SysStoreInfo getStoreByGoodsId(SysStoreInfo sysStoreInfo);
 
    /**
     * 根据商品 与仓库id 出库
     */
    public int updateGoodsCk(@Param("id") Long id, @Param("goodId") Long goodId, @Param("count") int Count);
 
    /**
     * 根据批次和仓库id查询库存
     *
     * @author jiangyouyao
     * @return
     */
    public SysStoreInfo selectStoInfo(@Param("batch") String batch, @Param("storeId") Long storeId);
 
    public List<SysStoreInfo> selectStoInfoSimple(@Param("skuId") Long skuId, @Param("storeId")Long checkStoreid);
    public int countDetail(Long skuId);
 
    public List<SysStoreInfo> selectStoInfoBySku(@Param("skuId")Long skuId, @Param("storeId") Long shopId);
 
    /**
     * 查询仓库中库存大于0的
     * @param storeId
     * @return
     */
    public List<SysStoreInfo> selectByStoreId(@Param("storeId")Long storeId);
 
 
    List<StoreInOutRecordVO> findStoreInOutRecord(@Param("record")StoreInOutRecordVO storeInOut,  @Param("pageVo")PaginationVO pageVo);
 
    Integer findStoreInOutTotal(@Param("record")StoreInOutRecordVO inOutRecordVO);
}