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 * * @author ruoyi * @date 2025-04-10 */ public class ApsResourceGroup 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; /** 机加需求日期 */ @Excel(name = "机加需求日期",width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private LocalDateTime requestDate; /** 删除标志(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 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("plant", getPlant()) .toString(); } }