|
@@ -5,6 +5,7 @@ import java.util.List;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
import com.ruoyi.system.domain.PcscId;
|
|
|
+import com.ruoyi.system.domain.PostCollectionsSystem;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
@@ -38,27 +39,14 @@ public class PostCollectionsController extends BaseController
|
|
|
*/
|
|
|
@ApiOperation("查询藏品列表")
|
|
|
@PreAuthorize("@ss.hasPermi('system:collections:list')")
|
|
|
- @GetMapping("/list")
|
|
|
- public TableDataInfo list(PostCollections postCollections)
|
|
|
+ @GetMapping(value = "/list/{id}")
|
|
|
+ public TableDataInfo list(@PathVariable("id") Long id)
|
|
|
{
|
|
|
startPage();
|
|
|
- List<PostCollections> list = postCollectionsService.selectPostCollectionsList(postCollections);
|
|
|
+ List<PostCollections> list = postCollectionsService.selectPostCollectionsList(id);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 导出藏品列表
|
|
|
- */
|
|
|
- @ApiOperation("导入藏品")
|
|
|
- @PreAuthorize("@ss.hasPermi('system:collections:export')")
|
|
|
- @Log(title = "藏品", businessType = BusinessType.EXPORT)
|
|
|
- @PostMapping("/export")
|
|
|
- public void export(HttpServletResponse response, PostCollections postCollections)
|
|
|
- {
|
|
|
- List<PostCollections> list = postCollectionsService.selectPostCollectionsList(postCollections);
|
|
|
- ExcelUtil<PostCollections> util = new ExcelUtil<PostCollections>(PostCollections.class);
|
|
|
- util.exportExcel(response, list, "藏品数据");
|
|
|
- }
|
|
|
|
|
|
/**
|
|
|
* 获取藏品详细信息
|
|
@@ -78,9 +66,9 @@ public class PostCollectionsController extends BaseController
|
|
|
@PreAuthorize("@ss.hasPermi('system:collections:add')")
|
|
|
@Log(title = "藏品", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
- public AjaxResult add(@RequestBody PcscId pcscId)
|
|
|
+ public AjaxResult add(@RequestBody PostCollections postCollections)
|
|
|
{
|
|
|
- return toAjax(postCollectionsService.insertPostCollections(pcscId));
|
|
|
+ return toAjax(postCollectionsService.insertPostCollections((PcscId) postCollections));
|
|
|
}
|
|
|
|
|
|
/**
|