Commit 161ff338 161ff338d4fbcea0a572f7b752322631609a6a95 by xianghan

1.取消自定义id,让id自增

1 parent 2d8af089
......@@ -24,6 +24,7 @@ import java.io.Serializable;
public class GrowthReport implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
private Long id;
......
......@@ -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);
}
......