|
@@ -1,10 +1,13 @@
|
|
|
package com.ruoyi.equity.domain;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
+import java.util.Objects;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
+import com.ruoyi.common.utils.CommonUtils;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.*;
|
|
@@ -21,7 +24,8 @@ import org.springframework.stereotype.Component;
|
|
|
* @date 2025-03-03
|
|
|
*/
|
|
|
|
|
|
-
|
|
|
+@AllArgsConstructor
|
|
|
+@NoArgsConstructor
|
|
|
@EqualsAndHashCode(callSuper = true)
|
|
|
@ApiModel(value = "ShareholderEntity", description = "股东实体")
|
|
|
@Data
|
|
@@ -78,55 +82,17 @@ public class ShareholderInfo extends BaseEntity
|
|
|
@ApiModelProperty("节点类型1控制主体2主体控制")
|
|
|
private Long nodeType;
|
|
|
|
|
|
- public void setShareholderId(Long shareholderId)
|
|
|
- {
|
|
|
- this.shareholderId = shareholderId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setParentId(Long parentId)
|
|
|
- {
|
|
|
- this.parentId = parentId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setAncestors(String ancestors)
|
|
|
- {
|
|
|
- this.ancestors = ancestors;
|
|
|
+ @ApiModelProperty(value = "公司估值转换后")
|
|
|
+ @JsonProperty("companyValuationValue")
|
|
|
+ public String getCompanyValuationValue(){
|
|
|
+ if (Objects.isNull(companyValuation)){
|
|
|
+ return null;
|
|
|
+ }else {
|
|
|
+ return CommonUtils.changeBigDecimalUnit(companyValuation);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
- public void setShareholderName(String shareholderName)
|
|
|
- {
|
|
|
- this.shareholderName = shareholderName;
|
|
|
- }
|
|
|
|
|
|
- public void setShareholderType(String shareholderType)
|
|
|
- {
|
|
|
- this.shareholderType = shareholderType;
|
|
|
- }
|
|
|
-
|
|
|
- public void setShareholdingRatio(BigDecimal shareholdingRatio)
|
|
|
- {
|
|
|
- this.shareholdingRatio = shareholdingRatio;
|
|
|
- }
|
|
|
-
|
|
|
- public void setControlledCompany(Long controlledCompany)
|
|
|
- {
|
|
|
- this.controlledCompany = controlledCompany;
|
|
|
- }
|
|
|
-
|
|
|
- public void setCompanyValuation(BigDecimal companyValuation)
|
|
|
- {
|
|
|
- this.companyValuation = companyValuation;
|
|
|
- }
|
|
|
-
|
|
|
- public void setIsSubject(Long isSubject)
|
|
|
- {
|
|
|
- this.isSubject = isSubject;
|
|
|
- }
|
|
|
-
|
|
|
- public void setNodeType(Long nodeType)
|
|
|
- {
|
|
|
- this.nodeType = nodeType;
|
|
|
- }
|
|
|
|
|
|
@Override
|
|
|
public String toString() {
|
|
@@ -149,19 +115,5 @@ public class ShareholderInfo extends BaseEntity
|
|
|
.toString();
|
|
|
}
|
|
|
|
|
|
- public ShareholderInfo() {
|
|
|
- }
|
|
|
|
|
|
- public ShareholderInfo(Long shareholderId, Long parentId, String ancestors, String shareholderName, String shareholderType, BigDecimal shareholdingRatio, Long controlledCompany, BigDecimal companyValuation, Long isSubject, Long nodeType) {
|
|
|
- this.shareholderId = shareholderId;
|
|
|
- this.parentId = parentId;
|
|
|
- this.ancestors = ancestors;
|
|
|
- this.shareholderName = shareholderName;
|
|
|
- this.shareholderType = shareholderType;
|
|
|
- this.shareholdingRatio = shareholdingRatio;
|
|
|
- this.controlledCompany = controlledCompany;
|
|
|
- this.companyValuation = companyValuation;
|
|
|
- this.isSubject = isSubject;
|
|
|
- this.nodeType = nodeType;
|
|
|
- }
|
|
|
}
|