TwinDeviceSpec.java 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. package com.ruoyi.biz.domain;
  2. import java.math.BigDecimal;
  3. import org.apache.commons.lang3.builder.ToStringBuilder;
  4. import org.apache.commons.lang3.builder.ToStringStyle;
  5. import com.ruoyi.common.annotation.Excel;
  6. import io.swagger.annotations.ApiModel;
  7. import io.swagger.annotations.ApiModelProperty;
  8. import com.ruoyi.common.core.domain.BaseEntity;
  9. /**
  10. * 设备规格记录对象 twin_device_spec
  11. *
  12. * @author ruoyi
  13. * @date 2024-12-19
  14. */
  15. @ApiModel(value = "ITwinDeviceSpec", description = "设备规格记录")
  16. public class TwinDeviceSpec extends BaseEntity
  17. {
  18. private static final long serialVersionUID = 1L;
  19. /** 统计ID */
  20. private Long specId;
  21. /** 规格 */
  22. @Excel(name = "规格")
  23. @ApiModelProperty("规格")
  24. private String spec;
  25. /** 米克重 */
  26. @Excel(name = "米克重")
  27. @ApiModelProperty("米克重")
  28. private Integer mick;
  29. /** 密度 */
  30. @Excel(name = "密度")
  31. @ApiModelProperty("密度")
  32. private BigDecimal density;
  33. /** 机台号 */
  34. @Excel(name = "机台号")
  35. @ApiModelProperty("机台号")
  36. private Long deviceId;
  37. public void setSpecId(Long specId)
  38. {
  39. this.specId = specId;
  40. }
  41. public Long getSpecId()
  42. {
  43. return specId;
  44. }
  45. public void setSpec(String spec)
  46. {
  47. this.spec = spec;
  48. }
  49. public String getSpec()
  50. {
  51. return spec;
  52. }
  53. public void setMick(Integer mick)
  54. {
  55. this.mick = mick;
  56. }
  57. public Integer getMick()
  58. {
  59. return mick;
  60. }
  61. public void setDensity(BigDecimal density)
  62. {
  63. this.density = density;
  64. }
  65. public BigDecimal getDensity()
  66. {
  67. return density;
  68. }
  69. public void setDeviceId(Long deviceId)
  70. {
  71. this.deviceId = deviceId;
  72. }
  73. public Long getDeviceId()
  74. {
  75. return deviceId;
  76. }
  77. @Override
  78. public String toString() {
  79. return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  80. .append("specId", getSpecId())
  81. .append("spec", getSpec())
  82. .append("mick", getMick())
  83. .append("density", getDensity())
  84. .append("deviceId", getDeviceId())
  85. .append("createTime", getCreateTime())
  86. .toString();
  87. }
  88. }