fix(缺陷管理): 删除及恢复操作缺少变更历史

This commit is contained in:
song-cc-rock 2024-04-22 20:06:27 +08:00 committed by Craftsman
parent 2c486bafaf
commit f6df830ce4
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,7 @@ public class BugLogService {
Bug bug = bugMapper.selectByPrimaryKey(id);
if (bug != null) {
LogDTO dto = new LogDTO(bug.getProjectId(), null, bug.getId(), null, OperationLogType.DELETE.name(), OperationLogModule.BUG_MANAGEMENT_INDEX, bug.getTitle());
dto.setHistory(true);
dto.setPath("/bug/delete");
dto.setMethod(HttpMethodConstants.GET.name());
dto.setOriginalValue(JSON.toJSONBytes(bug));
@ -93,6 +94,7 @@ public class BugLogService {
Bug bug = bugMapper.selectByPrimaryKey(id);
if (bug != null) {
LogDTO dto = new LogDTO(bug.getProjectId(), null, bug.getId(), null, OperationLogType.RECOVER.name(), OperationLogModule.BUG_MANAGEMENT_RECYCLE, bug.getTitle());
dto.setHistory(true);
dto.setPath("/bug/trash/recover");
dto.setMethod(HttpMethodConstants.GET.name());
dto.setOriginalValue(JSON.toJSONBytes(bug));