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;
|
}
|
}
|