Commit 03101543 authored by 刘基明's avatar 刘基明

topic表添加字段

parent d94a0dfb
......@@ -22,7 +22,7 @@ public class CodeAutoGenerator {
String mysqlUserName = "tamp_admin";
String mysqlPassword = "@imeng123";
String jdbcUrl = "jdbc:mysql://rm-uf6r22t3d798q4kmkao.mysql.rds.aliyuncs.com:3306/tamp_community";
String[] tables = new String[]{"file_record"};
String[] tables = new String[]{"topic"};
// String[] tables = new String[]{"visit_summary", "black_list","collection","comment","fans_rel","file_record","home_page","theme","topic"};
String basePackage = "com.tanpu.community";
String mapperPackage = "dao.mapper.community";
......
package com.tanpu.community.dao.entity.community;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 话题
* </p>
*
* @author xudong
* @since 2021-06-10
* @since 2021-06-18
*/
@TableName("topic")
@ApiModel(value="TopicEntity对象", description="话题")
......@@ -32,6 +33,9 @@ public class TopicEntity implements Serializable {
@ApiModelProperty(value = "是否隐藏")
private Integer isConceal;
@ApiModelProperty(value = "浏览量调整")
private Long viewAmountModify;
private String createBy;
private LocalDateTime createTime;
......@@ -75,6 +79,14 @@ public class TopicEntity implements Serializable {
this.isConceal = isConceal;
}
public Long getViewAmountModify() {
return viewAmountModify;
}
public void setViewAmountModify(Long viewAmountModify) {
this.viewAmountModify = viewAmountModify;
}
public String getCreateBy() {
return createBy;
}
......@@ -122,6 +134,7 @@ public class TopicEntity implements Serializable {
", topicTitle=" + topicTitle +
", isTop=" + isTop +
", isConceal=" + isConceal +
", viewAmountModify=" + viewAmountModify +
", createBy=" + createBy +
", createTime=" + createTime +
", updateBy=" + updateBy +
......
......@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author xudong
* @since 2021-06-10
* @since 2021-06-18
*/
public interface TopicMapper extends BaseMapper<TopicEntity> {
......
......@@ -85,6 +85,7 @@ CREATE TABLE `topic` (
`topic_title` varchar(64) NOT NULL COMMENT '话题名称',
`is_top` int(4) NOT NULL COMMENT '是否置顶',
`is_conceal` int(4) NOT NULL COMMENT '是否隐藏',
`view_amount_modify` bigint NOT NULL DEFAULT 0 COMMENT '浏览量调整',
`create_by` varchar(64) DEFAULT '',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`update_by` varchar(64) DEFAULT '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment