| | |
| | | } |
| | | |
| | | @Override |
| | | public int updateArchiveById(String status, Long id) { |
| | | public int updateArchiveById(String status, Long id, String operator) { |
| | | LocalDateTime time = LocalDateTime.now(); |
| | | |
| | | Date date = Date.from(time.atZone(ZoneId.systemDefault()).toInstant()); |
| | | // 获取当前用户ID |
| | | Long userId = SecurityUtils.getUserId(); |
| | | // 可以在这里使用userId进行授权操作 |
| | | archiverecordstouserService.deleteArchiverecordstouserByRecordId(id, userId); |
| | | if(operator.equals("退回管理员")) |
| | | archiverecordstouserService.deleteArchiverecordstouserByRecordId(id, userId); |
| | | this.baseMapper.updateStatusById(status, id, date); |
| | | return 0; |
| | | } |