sfd
2025-05-23 cd3e490b95b7e6130c506b47debc5ca004bc01f2
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
99
100
101
102
103
104
105
106
107
108
package com.aps.core.service;
 
import com.alibaba.fastjson2.JSONObject;
import com.aps.core.domain.ApsGasPipingRouteStat;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.transaction.annotation.Transactional;
 
import java.util.List;
import java.util.Map;
 
/**
 * 气体管路产能负载统计Service接口
 * 
 * @author hjy
 * @date 2025-04-24
 */
public interface IApsGasPipingRouteStatService 
{
    /**
     * 查询气体管路产能负载统计
     * 
     * @param id 气体管路产能负载统计主键
     * @return 气体管路产能负载统计
     */
    public ApsGasPipingRouteStat selectApsGasPipingRouteStatById(String id);
 
    /**
     * 查询气体管路产能负载统计列表
     * 
     * @param apsGasPipingRouteStat 气体管路产能负载统计
     * @return 气体管路产能负载统计集合
     */
    public List<ApsGasPipingRouteStat> selectApsGasPipingRouteStatList(ApsGasPipingRouteStat apsGasPipingRouteStat);
 
    /**
     * 新增气体管路产能负载统计
     * 
     * @param apsGasPipingRouteStat 气体管路产能负载统计
     * @return 结果
     */
    public int insertApsGasPipingRouteStat(ApsGasPipingRouteStat apsGasPipingRouteStat);
 
    /**
     * 修改气体管路产能负载统计
     * 
     * @param apsGasPipingRouteStat 气体管路产能负载统计
     * @return 结果
     */
    public int updateApsGasPipingRouteStat(ApsGasPipingRouteStat apsGasPipingRouteStat);
 
    /**
     * 批量删除气体管路产能负载统计
     * 
     * @param ids 需要删除的气体管路产能负载统计主键集合
     * @return 结果
     */
    public int deleteApsGasPipingRouteStatByIds(String[] ids);
 
    /**
     * 删除气体管路产能负载统计信息
     * 
     * @param id 气体管路产能负载统计主键
     * @return 结果
     */
    public int deleteApsGasPipingRouteStatById(String id);
 
    /**
     * 计算产能数据到底表
     * @param yearMonth
     * @return
     */
    boolean computeCapacity();
 
    /**
     * 获取产能计划数据
     * @param year
     * @param month
     * @return
     */
    public JSONObject getCapacityPlanData(ApsGasPipingRouteStat apsGasPipingRouteStat);
 
    /**
     * 导出数据
     * @param response
     */
    public void exportExcel(HttpServletResponse response, ApsGasPipingRouteStat apsGasPipingRouteStat);
 
    void saveGasPipingProcessStat();
 
    @Transactional
    void saveGasPipingRoutStateList();
 
    /**
     * 根据手工气体预测数据和手工气体工单数据生成统计数据
     * 
     * @return 结果
     */
    @Transactional
    public int generateGasPipingRouteStatData();
    
    /**
     * 聚合气体管路产能负载统计数据
     * 
     * @param params 聚合参数
     * @return 聚合结果
     */
    public Map<String, Object> aggregateGasPipingRouteStat(Map<String, Object> params);
}