Skip to content

Commit

Permalink
[Bug] [dinky-admin] Fix the issue of primary key generation strategy … (
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyuhang authored and zackyoungh committed Nov 6, 2024
1 parent ccdb11c commit 216d064
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
@AllArgsConstructor
public class Resources extends Model<Resources> {

@TableId(type = IdType.ASSIGN_ID)
@TableId(type = IdType.AUTO)
@ApiModelProperty(value = "ID", dataType = "Integer", example = "1", notes = "Unique identifier for the resource")
private Integer id;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ public boolean syncRemoteDirectoryStructure() {
x.setType(resources.getType());
x.setUserId(resources.getUserId());
}
x.setId(Math.abs(x.getId()));
x.setPid(Math.abs(x.getPid()));
})
.collect(Collectors.toList());
// not delete root directory
Expand Down

0 comments on commit 216d064

Please sign in to comment.