fangyuan
2022-11-18 c9d9a680d60722048fec46019b4a7ca36f821c58
ycl-platform/src/main/java/com/ycl/entity/NewsPolice.java
@@ -1,79 +1,93 @@
package com.ycl.entity;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDate;
/**
 * 警员表
(NewsPolice)表实体类
 *
 * @author makejava
 * @since 2022-11-16 16:52:30
 */
@SuppressWarnings("serial")
public class NewsPolice extends Model<NewsPolice> {
    //自增主键
    private Integer id;
    //警员名称
    private String rname;
    //创建时间
    private LocalDate createTime;
    //修改时间
    private LocalDate updateTime;
    //机构名称
    private String organizationName;
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getRname() {
        return rname;
    }
    public void setRname(String rname) {
        this.rname = rname;
    }
    public LocalDate getCreateTime() {
        return createTime;
    }
    public void setCreateTime(LocalDate createTime) {
        this.createTime = createTime;
    }
    public LocalDate getUpdateTime() {
        return updateTime;
    }
    public void setUpdateTime(LocalDate updateTime) {
        this.updateTime = updateTime;
    }
    public String getOrganizationName() {
        return organizationName;
    }
    public void setOrganizationName(String organizationName) {
        this.organizationName = organizationName;
    }
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }
package com.ycl.entity;
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:38:27
 */
@SuppressWarnings("serial")
public class NewsPolice extends Model<NewsPolice> {
    //自增主键
    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;
    //机构id
    private String newsDepartmentId;
    //手机号码
    private String phone;
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getRname() {
        return rname;
    }
    public void setRname(String rname) {
        this.rname = rname;
    }
    public Date getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Date getUpdateTime() {
        return updateTime;
    }
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    public String getNewsDepartmentId() {
        return newsDepartmentId;
    }
    public void setNewsDepartmentId(String newsDepartmentId) {
        this.newsDepartmentId = newsDepartmentId;
    }
    public String getPhone() {
        return phone;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }