From e57e32fc43da31917912eebb4e47d4e50df1a9e9 Mon Sep 17 00:00:00 2001
From: shiyj1101 <1098226878@qq.com>
Date: 星期四, 05 八月 2021 22:56:15 +0800
Subject: [PATCH] 完善格式化功能
---
java110-bean/src/main/java/com/java110/dto/fee/FeeAttrDto.java | 86 ++++++++++++++++++++++++++++++++++++------
1 files changed, 73 insertions(+), 13 deletions(-)
diff --git a/java110-bean/src/main/java/com/java110/dto/fee/FeeAttrDto.java b/java110-bean/src/main/java/com/java110/dto/fee/FeeAttrDto.java
old mode 100644
new mode 100755
index 6fb934c..d0865be
--- a/java110-bean/src/main/java/com/java110/dto/fee/FeeAttrDto.java
+++ b/java110-bean/src/main/java/com/java110/dto/fee/FeeAttrDto.java
@@ -4,6 +4,7 @@
import java.io.Serializable;
import java.util.Date;
+import java.util.List;
/**
* @ClassName FloorDto
@@ -15,11 +16,51 @@
**/
public class FeeAttrDto extends PageDto implements Serializable {
+ public static final String SPEC_CD_REPAIR = "390001"; // 鎶ヤ慨鍗旾D
+
+ public static final String SPEC_CD_IMPORT_FEE_NAME = "390002";//瀵煎叆璐圭敤鍚嶇О
+
+ public static final String SPEC_CD_SHARE_DEGREES = "390003";//鍏憡鐢ㄩ噺
+ public static final String SPEC_CD_TOTAL_DEGREES = "390004";//鍏憡鎬荤敤閲�
+ public static final String SPEC_CD_SHARE_FORMULA = "390005";//鍏憡鍏紡
+ public static final String SPEC_CD_PROXY_CONSUMPTION = "390006";//鐢ㄩ噺
+ public static final String SPEC_CD_ONCE_FEE_DEADLINE_TIME = "390010";// 鎴鏃堕棿
+ public static final String SPEC_CD_OWNER_ID = "390007";//涓氫富ID
+ public static final String SPEC_CD_OWNER_NAME = "390008";//涓氫富鍚嶇О
+ public static final String SPEC_CD_OWNER_LINK = "390009";//涓氫富鑱旂郴鏂瑰紡
+
private String attrId;
-private String specCd;
-private String communityId;
-private String feeId;
-private String value;
+ private String specCd;
+ private String specCdName;
+ private String communityId;
+ private String feeId;
+ private String value;
+
+ public static String getFeeAttrValue(FeeDto feeDto, String specCd) {
+ List<FeeAttrDto> feeAttrDtos = feeDto.getFeeAttrDtos();
+ FeeAttrDto feeAttrDto = getFeeAttr(feeAttrDtos, specCd);
+ if (feeAttrDto == null) {
+ return "";
+ }
+ return feeAttrDto.getValue();
+ }
+
+ public static FeeAttrDto getFeeAttr(FeeDto feeDto, String specCd) {
+ List<FeeAttrDto> feeAttrDtos = feeDto.getFeeAttrDtos();
+ return getFeeAttr(feeAttrDtos, specCd);
+ }
+
+ public static FeeAttrDto getFeeAttr(List<FeeAttrDto> feeAttrDtos, String specCd) {
+ if (feeAttrDtos == null || feeAttrDtos.size() < 1) {
+ return null;
+ }
+ for (FeeAttrDto feeAttrDto : feeAttrDtos) {
+ if (specCd.equals(feeAttrDto.getSpecCd())) {
+ return feeAttrDto;
+ }
+ }
+ return null;
+ }
private Date createTime;
@@ -30,31 +71,40 @@
public String getAttrId() {
return attrId;
}
-public void setAttrId(String attrId) {
+
+ public void setAttrId(String attrId) {
this.attrId = attrId;
}
-public String getSpecCd() {
+
+ public String getSpecCd() {
return specCd;
}
-public void setSpecCd(String specCd) {
+
+ public void setSpecCd(String specCd) {
this.specCd = specCd;
}
-public String getCommunityId() {
+
+ public String getCommunityId() {
return communityId;
}
-public void setCommunityId(String communityId) {
+
+ public void setCommunityId(String communityId) {
this.communityId = communityId;
}
-public String getFeeId() {
+
+ public String getFeeId() {
return feeId;
}
-public void setFeeId(String feeId) {
+
+ public void setFeeId(String feeId) {
this.feeId = feeId;
}
-public String getValue() {
+
+ public String getValue() {
return value;
}
-public void setValue(String value) {
+
+ public void setValue(String value) {
this.value = value;
}
@@ -74,4 +124,14 @@
public void setStatusCd(String statusCd) {
this.statusCd = statusCd;
}
+
+ public String getSpecCdName() {
+ return specCdName;
+ }
+
+ public void setSpecCdName(String specCdName) {
+ this.specCdName = specCdName;
+ }
+
+
}
--
Gitblit v1.8.0