|
@@ -33,6 +33,7 @@ public class PoCollectionController extends BaseController {
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('system:collection:list')")
|
|
|
@GetMapping("/list")
|
|
|
+ @ApiOperation("藏品列表 查询和搜索")
|
|
|
public TableDataInfo list(PoCollection poCollection)
|
|
|
{
|
|
|
startPage();
|
|
@@ -41,15 +42,16 @@ public class PoCollectionController extends BaseController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获取藏品列表
|
|
|
+ * 导出藏品列表
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('system:collection:export')")
|
|
|
@Log(title = "获取藏品列表", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/export")
|
|
|
+ @ApiOperation("藏品列表导出")
|
|
|
public void export(HttpServletResponse response, PoCollection poCollection)
|
|
|
{
|
|
|
List<PoCollection> list = collectionService.selectPoCollectionList(poCollection);
|
|
|
- ExcelUtil<PoCollection> util = new ExcelUtil<PoCollection>(PoCollection.class);
|
|
|
+ ExcelUtil<PoCollection> util = new ExcelUtil<>(PoCollection.class);
|
|
|
util.exportExcel(response, list, "藏品数据");
|
|
|
}
|
|
|
|
|
@@ -58,6 +60,7 @@ public class PoCollectionController extends BaseController {
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('system:collection:query')")
|
|
|
@GetMapping(value = "/{collectionId}")
|
|
|
+ @ApiOperation("藏品详情查询")
|
|
|
public AjaxResult getInfo(@PathVariable("collectionId") Long collectionId)
|
|
|
{
|
|
|
return success(collectionService.selectCollectionById(collectionId));
|
|
@@ -100,6 +103,7 @@ public class PoCollectionController extends BaseController {
|
|
|
@PreAuthorize("@ss.hasPermi('system:collection:remove')")
|
|
|
@Log(title = "删除藏品", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{collectionIds}")
|
|
|
+ @ApiOperation("根据藏品ID删除藏品")
|
|
|
public AjaxResult remove(@PathVariable Long[] collectionIds)
|
|
|
{
|
|
|
return toAjax(collectionService.deletePoCollectionByCollectionIds(collectionIds));
|