Lius
2025-01-02 2152f2f0138730c76df82ff947e5aa27e6a2abff
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
package org.jeecg.modules.base.service;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.base.entity.Warehouse;
 
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
 
/**
 * @Description: 仓库
 * @Author: jeecg-boot
 * @Date: 2022-11-07
 * @Version: V1.0
 */
public interface IWarehouseService extends IService<Warehouse> {
    /**
     * 获取版本列表
     *
     * @param page
     * @param enterpriseId
     * @param version
     * @return
     */
    Page<Map<String, Object>> getWarehouseList(Page<Map<String, Object>> page,
                                               Integer version,
                                               String enterpriseId);
 
    /**
     * 获取初始版本号
     *
     * @return
     */
    public Integer getInitVersion();
 
    /**
     * 删除一对多
     *
     * @param id
     */
    public void delMain(String id);
 
    /**
     * 批量删除一对多
     *
     * @param idList
     */
    public void delBatchMain(Collection<? extends Serializable> idList);
 
    /**
     * 获取所有版本号
     *
     * @param
     * @return
     */
    public Set<Integer> getVersionList();
 
    /**
     * 获取最后一次生效列表
     *
     * @return
     */
    List<Warehouse> getLastUsableList();
 
    /**
     * 获取当前生效列表
     *
     * @return
     */
    List<Warehouse> getUsableList();
 
    /**
     * 查当前生效版本和上次生效版本
     *
     * @return
     */
    Map<String, Object> getNowAndLastUsableVersion();
 
    /**
     * 获取版本状态根据版本号
     *
     * @param version
     * @return
     */
    List<String> getVersionStatusByVersion(Integer version);
 
 
    /**
     * 根据仓库名称查询
     *
     * @param name 名称
     * @return Warehouse
     */
    public Warehouse getByName(String name);
}