|
|
@@ -1,5 +1,6 @@ |
|
|
|
package com.iformall.domain.po.yqzj; |
|
|
|
|
|
|
|
import com.aliyun.openservices.shade.org.apache.commons.lang3.StringUtils; |
|
|
|
import com.baomidou.mybatisplus.annotation.TableField; |
|
|
|
import com.baomidou.mybatisplus.annotation.TableName; |
|
|
|
import com.iformall.domain.po.base.TenantEntity; |
|
|
@@ -9,6 +10,9 @@ import lombok.ToString; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import org.jsoup.Jsoup; |
|
|
|
import org.jsoup.nodes.Document; |
|
|
|
|
|
|
|
@TableName(value = "yqzj_news") |
|
|
|
@Data |
|
|
|
@ToString(callSuper = true) |
|
|
@@ -33,6 +37,8 @@ public class YqzjNews extends TenantEntity { |
|
|
|
private String subTitle; |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="",name="detail") |
|
|
|
private String detail; |
|
|
|
@TableField(exist = false) |
|
|
|
private String detailText; |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="封面图",name="image") |
|
|
|
private String image; |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="视频地址",name="video") |
|
|
@@ -56,5 +62,13 @@ public class YqzjNews extends TenantEntity { |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="是否置顶EnumYesOrNo",name="updateDate") |
|
|
|
private Integer first; |
|
|
|
|
|
|
|
|
|
|
|
public String getDetailText() { |
|
|
|
if (StringUtils.isNotBlank(detail)) { |
|
|
|
Document document = Jsoup.parse(detail); |
|
|
|
if (null != document) { |
|
|
|
return document.text(); |
|
|
|
} |
|
|
|
} |
|
|
|
return ""; |
|
|
|
} |
|
|
|
} |