Crunchy
2025-06-14 b2f31607cbe26d721cd7514b619162b3e355b1aa
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
package com.wms_admin.server.service;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wms_admin.server.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;
 
import java.util.List;
import java.util.Map;
 
/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 江苏鵷雏网络科技有限公司
 * @since 2023-05-24
 */
public interface ProductService extends IService<Product> {
 
    /**
     * 入库添加操作
     * @param product
     * @return
     */
    Integer AddProductMessage(Product product);
 
    /**
     * 根据条件分页查询数据
     * @param startTime 开始时间,可以为空,但是一旦有开始时间那么一定有结束时间
     * @param endTime 结束时间
     * @param productModel 库存型号
     * @param page 分页条件
     * @return 返回数据
     */
    IPage<Product> ListProductMessage(String startTime, String endTime, String productModel, Page page);
 
    /**
     * 根据条件导出所有的数据
     * @param startTime 开始时间,可以为空,但是一旦有开始时间那么一定有结束时间
     * @param endTime 结束时间
     * @param productModel 库存型号
     * @return 返回查询到的数据
     */
    List<Product> ExcelDerive(String startTime, String endTime, String productModel);
 
    /**
     * 查询仓库数据大于30天的库存
     * @return 返回查询到的数据
     */
    List<Map<String, Object>> SelectExceedThirtyDayData();
 
    /**
     * 前端首页需要的七天每天的入库量与出库量
     * @return 返回map数据
     */
    Map<String, Object> SelectWeekNumData();
 
    /**
     * 每天晚上12点统计入库数据表中还剩下多少库存
     * @return 返回integer数据
     */
    Integer TimerCountWeekDayData();
 
    /**
     * 根据名称模糊查询
     * @param productName 用户输入的名称
     * @return 返回结果
     */
    List<Map<String, Object>> SelectNameData(String productName);
 
    /**
     * 首页饼图数据
     * @return 列表返回
     */
    List<Map<String, Object>> PieData();
 
    /**
     * 根据Id查询Mysql中的
     * @param code code就是mysql中的Id
     * @return 返回实体类信息
     */
    Product SelectIdProduct(String code);
}