Ver Fonte

第一版

chen_yx há 2 anos atrás
pai
commit
ff9e72f563

+ 13 - 13
ruoyi-admin/src/main/java/com/ruoyi/web/controller/plotmanage/AdManagementController.java

@@ -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)

+ 3 - 3
ruoyi-admin/src/main/java/com/ruoyi/web/mapper/plotmanage/AdManagementMapper.java

@@ -1,13 +1,13 @@
-package com.ruoyi.system.mapper;
+package com.ruoyi.web.mapper.plotmanage;
 
 import java.util.List;
-import com.ruoyi.system.domain.AdManagement;
+import com.ruoyi.web.domain.plotmanage.AdManagement;
 
 /**
  * 广告位管理Mapper接口
  * 
  * @author cyx
- * @date 2022-09-22
+ * @date 2022-11-24
  */
 public interface AdManagementMapper 
 {

+ 5 - 3
ruoyi-system/src/main/java/com/ruoyi/system/service/IAdManagementService.java → ruoyi-admin/src/main/java/com/ruoyi/web/service/plotmanage/IAdManagementService.java

@@ -1,13 +1,15 @@
-package com.ruoyi.system.service;
+package com.ruoyi.web.service.plotmanage;
+
+import com.ruoyi.web.domain.plotmanage.AdManagement;
 
 import java.util.List;
-import com.ruoyi.system.domain.AdManagement;
+
 
 /**
  * 广告位管理Service接口
  * 
  * @author cyx
- * @date 2022-09-22
+ * @date 2022-11-24
  */
 public interface IAdManagementService 
 {

+ 8 - 6
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/AdManagementServiceImpl.java → ruoyi-admin/src/main/java/com/ruoyi/web/service/plotmanage/impl/AdManagementServiceImpl.java

@@ -1,20 +1,22 @@
-package com.ruoyi.system.service.impl;
+package com.ruoyi.web.service.plotmanage.impl;
 
 import java.util.List;
+
+import com.ruoyi.web.domain.plotmanage.AdManagement;
+import com.ruoyi.web.mapper.plotmanage.AdManagementMapper;
+import com.ruoyi.web.service.plotmanage.IAdManagementService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
-import com.ruoyi.system.mapper.AdManagementMapper;
-import com.ruoyi.system.domain.AdManagement;
-import com.ruoyi.system.service.IAdManagementService;
+
 
 /**
  * 广告位管理Service业务层处理
  * 
  * @author cyx
- * @date 2022-09-22
+ * @date 2022-11-24
  */
 @Service
-public class AdManagementServiceImpl implements IAdManagementService 
+public class AdManagementServiceImpl implements IAdManagementService
 {
     @Autowired
     private AdManagementMapper adManagementMapper;