Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tanpu-community
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
探普后端
tanpu-community
Commits
03101543
Commit
03101543
authored
Jun 18, 2021
by
刘基明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
topic表添加字段
parent
d94a0dfb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
5 deletions
+19
-5
CodeAutoGenerator.java
.../main/java/com/tanpu/community/dao/CodeAutoGenerator.java
+1
-1
TopicEntity.java
...com/tanpu/community/dao/entity/community/TopicEntity.java
+16
-3
TopicMapper.java
...com/tanpu/community/dao/mapper/community/TopicMapper.java
+1
-1
create.sql
docs/create.sql
+1
-0
No files found.
community-service/src/main/java/com/tanpu/community/dao/CodeAutoGenerator.java
View file @
03101543
...
...
@@ -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"
;
...
...
community-service/src/main/java/com/tanpu/community/dao/entity/community/TopicEntity.java
View file @
03101543
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-1
0
* @since 2021-06-1
8
*/
@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
+
...
...
community-service/src/main/java/com/tanpu/community/dao/mapper/community/TopicMapper.java
View file @
03101543
...
...
@@ -9,7 +9,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* </p>
*
* @author xudong
* @since 2021-06-1
0
* @since 2021-06-1
8
*/
public
interface
TopicMapper
extends
BaseMapper
<
TopicEntity
>
{
...
...
docs/create.sql
View file @
03101543
...
...
@@ -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
''
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment