|
@@ -1,7 +1,11 @@
|
|
|
-package com.ruoyi.system.controller;
|
|
|
+package com.ruoyi.web.controller.plotmanage;
|
|
|
|
|
|
import java.util.List;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
+
|
|
|
+import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
+import com.ruoyi.web.domain.plotmanage.AdManagement;
|
|
|
+import com.ruoyi.web.service.plotmanage.IAdManagementService;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -16,20 +20,16 @@ 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.AdManagement;
|
|
|
-//import com.ruoyi.system.service.IAdManagementService;
|
|
|
-import com.ruoyi.system.service.IAdManagementService;
|
|
|
-import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
|
|
/**
|
|
|
* 广告位管理Controller
|
|
|
*
|
|
|
* @author cyx
|
|
|
- * @date 2022-09-22
|
|
|
+ * @date 2022-11-24
|
|
|
*/
|
|
|
@RestController
|
|
|
-@RequestMapping("/system/admanagement")
|
|
|
+@RequestMapping("/plotmanage/management")
|
|
|
public class AdManagementController extends BaseController
|
|
|
{
|
|
|
@Autowired
|
|
@@ -38,7 +38,7 @@ public class AdManagementController extends BaseController
|
|
|
/**
|
|
|
* 查询广告位管理列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:admanagement:list')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('plotmanage:management:list')")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(AdManagement adManagement)
|
|
|
{
|
|
@@ -50,7 +50,7 @@ public class AdManagementController extends BaseController
|
|
|
/**
|
|
|
* 导出广告位管理列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:admanagement:export')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('plotmanage:management:export')")
|
|
|
@Log(title = "广告位管理", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/export")
|
|
|
public void export(HttpServletResponse response, AdManagement adManagement)
|
|
@@ -63,7 +63,7 @@ public class AdManagementController extends BaseController
|
|
|
/**
|
|
|
* 获取广告位管理详细信息
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:admanagement:query')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('plotmanage:management:query')")
|
|
|
@GetMapping(value = "/{id}")
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
|
|
{
|
|
@@ -73,7 +73,7 @@ public class AdManagementController extends BaseController
|
|
|
/**
|
|
|
* 新增广告位管理
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:admanagement:add')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('plotmanage:management:add')")
|
|
|
@Log(title = "广告位管理", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
public AjaxResult add(@RequestBody AdManagement adManagement)
|
|
@@ -84,7 +84,7 @@ public class AdManagementController extends BaseController
|
|
|
/**
|
|
|
* 修改广告位管理
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:admanagement:edit')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('plotmanage:management:edit')")
|
|
|
@Log(title = "广告位管理", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
|
public AjaxResult edit(@RequestBody AdManagement adManagement)
|
|
@@ -95,7 +95,7 @@ public class AdManagementController extends BaseController
|
|
|
/**
|
|
|
* 删除广告位管理
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('system:admanagement:remove')")
|
|
|
+ @PreAuthorize("@ss.hasPermi('plotmanage:management:remove')")
|
|
|
@Log(title = "广告位管理", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{ids}")
|
|
|
public AjaxResult remove(@PathVariable Long[] ids)
|