Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
liyeyun-user-web
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cfld-backend
liyeyun-user-web
Commits
b03cdeb3
Commit
b03cdeb3
authored
Nov 24, 2023
by
zhouxudong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加公共配置
parent
c38b4a00
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
19 deletions
+64
-19
BaseEntity.java
src/main/java/com/lyy/user/domain/BaseEntity.java
+60
-0
SysSmsLogEntity.java
...va/com/lyy/user/moudle/smslog/entity/SysSmsLogEntity.java
+4
-19
No files found.
src/main/java/com/lyy/user/domain/BaseEntity.java
0 → 100644
View file @
b03cdeb3
package
com
.
lyy
.
user
.
domain
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.Version
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
lombok.*
;
import
java.io.Serializable
;
import
java.time.LocalDateTime
;
/**
* @Author:zhouxudong
* @version: 1.0
* @Date: 2023/11/23 16:57
* @Description:
*/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public
abstract
class
BaseEntity
extends
Model
implements
Serializable
{
@TableId
protected
Long
id
;
@TableField
(
value
=
"create_by"
,
fill
=
FieldFill
.
INSERT
)
protected
String
createBy
;
@TableField
(
value
=
"create_time"
,
fill
=
FieldFill
.
INSERT
)
protected
LocalDateTime
createTime
;
@TableField
(
value
=
"update_by"
,
fill
=
FieldFill
.
INSERT_UPDATE
)
protected
String
updateBy
;
@TableField
(
value
=
"update_time"
,
fill
=
FieldFill
.
INSERT_UPDATE
)
protected
LocalDateTime
updateTime
;
@Version
@TableField
(
value
=
"version"
,
fill
=
FieldFill
.
INSERT
)
protected
Integer
version
;
public
Serializable
pkVal
()
{
return
this
.
id
;
}
}
src/main/java/com/lyy/user/moudle/smslog/entity/SysSmsLogEntity.java
View file @
b03cdeb3
package
com
.
lyy
.
user
.
moudle
.
smslog
.
entity
;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.lyy.user.domain.BaseEntity
;
import
lombok.*
;
import
lombok.experimental.Accessors
;
...
...
@@ -21,9 +22,8 @@ import java.util.Date;
@NoArgsConstructor
@ToString
@Accessors
(
chain
=
true
)
public
class
SysSmsLogEntity
implements
Serializable
{
/** 主键id */
@TableId
private
Long
id
;
public
class
SysSmsLogEntity
extends
BaseEntity
{
/** 返回标识符 */
private
String
code
;
/** 返回字段描述 */
...
...
@@ -34,20 +34,5 @@ public class SysSmsLogEntity implements Serializable {
private
String
type
;
private
String
phone
;
/** 乐观锁 */
@Version
@TableField
(
value
=
"version"
,
fill
=
FieldFill
.
INSERT
)
private
Integer
version
;
/** 创建人 */
@TableField
(
value
=
"create_by"
,
fill
=
FieldFill
.
INSERT
)
private
String
createBy
;
/** 创建时间 */
@TableField
(
value
=
"create_time"
,
fill
=
FieldFill
.
INSERT
)
private
LocalDateTime
createTime
;
/** 更新人 */
@TableField
(
value
=
"update_by"
,
fill
=
FieldFill
.
UPDATE
)
private
String
updateBy
;
/** 更新时间 */
@TableField
(
value
=
"update_time"
,
fill
=
FieldFill
.
UPDATE
)
private
LocalDateTime
updateTime
;
}
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