CrmContractProduct.java 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. package org.dromara.crm.domain;
  2. import com.baomidou.mybatisplus.annotation.*;
  3. import lombok.Data;
  4. import lombok.EqualsAndHashCode;
  5. import org.dromara.common.tenant.core.TenantEntity;
  6. import java.io.Serial;
  7. import java.math.BigDecimal;
  8. import java.time.LocalDate;
  9. /**
  10. * CRM合同产品明细对象 crm_contract_product
  11. *
  12. * @author AI Assistant
  13. * @date 2025-10-04
  14. */
  15. @Data
  16. @EqualsAndHashCode(callSuper = true)
  17. @TableName("crm_contract_product")
  18. public class CrmContractProduct extends TenantEntity {
  19. @Serial
  20. private static final long serialVersionUID = 1L;
  21. /**
  22. * 主键ID
  23. */
  24. @TableId(value = "id", type = IdType.ASSIGN_ID)
  25. private Long id;
  26. /**
  27. * 合同ID
  28. */
  29. private Long contractId;
  30. /**
  31. * 产品ID
  32. */
  33. private Long productId;
  34. /**
  35. * 产品名称
  36. */
  37. private String productName;
  38. /**
  39. * 产品编号
  40. */
  41. private String productNo;
  42. /**
  43. * 产品分类ID
  44. */
  45. private Long categoryId;
  46. /**
  47. * 产品分类名称
  48. */
  49. private String categoryName;
  50. /**
  51. * 规格型号
  52. */
  53. private String model;
  54. /**
  55. * 单位
  56. */
  57. private String unit;
  58. /**
  59. * 数量
  60. */
  61. private BigDecimal quantity;
  62. /**
  63. * 单价
  64. */
  65. private BigDecimal price;
  66. /**
  67. * 折扣(百分比)
  68. */
  69. private BigDecimal discount;
  70. /**
  71. * 税率(%)
  72. */
  73. private BigDecimal taxRate;
  74. /**
  75. * 税费金额
  76. */
  77. private BigDecimal taxAmount;
  78. /**
  79. * 小计金额
  80. */
  81. private BigDecimal subtotal;
  82. /**
  83. * 交付日期
  84. */
  85. private LocalDate deliveryDate;
  86. /**
  87. * 交付状态(pending-待交付/partial-部分交付/delivered-已交付)
  88. */
  89. private String deliveryStatus;
  90. /**
  91. * 已交付数量
  92. */
  93. private BigDecimal deliveredQuantity;
  94. /**
  95. * 产品描述
  96. */
  97. private String description;
  98. /**
  99. * 包装规格
  100. */
  101. private String packageSpec;
  102. /**
  103. * 送货方式
  104. */
  105. private String deliveryMethod;
  106. /**
  107. * 排序号
  108. */
  109. private Integer sort;
  110. /**
  111. * 逻辑删除标志(0存在 1删除)
  112. */
  113. @TableLogic
  114. private Integer delFlag;
  115. /**
  116. * 版本号
  117. */
  118. @Version
  119. private Integer version;
  120. /**
  121. * 备注
  122. */
  123. private String remark;
  124. }