邱宇豪
2023-11-03 bd74616204baf4e3f8bb124f142a07be8e5e9f13
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
package com.thhy.materials.modules.biz.pipeoutplan.mapper;
 
import com.thhy.materials.modules.biz.pipeoutplan.entity.PipeOutPlanEntity;
import com.thhy.materials.modules.biz.pipeoutplan.entity.PipeOutPlanMothEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
 
/**
 * @Author QiuYuHao
 * @CreateDate 2023-11-03 9:41:37
 * 发运计划mapper
 */
@Mapper
public interface PipeOutPlanMapper {
 
    /**
     * 新增发运计划表
     * @param pipeOutPlanEntity
     */
    void insert(PipeOutPlanEntity pipeOutPlanEntity);
 
    /**
     * 新增发运计划月数表
     * @param pipeOutPlanMothEntity
     */
    void insertMoth(PipeOutPlanMothEntity pipeOutPlanMothEntity);
 
    /**
     * 删除发运计划表
     * @param pipeNeedId
     */
    void delete(String pipeNeedId);
 
    /**
     * 删除发运计划月数表
     * @param pipeNeedId
     */
    void deleteMoth(String pipeNeedId);
 
    /**
     * 更新发运计划表
     * @param pipeOutPlanEntity
     */
    void update(PipeOutPlanEntity pipeOutPlanEntity);
 
    /**
     * 查询单条发运计划表
     * @param pipeNeedId
     * @return
     */
    PipeOutPlanEntity selectInfo(String pipeNeedId);
 
    PipeOutPlanEntity selectInfoByProIdAndYear(
            @Param("proId") String proId,
            @Param("planYear") Integer year);
 
    /**
     * 查询发运计划列表
     * @param map
     * @return
     */
    List<PipeOutPlanEntity> findAll(Map<String,Object> map);
 
    /**
     * 查询发运计划月数表
     * @param pipeNeedId
     * @return
     */
    List<PipeOutPlanMothEntity> findMothList(String pipeNeedId);
 
    /**
     * 查询每月数量
     * @param proId
     * @param year
     * @return
     */
    List<PipeOutPlanMothEntity> findMothListByProIdAndYear(@Param("proId") String proId,
                                                           @Param("year") String year);
}