|
@@ -1,4 +1,4 @@
|
|
|
-package org.jeecg.modules.adweb.market.controller;
|
|
|
+package org.jeecg.modules.adweb.subscribePlan.controller;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
@@ -12,8 +12,8 @@ import org.jeecg.common.api.vo.Result;
|
|
|
import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
import org.jeecg.common.system.base.controller.JeecgController;
|
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
|
-import org.jeecg.modules.adweb.market.entity.SeoMarketPlan;
|
|
|
-import org.jeecg.modules.adweb.market.service.ISeoMarketPlanService;
|
|
|
+import org.jeecg.modules.adweb.subscribePlan.entity.SubscribePlan;
|
|
|
+import org.jeecg.modules.adweb.subscribePlan.service.ISubscribePlanService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -29,11 +29,11 @@ import java.util.Arrays;
|
|
|
*/
|
|
|
@Tag(name = "网站营销方案套餐表")
|
|
|
@RestController
|
|
|
-@RequestMapping("/adweb/seoMarketPlan")
|
|
|
+@RequestMapping("/adweb/subscribePlan")
|
|
|
@Slf4j
|
|
|
-public class SeoMarketPlanController extends JeecgController<SeoMarketPlan, ISeoMarketPlanService> {
|
|
|
+public class SubscribePlanController extends JeecgController<SubscribePlan, ISubscribePlanService> {
|
|
|
@Autowired
|
|
|
- private ISeoMarketPlanService seoMarketPlanService;
|
|
|
+ private ISubscribePlanService seoMarketPlanService;
|
|
|
|
|
|
// @Autowired
|
|
|
// private IAdwebMaterialCheckService checkService;
|
|
@@ -41,7 +41,7 @@ public class SeoMarketPlanController extends JeecgController<SeoMarketPlan, ISeo
|
|
|
/**
|
|
|
* 分页列表查询
|
|
|
*
|
|
|
- * @param seoMarketPlan
|
|
|
+ * @param subscribePlan
|
|
|
* @param pageNo
|
|
|
* @param pageSize
|
|
|
* @param req
|
|
@@ -50,43 +50,43 @@ public class SeoMarketPlanController extends JeecgController<SeoMarketPlan, ISeo
|
|
|
//@AutoLog(value = "网站营销方案套餐表-分页列表查询")
|
|
|
@Operation(summary = "网站营销方案套餐表-分页列表查询")
|
|
|
@GetMapping(value = "/list")
|
|
|
- public Result<IPage<SeoMarketPlan>> queryPageList(SeoMarketPlan seoMarketPlan,
|
|
|
+ public Result<IPage<SubscribePlan>> queryPageList(SubscribePlan subscribePlan,
|
|
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
|
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
|
|
HttpServletRequest req) {
|
|
|
- QueryWrapper<SeoMarketPlan> queryWrapper = QueryGenerator.initQueryWrapper(seoMarketPlan, req.getParameterMap());
|
|
|
- Page<SeoMarketPlan> page = new Page<SeoMarketPlan>(pageNo, pageSize);
|
|
|
- IPage<SeoMarketPlan> pageList = seoMarketPlanService.page(page, queryWrapper);
|
|
|
+ QueryWrapper<SubscribePlan> queryWrapper = QueryGenerator.initQueryWrapper(subscribePlan, req.getParameterMap());
|
|
|
+ Page<SubscribePlan> page = new Page<SubscribePlan>(pageNo, pageSize);
|
|
|
+ IPage<SubscribePlan> pageList = seoMarketPlanService.page(page, queryWrapper);
|
|
|
return Result.OK(pageList);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 添加
|
|
|
*
|
|
|
- * @param seoMarketPlan
|
|
|
+ * @param subscribePlan
|
|
|
* @return
|
|
|
*/
|
|
|
@AutoLog(value = "网站营销方案套餐表-添加")
|
|
|
@Operation(summary = "网站营销方案套餐表-添加")
|
|
|
@PreAuthorize("@jps.requiresPermissions('adweb:seo_market_plan:add')")
|
|
|
@PostMapping(value = "/add")
|
|
|
- public Result<String> add(@RequestBody SeoMarketPlan seoMarketPlan) {
|
|
|
- seoMarketPlanService.save(seoMarketPlan);
|
|
|
+ public Result<String> add(@RequestBody SubscribePlan subscribePlan) {
|
|
|
+ seoMarketPlanService.save(subscribePlan);
|
|
|
return Result.OK("添加成功!");
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 编辑
|
|
|
*
|
|
|
- * @param seoMarketPlan
|
|
|
+ * @param subscribePlan
|
|
|
* @return
|
|
|
*/
|
|
|
@AutoLog(value = "网站营销方案套餐表-编辑")
|
|
|
@Operation(summary = "网站营销方案套餐表-编辑")
|
|
|
@PreAuthorize("@jps.requiresPermissions('adweb:seo_market_plan:edit')")
|
|
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST})
|
|
|
- public Result<String> edit(@RequestBody SeoMarketPlan seoMarketPlan) {
|
|
|
- seoMarketPlanService.updateById(seoMarketPlan);
|
|
|
+ public Result<String> edit(@RequestBody SubscribePlan subscribePlan) {
|
|
|
+ seoMarketPlanService.updateById(subscribePlan);
|
|
|
return Result.OK("编辑成功!");
|
|
|
}
|
|
|
|
|
@@ -129,24 +129,24 @@ public class SeoMarketPlanController extends JeecgController<SeoMarketPlan, ISeo
|
|
|
//@AutoLog(value = "网站营销方案套餐表-通过id查询")
|
|
|
@Operation(summary = "网站营销方案套餐表-通过id查询")
|
|
|
@GetMapping(value = "/queryById")
|
|
|
- public Result<SeoMarketPlan> queryById(@RequestParam(name = "id", required = true) String id) {
|
|
|
- SeoMarketPlan seoMarketPlan = seoMarketPlanService.getById(id);
|
|
|
- if (seoMarketPlan == null) {
|
|
|
+ public Result<SubscribePlan> queryById(@RequestParam(name = "id", required = true) String id) {
|
|
|
+ SubscribePlan subscribePlan = seoMarketPlanService.getById(id);
|
|
|
+ if (subscribePlan == null) {
|
|
|
return Result.error("未找到对应数据");
|
|
|
}
|
|
|
- return Result.OK(seoMarketPlan);
|
|
|
+ return Result.OK(subscribePlan);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 导出excel
|
|
|
*
|
|
|
* @param request
|
|
|
- * @param seoMarketPlan
|
|
|
+ * @param subscribePlan
|
|
|
*/
|
|
|
@PreAuthorize("@jps.requiresPermissions('adweb:seo_market_plan:exportXls')")
|
|
|
@RequestMapping(value = "/exportXls")
|
|
|
- public ModelAndView exportXls(HttpServletRequest request, SeoMarketPlan seoMarketPlan) {
|
|
|
- return super.exportXls(request, seoMarketPlan, SeoMarketPlan.class, "网站营销方案套餐表");
|
|
|
+ public ModelAndView exportXls(HttpServletRequest request, SubscribePlan subscribePlan) {
|
|
|
+ return super.exportXls(request, subscribePlan, SubscribePlan.class, "网站营销方案套餐表");
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -159,7 +159,7 @@ public class SeoMarketPlanController extends JeecgController<SeoMarketPlan, ISeo
|
|
|
@PreAuthorize("@jps.requiresPermissions('adweb:seo_market_plan:importExcel')")
|
|
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
|
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
|
|
- return super.importExcel(request, response, SeoMarketPlan.class);
|
|
|
+ return super.importExcel(request, response, SubscribePlan.class);
|
|
|
}
|
|
|
|
|
|
// /**
|