Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
向汉
/
uc-engine
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
161ff338
...
161ff338d4fbcea0a572f7b752322631609a6a95
authored
2022-09-08 20:34:20 +0800
by
xianghan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.取消自定义id,让id自增
1 parent
2d8af089
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
member-service-impl/src/main/java/com/topdraw/business/module/user/iptv/growreport/domain/GrowthReport.java
member-service-impl/src/main/java/com/topdraw/business/module/user/iptv/growreport/service/impl/GrowthReportServiceImpl.java
member-service-impl/src/main/java/com/topdraw/business/module/user/iptv/growreport/domain/GrowthReport.java
View file @
161ff33
...
...
@@ -24,6 +24,7 @@ import java.io.Serializable;
public
class
GrowthReport
implements
Serializable
{
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
@Column
(
name
=
"id"
)
private
Long
id
;
...
...
member-service-impl/src/main/java/com/topdraw/business/module/user/iptv/growreport/service/impl/GrowthReportServiceImpl.java
View file @
161ff33
...
...
@@ -41,8 +41,8 @@ public class GrowthReportServiceImpl implements GrowthReportService {
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
create
(
GrowthReport
resources
)
{
Snowflake
snowflake
=
IdUtil
.
createSnowflake
(
1
,
1
);
resources
.
setId
(
snowflake
.
nextId
());
/*
Snowflake snowflake = IdUtil.createSnowflake(1, 1);
resources.setId(snowflake.nextId());
*/
this
.
growthReportRepository
.
save
(
resources
);
}
...
...
Please
register
or
sign in
to post a comment