From c9d9a680d60722048fec46019b4a7ca36f821c58 Mon Sep 17 00:00:00 2001 From: fangyuan <527392886@qq.com> Date: 星期五, 18 十一月 2022 11:06:44 +0800 Subject: [PATCH] 资讯相关接口,栏目相关接口2 --- ycl-platform/src/main/java/com/ycl/entity/NewsPolice.java | 35 +++++++++++++++++++++++++---------- 1 files changed, 25 insertions(+), 10 deletions(-) diff --git a/ycl-platform/src/main/java/com/ycl/entity/NewsPolice.java b/ycl-platform/src/main/java/com/ycl/entity/NewsPolice.java index e111570..76c16e4 100644 --- a/ycl-platform/src/main/java/com/ycl/entity/NewsPolice.java +++ b/ycl-platform/src/main/java/com/ycl/entity/NewsPolice.java @@ -2,34 +2,41 @@ import com.baomidou.mybatisplus.extension.activerecord.Model; +import com.fasterxml.jackson.annotation.JsonFormat; + import java.io.Serializable; +import java.sql.Date; /** * 璀﹀憳琛� (NewsPolice)琛ㄥ疄浣撶被 * * @author makejava - * @since 2022-11-17 11:12:42 + * @since 2022-11-17 11:38:27 */ @SuppressWarnings("serial") public class NewsPolice extends Model<NewsPolice> { //鑷涓婚敭 - private Object id; + private Integer id; //璀﹀憳鍚嶇О private String rname; //鍒涘缓鏃堕棿 + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date createTime; + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //淇敼鏃堕棿 private Date updateTime; - //鏈烘瀯鍚嶇О - private String organizationName; + //鏈烘瀯id + private String newsDepartmentId; + //鎵嬫満鍙风爜 + private String phone; - public Object getId() { + public Integer getId() { return id; } - public void setId(Object id) { + public void setId(Integer id) { this.id = id; } @@ -57,12 +64,20 @@ this.updateTime = updateTime; } - public String getOrganizationName() { - return organizationName; + public String getNewsDepartmentId() { + return newsDepartmentId; } - public void setOrganizationName(String organizationName) { - this.organizationName = organizationName; + public void setNewsDepartmentId(String newsDepartmentId) { + this.newsDepartmentId = newsDepartmentId; + } + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; } /** -- Gitblit v1.8.0