|
@@ -1,4 +1,4 @@
|
|
|
-package com.ruoyi.system.controller;
|
|
|
+package com.ruoyi.web.controller.system;
|
|
|
|
|
|
import java.util.List;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
@@ -16,8 +16,8 @@ import com.ruoyi.common.annotation.Log;
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
import com.ruoyi.common.enums.BusinessType;
|
|
|
-import com.ruoyi.system.domain.CollectionSystem;
|
|
|
-import com.ruoyi.system.service.ICollectionSystemService;
|
|
|
+import com.ruoyi.system.domain.PostCollectionsSystem;
|
|
|
+import com.ruoyi.system.service.IPostCollectionsSystemService;
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
|
@@ -29,20 +29,20 @@ import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping("/system/system")
|
|
|
-public class CollectionSystemController extends BaseController
|
|
|
+public class PostCollectionsSystemController extends BaseController
|
|
|
{
|
|
|
@Autowired
|
|
|
- private ICollectionSystemService collectionSystemService;
|
|
|
+ private IPostCollectionsSystemService postCollectionsSystemService;
|
|
|
|
|
|
/**
|
|
|
* 查询【请填写功能名称】列表
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('system:system:list')")
|
|
|
@GetMapping("/list")
|
|
|
- public TableDataInfo list(CollectionSystem collectionSystem)
|
|
|
+ public TableDataInfo list(PostCollectionsSystem postCollectionsSystem)
|
|
|
{
|
|
|
startPage();
|
|
|
- List<CollectionSystem> list = collectionSystemService.selectCollectionSystemList(collectionSystem);
|
|
|
+ List<PostCollectionsSystem> list = postCollectionsSystemService.selectPostCollectionsSystemList(postCollectionsSystem);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
@@ -52,10 +52,10 @@ public class CollectionSystemController extends BaseController
|
|
|
@PreAuthorize("@ss.hasPermi('system:system:export')")
|
|
|
@Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/export")
|
|
|
- public void export(HttpServletResponse response, CollectionSystem collectionSystem)
|
|
|
+ public void export(HttpServletResponse response, PostCollectionsSystem postCollectionsSystem)
|
|
|
{
|
|
|
- List<CollectionSystem> list = collectionSystemService.selectCollectionSystemList(collectionSystem);
|
|
|
- ExcelUtil<CollectionSystem> util = new ExcelUtil<CollectionSystem>(CollectionSystem.class);
|
|
|
+ List<PostCollectionsSystem> list = postCollectionsSystemService.selectPostCollectionsSystemList(postCollectionsSystem);
|
|
|
+ ExcelUtil<PostCollectionsSystem> util = new ExcelUtil<PostCollectionsSystem>(PostCollectionsSystem.class);
|
|
|
util.exportExcel(response, list, "【请填写功能名称】数据");
|
|
|
}
|
|
|
|
|
@@ -66,7 +66,7 @@ public class CollectionSystemController extends BaseController
|
|
|
@GetMapping(value = "/{id}")
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
|
|
{
|
|
|
- return success(collectionSystemService.selectCollectionSystemById(id));
|
|
|
+ return success(postCollectionsSystemService.selectPostCollectionsSystemById(id));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -75,9 +75,9 @@ public class CollectionSystemController extends BaseController
|
|
|
@PreAuthorize("@ss.hasPermi('system:system:add')")
|
|
|
@Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
- public AjaxResult add(@RequestBody CollectionSystem collectionSystem)
|
|
|
+ public AjaxResult add(@RequestBody PostCollectionsSystem postCollectionsSystem)
|
|
|
{
|
|
|
- return toAjax(collectionSystemService.insertCollectionSystem(collectionSystem));
|
|
|
+ return toAjax(postCollectionsSystemService.insertPostCollectionsSystem(postCollectionsSystem));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -86,9 +86,9 @@ public class CollectionSystemController extends BaseController
|
|
|
@PreAuthorize("@ss.hasPermi('system:system:edit')")
|
|
|
@Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
|
- public AjaxResult edit(@RequestBody CollectionSystem collectionSystem)
|
|
|
+ public AjaxResult edit(@RequestBody PostCollectionsSystem postCollectionsSystem)
|
|
|
{
|
|
|
- return toAjax(collectionSystemService.updateCollectionSystem(collectionSystem));
|
|
|
+ return toAjax(postCollectionsSystemService.updatePostCollectionsSystem(postCollectionsSystem));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -99,6 +99,6 @@ public class CollectionSystemController extends BaseController
|
|
|
@DeleteMapping("/{ids}")
|
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|
|
|
{
|
|
|
- return toAjax(collectionSystemService.deleteCollectionSystemByIds(ids));
|
|
|
+ return toAjax(postCollectionsSystemService.deletePostCollectionsSystemByIds(ids));
|
|
|
}
|
|
|
}
|