CrmQuoteProductVo.java 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. package org.dromara.crm.domain.vo;
  2. import cn.idev.excel.annotation.ExcelProperty;
  3. import io.github.linpeilie.annotations.AutoMapper;
  4. import lombok.Data;
  5. import org.dromara.crm.domain.CrmQuoteProduct;
  6. import com.fasterxml.jackson.annotation.JsonFormat;
  7. import java.io.Serial;
  8. import java.io.Serializable;
  9. import java.math.BigDecimal;
  10. import java.time.LocalDateTime;
  11. import java.util.Date;
  12. /**
  13. * 报价单产品视图对象 crm_quote_product
  14. *
  15. * @author 系统管理员
  16. * @date 2025-01-03
  17. */
  18. @Data
  19. @AutoMapper(target = CrmQuoteProduct.class)
  20. public class CrmQuoteProductVo implements Serializable {
  21. @Serial
  22. private static final long serialVersionUID = 1L;
  23. /**
  24. * 主键ID
  25. */
  26. @ExcelProperty(value = "ID")
  27. private Long id;
  28. /**
  29. * 报价单ID
  30. */
  31. private Long quoteId;
  32. /**
  33. * 产品ID
  34. */
  35. private Long productId;
  36. /**
  37. * 产品名称
  38. */
  39. @ExcelProperty(value = "产品名称")
  40. private String productName;
  41. /**
  42. * 产品编号
  43. */
  44. @ExcelProperty(value = "产品编号")
  45. private String productNo;
  46. /**
  47. * 产品分类ID
  48. */
  49. private Long categoryId;
  50. /**
  51. * 产品分类名称
  52. */
  53. @ExcelProperty(value = "产品分类")
  54. private String categoryName;
  55. /**
  56. * 规格型号
  57. */
  58. @ExcelProperty(value = "规格型号")
  59. private String model;
  60. /**
  61. * 单位
  62. */
  63. @ExcelProperty(value = "单位")
  64. private String unit;
  65. /**
  66. * 数量
  67. */
  68. @ExcelProperty(value = "数量")
  69. private BigDecimal quantity;
  70. /**
  71. * 含税单价/元
  72. */
  73. @ExcelProperty(value = "含税单价/元")
  74. private BigDecimal price;
  75. /**
  76. * 折扣(百分比)
  77. */
  78. @ExcelProperty(value = "折扣")
  79. private BigDecimal discount;
  80. /**
  81. * 含税总价/元
  82. */
  83. @ExcelProperty(value = "含税总价/元")
  84. private BigDecimal subtotal;
  85. /**
  86. * 税费/元
  87. */
  88. @ExcelProperty(value = "税费/元")
  89. private BigDecimal taxAmount;
  90. /**
  91. * 税率(%)
  92. */
  93. @ExcelProperty(value = "税率(%)")
  94. private BigDecimal taxRate;
  95. /**
  96. * 包装规格
  97. */
  98. @ExcelProperty(value = "包装规格")
  99. private String packageSpec;
  100. /**
  101. * 送货方式
  102. */
  103. @ExcelProperty(value = "送货方式")
  104. private String deliveryMethod;
  105. /**
  106. * 产品描述
  107. */
  108. private String description;
  109. /**
  110. * 排序号
  111. */
  112. private Integer sort;
  113. /**
  114. * 创建时间
  115. */
  116. @ExcelProperty(value = "创建时间")
  117. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
  118. private Date createTime;
  119. /**
  120. * 备注
  121. */
  122. @ExcelProperty(value = "备注")
  123. private String remark;
  124. }