Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,12 @@ public enum ExceptionEnum implements IBaseError {
/**
* Cm 345 exception enum.
*/
CM345("CM345", "用户名不存在,请重新输入"),;
CM345("CM345", "用户名不存在,请重新输入"),
/**
* Cm 346 exception enum.
*/
CM346("CM346", "当前区块已被其他用户锁定");
;
/**
* 错误码
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public Result<BlockDto> updateBlockById(BlockParam blockParam) {
return Result.failed(ExceptionEnum.CM001);
}
if (!Objects.equals(blockResult.getOccupierBy(), loginUserContext.getLoginUserId())) {
return Result.failed(ExceptionEnum.CM007);
return Result.failed(ExceptionEnum.CM346);
}
// 把前端传参赋值给实体
Block blocks = new Block();
Expand Down
Loading