Commit 1afdf14d authored by shihuajun's avatar shihuajun

update entity

parent ff156b33
...@@ -367,5 +367,10 @@ ...@@ -367,5 +367,10 @@
<artifactId>aws-java-sdk-s3</artifactId> <artifactId>aws-java-sdk-s3</artifactId>
<version>${amazonaws.version}</version> <version>${amazonaws.version}</version>
</dependency> </dependency>
<dependency>
<groupId>com.googlecode.aviator</groupId>
<artifactId>aviator</artifactId>
<version>4.2.0</version>
</dependency>
</dependencies> </dependencies>
</project> </project>
...@@ -6,22 +6,21 @@ import java.util.Objects; ...@@ -6,22 +6,21 @@ import java.util.Objects;
/** /**
* @author shihuajun * @author shihuajun
* @date 2021/8/26 17:57 * @date 2021/8/30 17:34
* @ describing * @ describing
*/ */
@Entity @Entity
@Table(name = "fund_product", schema = "asset-distribution") @Table(name = "fund_product", schema = "asset-distribution", catalog = "")
public class FundProductEntity { public class FundProductEntity {
private long id; private long id;
private long fundId; private long fundId;
private Long fundProId; private long fundProId;
private String fundName; private String fundName;
private String fundType; private String fundType;
private String orgType; private String orgType;
private String businessType; private String businessType;
private String systermType; private String systermType;
private String basicRule; private String basicRule;
private String otherRule;
private String ruleList; private String ruleList;
private Byte enable; private Byte enable;
private Timestamp createdAt; private Timestamp createdAt;
...@@ -49,11 +48,11 @@ public class FundProductEntity { ...@@ -49,11 +48,11 @@ public class FundProductEntity {
@Basic @Basic
@Column(name = "fund_pro_id", nullable = false) @Column(name = "fund_pro_id", nullable = false)
public Long getFundProId() { public long getFundProId() {
return fundProId; return fundProId;
} }
public void setFundProId(Long fundProId) { public void setFundProId(long fundProId) {
this.fundProId = fundProId; this.fundProId = fundProId;
} }
...@@ -159,18 +158,14 @@ public class FundProductEntity { ...@@ -159,18 +158,14 @@ public class FundProductEntity {
@Override @Override
public boolean equals(Object o) { public boolean equals(Object o) {
if (this == o) { if (this == o) return true;
return true; if (o == null || getClass() != o.getClass()) return false;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FundProductEntity that = (FundProductEntity) o; FundProductEntity that = (FundProductEntity) o;
return id == that.id && fundId == that.fundId && Objects.equals(fundProId,that.fundProId) && Objects.equals(fundName, that.fundName) && Objects.equals(fundType, that.fundType) && Objects.equals(orgType, that.orgType) && Objects.equals(businessType, that.businessType) && Objects.equals(systermType, that.systermType) && Objects.equals(basicRule, that.basicRule) && Objects.equals(otherRule, that.otherRule) && Objects.equals(ruleList, that.ruleList) && Objects.equals(enable, that.enable) && Objects.equals(createdAt, that.createdAt) && Objects.equals(updatedAt, that.updatedAt); return id == that.id && fundId == that.fundId && fundProId == that.fundProId && Objects.equals(fundName, that.fundName) && Objects.equals(fundType, that.fundType) && Objects.equals(orgType, that.orgType) && Objects.equals(businessType, that.businessType) && Objects.equals(systermType, that.systermType) && Objects.equals(basicRule, that.basicRule) && Objects.equals(ruleList, that.ruleList) && Objects.equals(enable, that.enable) && Objects.equals(createdAt, that.createdAt) && Objects.equals(updatedAt, that.updatedAt);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash(id, fundId, fundProId, fundName, fundType, orgType, businessType, systermType, basicRule, otherRule, ruleList, enable, createdAt, updatedAt); return Objects.hash(id, fundId, fundProId, fundName, fundType, orgType, businessType, systermType, basicRule, ruleList, enable, createdAt, updatedAt);
} }
} }
...@@ -6,16 +6,17 @@ import java.util.Objects; ...@@ -6,16 +6,17 @@ import java.util.Objects;
/** /**
* @author shihuajun * @author shihuajun
* @date 2021/8/26 17:57 * @date 2021/8/30 17:34
* @ describing * @ describing
*/ */
@Entity @Entity
@Table(name = "product_rule", schema = "asset-distribution") @Table(name = "product_rule", schema = "asset-distribution", catalog = "")
public class ProductRuleEntity { public class ProductRuleEntity {
private long id; private long id;
private String ruleName; private String ruleName;
private String ruleEnglish; private String ruleVal;
private String ruleChinese; private String ruleChinese;
private String textType;
private Byte enable; private Byte enable;
private Timestamp createdAt; private Timestamp createdAt;
private Timestamp updatedAt; private Timestamp updatedAt;
...@@ -41,13 +42,13 @@ public class ProductRuleEntity { ...@@ -41,13 +42,13 @@ public class ProductRuleEntity {
} }
@Basic @Basic
@Column(name = "rule_english", nullable = false, length = 50) @Column(name = "rule_val", nullable = false, length = 50)
public String getRuleEnglish() { public String getRuleVal() {
return ruleEnglish; return ruleVal;
} }
public void setRuleEnglish(String ruleEnglish) { public void setRuleVal(String ruleVal) {
this.ruleEnglish = ruleEnglish; this.ruleVal = ruleVal;
} }
@Basic @Basic
...@@ -60,6 +61,16 @@ public class ProductRuleEntity { ...@@ -60,6 +61,16 @@ public class ProductRuleEntity {
this.ruleChinese = ruleChinese; this.ruleChinese = ruleChinese;
} }
@Basic
@Column(name = "text_type", nullable = true, length = 50)
public String getTextType() {
return textType;
}
public void setTextType(String textType) {
this.textType = textType;
}
@Basic @Basic
@Column(name = "enable", nullable = true) @Column(name = "enable", nullable = true)
public Byte getEnable() { public Byte getEnable() {
...@@ -92,18 +103,14 @@ public class ProductRuleEntity { ...@@ -92,18 +103,14 @@ public class ProductRuleEntity {
@Override @Override
public boolean equals(Object o) { public boolean equals(Object o) {
if (this == o) { if (this == o) return true;
return true; if (o == null || getClass() != o.getClass()) return false;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ProductRuleEntity that = (ProductRuleEntity) o; ProductRuleEntity that = (ProductRuleEntity) o;
return id == that.id && Objects.equals(ruleName, that.ruleName) && Objects.equals(ruleEnglish, that.ruleEnglish) && Objects.equals(ruleChinese, that.ruleChinese) && Objects.equals(enable, that.enable) && Objects.equals(createdAt, that.createdAt) && Objects.equals(updatedAt, that.updatedAt); return id == that.id && Objects.equals(ruleName, that.ruleName) && Objects.equals(ruleVal, that.ruleVal) && Objects.equals(ruleChinese, that.ruleChinese) && Objects.equals(textType, that.textType) && Objects.equals(enable, that.enable) && Objects.equals(createdAt, that.createdAt) && Objects.equals(updatedAt, that.updatedAt);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash(id, ruleName, ruleEnglish, ruleChinese, enable, createdAt, updatedAt); return Objects.hash(id, ruleName, ruleVal, ruleChinese, textType, enable, createdAt, updatedAt);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment