huangjiayang
2025-04-25 ae366fa73d7fa3bc748973d341dd16f3735ce436
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
package com.aps.core.domain;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.aps.common.core.annotation.Excel;
import com.aps.common.core.web.domain.BaseEntity;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
 
/**
 * 资源组临时上传对象 aps_resource_group_temp
 * 
 * @author ruoyi
 * @date 2025-04-10
 */
 
public class ApsResourceGroupTemp extends BaseEntity
{
    private static final long serialVersionUID = 1L;
 
    /** 主键 */
    private String id;
 
    /** 资源组名称 */
    @Excel(name = "资源组")
    private String resourceGroupName;
 
    /** 设备数量 */
    @Excel(name = "设备数量")
    private Long devicesQuantity;
 
    /** 每日理论时间 */
    @Excel(name = "每日理论时间")
    private BigDecimal theoryHours;
 
    /** 截止需求日剩余天数  */
    @Excel(name = "截止需求日剩余天数")
    private Long restDays;
 
    /** 理论产能 */
    @Excel(name = "理论产能")
    private BigDecimal theoryCapacity;
 
    /** 机加需求日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "机加需求日期")
    private LocalDateTime requestDate;
 
    /** 批次号 */
    @Excel(name = "批次号")
    private String batchNumber;
    /** 删除标志(0代表存在 2代表删除) */
    private String delFlag;
 
    /** 工厂 */
    //@Excel(name = "工厂")
    private String plant;
 
    public void setId(String id) 
    {
        this.id = id;
    }
 
    public String getId() 
    {
        return id;
    }
 
    public void setResourceGroupName(String resourceGroupName) 
    {
        this.resourceGroupName = resourceGroupName;
    }
 
    public String getResourceGroupName() 
    {
        return resourceGroupName;
    }
 
    public void setDevicesQuantity(Long devicesQuantity) 
    {
        this.devicesQuantity = devicesQuantity;
    }
 
    public Long getDevicesQuantity() 
    {
        return devicesQuantity;
    }
 
    public void setTheoryHours(BigDecimal theoryHours)
    {
        this.theoryHours = theoryHours;
    }
 
    public BigDecimal getTheoryHours()
    {
        return theoryHours;
    }
 
    public void setRestDays(Long restDays) 
    {
        this.restDays = restDays;
    }
 
    public Long getRestDays() 
    {
        return restDays;
    }
 
    public void setTheoryCapacity(BigDecimal theoryCapacity)
    {
        this.theoryCapacity = theoryCapacity;
    }
 
    public BigDecimal getTheoryCapacity()
    {
        return theoryCapacity;
    }
 
    public void setRequestDate(LocalDateTime requestDate)
    {
        this.requestDate = requestDate;
    }
 
    public LocalDateTime getRequestDate()
    {
        return requestDate;
    }
 
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }
 
    public String getDelFlag() 
    {
        return delFlag;
    }
 
    public void setBatchNumber(String batchNumber) 
    {
        this.batchNumber = batchNumber;
    }
 
    public String getBatchNumber() 
    {
        return batchNumber;
    }
 
    public void setPlant(String plant) 
    {
        this.plant = plant;
    }
 
    public String getPlant() 
    {
        return plant;
    }
 
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("resourceGroupName", getResourceGroupName())
            .append("devicesQuantity", getDevicesQuantity())
            .append("theoryHours", getTheoryHours())
            .append("restDays", getRestDays())
            .append("theoryCapacity", getTheoryCapacity())
            .append("requestDate", getRequestDate())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("batchNumber", getBatchNumber())
            .append("plant", getPlant())
            .toString();
    }
 
    /**通过ApsResourceGroupTemp 获取 通过ApsResourceGroup */
    public ApsResourceGroup getApsResourceGroup() {
        ApsResourceGroup apsResourceGroup = new ApsResourceGroup();
        apsResourceGroup.setId(this.getId());
        apsResourceGroup.setResourceGroupName(this.getResourceGroupName());
        apsResourceGroup.setDevicesQuantity(this.getDevicesQuantity());
        apsResourceGroup.setTheoryHours(this.getTheoryHours());
        apsResourceGroup.setRestDays(this.getRestDays());
        apsResourceGroup.setTheoryCapacity(this.getTheoryCapacity());
        apsResourceGroup.setRequestDate(this.getRequestDate());
        return apsResourceGroup;
    }
}