|
@@ -8,12 +8,19 @@ import java.util.Date;
|
|
|
@Data
|
|
@Data
|
|
|
@TableName("open_website")
|
|
@TableName("open_website")
|
|
|
public class OpenWebsite {
|
|
public class OpenWebsite {
|
|
|
- private Long id;
|
|
|
|
|
- private String title;
|
|
|
|
|
- private String url;
|
|
|
|
|
- private String remark;
|
|
|
|
|
- private Long createdBy;
|
|
|
|
|
- private Date createdTime;
|
|
|
|
|
- private Long updatedBy;
|
|
|
|
|
- private Date updatedTime;
|
|
|
|
|
|
|
+ private Long id;
|
|
|
|
|
+ private String title;
|
|
|
|
|
+ private String url;
|
|
|
|
|
+ private String remark;
|
|
|
|
|
+ private Long createdBy;
|
|
|
|
|
+ private Date createdTime;
|
|
|
|
|
+ private Long updatedBy;
|
|
|
|
|
+ private Date updatedTime;
|
|
|
|
|
+
|
|
|
|
|
+ public String getUrl() {
|
|
|
|
|
+ if (!url.startsWith("http")) {
|
|
|
|
|
+ url = "http://" + url;
|
|
|
|
|
+ }
|
|
|
|
|
+ return url;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|