| | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.core.text.Convert; |
| | | import com.ruoyi.common.utils.ServletUtils; |
| | | import com.ruoyi.domain.Archiverecordstouser; |
| | | import com.ruoyi.service.IArchiverecordstouserService; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | |
| | | import static com.ruoyi.common.core.page.TableSupport.PAGE_NUM; |
| | | import static com.ruoyi.common.core.page.TableSupport.PAGE_SIZE; |
| | | |
| | | /** |
| | | * 【请填写功能名称】Controller |
| | | * |
| | |
| | | @Autowired |
| | | private IArchiverecordstouserService archiverecordstouserService; |
| | | |
| | | |
| | | @PreAuthorize("@ss.hasPermi('system:archiverecordstouser:edit')") |
| | | |
| | | @PutMapping("/authUserToArchive") |
| | | public AjaxResult selectRecordToUser(String recordId, Long[] userIds) |
| | | { |
| | | return toAjax(archiverecordstouserService.insertRecordToUsers(recordId, userIds)); |
| | | } |
| | | /** |
| | | * 查询【请填写功能名称】列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:archiverecordstouser:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(Archiverecordstouser archiverecordstouser) |
| | | public AjaxResult list(Archiverecordstouser archiverecordstouser) |
| | | { |
| | | startPage(); |
| | | List<Archiverecordstouser> list = archiverecordstouserService.selectArchiverecordstouserList(archiverecordstouser); |
| | | return getDataTable(list); |
| | | Integer pageNum = Convert.toInt(ServletUtils.getParameter(PAGE_NUM), 1); |
| | | Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); |
| | | return archiverecordstouserService.selectDataList(archiverecordstouser, pageNum, pageSize); |
| | | |
| | | } |
| | | |
| | | /** |