DryLossRatio.java 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. package com.ruoyi.app.domain;
  2. import java.math.BigDecimal;
  3. import java.util.Date;
  4. import com.fasterxml.jackson.annotation.JsonFormat;
  5. import org.apache.commons.lang3.builder.ToStringBuilder;
  6. import org.apache.commons.lang3.builder.ToStringStyle;
  7. import com.ruoyi.common.annotation.Excel;
  8. import com.ruoyi.common.core.domain.BaseEntity;
  9. import javax.validation.constraints.DecimalMax;
  10. import javax.validation.constraints.DecimalMin;
  11. import javax.validation.constraints.Digits;
  12. import javax.validation.constraints.NotNull;
  13. /**
  14. * 干损比例对象 dry_loss_ratio
  15. *
  16. * @author ruoyi
  17. * @date 2025-03-19
  18. */
  19. public class DryLossRatio extends BaseEntity {
  20. private static final long serialVersionUID = 1L;
  21. /**
  22. * ID
  23. */
  24. private Long id;
  25. /**
  26. * 干损比例
  27. */
  28. @Excel(name = "干损比例")
  29. private BigDecimal dryLossRatio;
  30. /**
  31. * 开始时间
  32. */
  33. @JsonFormat(pattern = "yyyy-MM-dd")
  34. @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
  35. private String startTime;
  36. public Integer getIsUse() {
  37. return isUse;
  38. }
  39. public void setIsUse(Integer isUse) {
  40. this.isUse = isUse;
  41. }
  42. private Integer isUse;
  43. // /** 结束时间 */
  44. // @JsonFormat(pattern = "yyyy-MM-dd")
  45. // @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
  46. // private Date endTime;
  47. /**
  48. * 删除标志
  49. */
  50. private String delFlag;
  51. public void setId(Long id) {
  52. this.id = id;
  53. }
  54. public Long getId() {
  55. return id;
  56. }
  57. public void setDryLossRatio(BigDecimal dryLossRatio) {
  58. this.dryLossRatio = dryLossRatio;
  59. }
  60. @NotNull(message = "干损比例不能为空")
  61. @DecimalMin(value = "0.01", inclusive = true, message = "干损比例输入超出设定范围限制(0.01~99.99)")
  62. @DecimalMax(value = "99.99", inclusive = true, message = "干损比例输入超出设定范围限制(0.01~99.99)")
  63. @Digits(integer = 2, fraction = 2, message = "干损比例输入的整数部分不能超过2位,小数部分不能超过2位")
  64. public BigDecimal getDryLossRatio() {
  65. return dryLossRatio;
  66. }
  67. public void setStartTime(String startTime) {
  68. this.startTime = startTime;
  69. }
  70. @NotNull(message = "开始时间不能为空")
  71. public String getStartTime() {
  72. return startTime;
  73. }
  74. // public void setEndTime(Date endTime)
  75. // {
  76. // this.endTime = endTime;
  77. // }
  78. //
  79. // //目前需求不需要结束时间
  80. // public Date getEndTime()
  81. // {
  82. // return endTime;
  83. // }
  84. public void setDelFlag(String delFlag) {
  85. this.delFlag = delFlag;
  86. }
  87. public String getDelFlag() {
  88. return delFlag;
  89. }
  90. @Override
  91. public String toString() {
  92. return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
  93. .append("id", getId())
  94. .append("dryLossRatio", getDryLossRatio())
  95. .append("startTime", getStartTime())
  96. // .append("endTime", getEndTime())
  97. .append("remark", getRemark())
  98. .append("createTime", getCreateTime())
  99. .append("createBy", getCreateBy())
  100. .append("updateTime", getUpdateTime())
  101. .append("updateBy", getUpdateBy())
  102. .append("delFlag", getDelFlag())
  103. .append("isUse", getIsUse())
  104. .toString();
  105. }
  106. }