提交 d716ba06 作者: 刘明祎-运维用途

添加字段

上级 659b12ef
...@@ -37,4 +37,6 @@ public class IndustryNewsDTO implements Serializable { ...@@ -37,4 +37,6 @@ public class IndustryNewsDTO implements Serializable {
private Date createTime; private Date createTime;
@ApiModelProperty(value = "最新修改时间") @ApiModelProperty(value = "最新修改时间")
private Date updateTime; private Date updateTime;
@ApiModelProperty(value = "是否是热点新闻")
private Integer isHot;
} }
...@@ -36,7 +36,7 @@ public class IndustryNewsDO implements Serializable { ...@@ -36,7 +36,7 @@ public class IndustryNewsDO implements Serializable {
private Integer isHot; private Integer isHot;
public IndustryNewsDTO buildIndustryNewsDTO(){ public IndustryNewsDTO buildIndustryNewsDTO(){
return IndustryNewsDTO.builder().id(id).newsTitle(newsTitle).newsAuthor(newsAuthor).userAccountId(userAccountId).surfaceImg(surfaceImg). return IndustryNewsDTO.builder().id(id).newsTitle(newsTitle).newsAuthor(newsAuthor).userAccountId(userAccountId).surfaceImg(surfaceImg).
newsContents(newsContents).createTime(createTime).updateTime(updateTime).origin(origin).build(); newsContents(newsContents).isHot(isHot).createTime(createTime).updateTime(updateTime).origin(origin).build();
} }
public IndustryNewsDO(Integer id, String newsTitle, String newsAuthor, Integer userAccountId, String surfaceImg, String newsContents, String origin, Integer isHot) { public IndustryNewsDO(Integer id, String newsTitle, String newsAuthor, Integer userAccountId, String surfaceImg, String newsContents, String origin, Integer isHot) {
......
...@@ -59,7 +59,8 @@ ...@@ -59,7 +59,8 @@
news_contents, news_contents,
origin, origin,
create_time, create_time,
update_time update_time,
is_hot
from industry_news from industry_news
where is_deleted = 0 where is_deleted = 0
and id = #{id} and id = #{id}
...@@ -152,7 +153,8 @@ ...@@ -152,7 +153,8 @@
news_contents, news_contents,
origin, origin,
create_time, create_time,
update_time update_time,
is_hot
from industry_news from industry_news
<where> <where>
is_deleted = 0 is_deleted = 0
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论