|
@@ -2,6 +2,7 @@ package thyyxxk.webserver.entity.datamodify;
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
|
import lombok.Data;
|
|
|
+import thyyxxk.webserver.utils.StringUtil;
|
|
|
|
|
|
@Data
|
|
|
public class GetDropdownBox {
|
|
@@ -26,11 +27,39 @@ public class GetDropdownBox {
|
|
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
|
|
private String parentCode;
|
|
|
|
|
|
+ public String getCode() {
|
|
|
+ if (StringUtil.isBlank(code)) {
|
|
|
+ return code;
|
|
|
+ }
|
|
|
+ return code.trim();
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getName() {
|
|
|
+ if (StringUtil.isBlank(name)) {
|
|
|
+ return name;
|
|
|
+ }
|
|
|
+ return name.trim();
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getPyCode() {
|
|
|
+ if (StringUtil.isBlank(pyCode)) {
|
|
|
+ return pyCode;
|
|
|
+ }
|
|
|
+ return pyCode.trim();
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getWCode() {
|
|
|
+ if (StringUtil.isBlank(wCode)) {
|
|
|
+ return wCode;
|
|
|
+ }
|
|
|
+ return wCode.trim();
|
|
|
+ }
|
|
|
+
|
|
|
public String getValue() {
|
|
|
- return code;
|
|
|
+ return getCode();
|
|
|
}
|
|
|
|
|
|
public String getLabel() {
|
|
|
- return name;
|
|
|
+ return getName();
|
|
|
}
|
|
|
}
|