| | |
| | | @Autowired |
| | | private IArchiverecordstouserService archiverecordstouserService; |
| | | |
| | | @PreAuthorize("@ss.hasPermi('system:archiverecordstouser:edit')") |
| | | |
| | | @PutMapping("/authArchivesToSigleUser") |
| | | public AjaxResult insertArchivesToSingleUser(Long[] recordIds, Long[] userIds) |
| | | { |
| | | for(Long recordId: recordIds) |
| | | { |
| | | //判断是否授权给别人了 |
| | | if(archiverecordstouserService.selectArchiveRecordUsers(recordId)) |
| | | continue; |
| | | archiverecordstouserService.insertRecordToUsers(recordId, userIds); |
| | | } |
| | | return toAjax(200); |
| | | |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermi('system:archiverecordstouser:edit')") |
| | | |