From ec68404f3daa2ce557d9fa1ea7d4623e321b38f5 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期二, 23 四月 2024 10:57:25 +0800
Subject: [PATCH] sql备份
---
ycl-pojo/src/main/java/com/ycl/platform/domain/entity/CalculateRule.java | 147 +++++++++++++++++++-----------------------------
1 files changed, 58 insertions(+), 89 deletions(-)
diff --git a/ycl-pojo/src/main/java/com/ycl/platform/domain/entity/CalculateRule.java b/ycl-pojo/src/main/java/com/ycl/platform/domain/entity/CalculateRule.java
index 9a4b697..c554b6c 100644
--- a/ycl-pojo/src/main/java/com/ycl/platform/domain/entity/CalculateRule.java
+++ b/ycl-pojo/src/main/java/com/ycl/platform/domain/entity/CalculateRule.java
@@ -1,110 +1,79 @@
package com.ycl.platform.domain.entity;
-import annotation.Excel;
+import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
+import com.alibaba.excel.annotation.ExcelProperty;
+import com.alibaba.excel.annotation.write.style.ContentStyle;
+import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
+import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
+import com.baomidou.mybatisplus.annotation.TableLogic;
import com.ycl.system.domain.TreeEntity;
-import org.apache.commons.lang.builder.ToStringBuilder;
-import org.apache.commons.lang.builder.ToStringStyle;
-
-import java.math.BigDecimal;
+import lombok.Data;
/**
- * 鏍哥畻瑙勫垯瀵硅薄 t_calculate_rule
- *
+ * 鍒嗘暟鏍哥畻瑙勫垯瀵硅薄 t_default_rule
+ *
* @author ruoyi
- * @date 2024-04-03
+ * @date 2024-04-01
*/
-public class CalculateRule extends TreeEntity
-{
+@Data
+@ExcelIgnoreUnannotated
+@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER, verticalAlignment = VerticalAlignmentEnum.CENTER)
+public class CalculateRule extends TreeEntity {
private static final long serialVersionUID = 1L;
- /** */
+ /**
+ * 涓婚敭
+ */
+ @ExcelProperty("搴忓彿")
private Long id;
- /** */
- @Excel(name = "")
- private String name;
+ /**
+ * 鍗曚綅id
+ */
+ private Integer unitId;
- /** */
- @Excel(name = "")
- private Long templateId;
+ /**
+ * 瑙勫垯鍚嶇О
+ */
+ @ExcelProperty("鑰冩牳鍐呭")
+ private String ruleName;
- /** 鍗曚綅id */
- @Excel(name = "鍗曚綅id")
- private Long unitId;
+ /**
+ * 鍏宠仈涓婄骇id
+ */
+ private Long parentId;
- /** 姣忓皯1%鎵e綋鏈堟�绘湇鍔¤垂鐨勫灏� */
- @Excel(name = "姣忓皯1%鎵e綋鏈堟�绘湇鍔¤垂鐨勫灏�")
- private BigDecimal value;
+ /**
+ * 瑙勫垯鎻忚堪
+ */
+ @ExcelProperty("璇勫垽鏍囧噯")
+ private String ruleDesc;
- /** $column.columnComment */
- @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
- private String description;
+ /**
+ * 瑙勫垯鏉′欢
+ */
+ @ExcelProperty("鑰冩牳瑕佹眰")
+ private String ruleCondition;
- public void setId(Long id)
- {
- this.id = id;
- }
+ /**
+ * 鎵e噺鏂瑰紡 1/2/3 鎵f寚瀹氬垎鏁�/鍒嗘暟涔樹互鏁伴噺/闄や互鏁伴噺鍚庝箻浠ュ垎鏁�
+ */
+ @ExcelProperty("鎵e垎鏂瑰紡")
+ private String deductCategory;
- public Long getId()
- {
- return id;
- }
- public void setName(String name)
- {
- this.name = name;
- }
+ /**
+ * 鎵i櫎鍒嗘暟
+ */
+ @ExcelProperty("鎵e垎鏁板��")
+ private Double calcFraction;
- public String getName()
- {
- return name;
- }
- public void setTemplateId(Long templateId)
- {
- this.templateId = templateId;
- }
+ /**
+ * 褰撴柟寮忎负闄や互鏃讹紝闄や互褰撳墠瀛楁鏁伴噺
+ */
+ @ExcelProperty("闄や互鏁伴噺")
+ private Integer calcUnit;
- public Long getTemplateId()
- {
- return templateId;
- }
- public void setUnitId(Long unitId)
- {
- this.unitId = unitId;
- }
+ @TableLogic
+ private String deleted;
- public Long getUnitId()
- {
- return unitId;
- }
- public void setValue(BigDecimal value)
- {
- this.value = value;
- }
-
- public BigDecimal getValue()
- {
- return value;
- }
- public void setDescription(String description)
- {
- this.description = description;
- }
-
- public String getDescription()
- {
- return description;
- }
-
- @Override
- public String toString() {
- return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
- .append("id", getId())
- .append("name", getName())
- .append("templateId", getTemplateId())
- .append("parentId", getParentId())
- .append("unitId", getUnitId())
- .append("value", getValue())
- .append("description", getDescription())
- .toString();
- }
}
--
Gitblit v1.8.0