Commit a2f158f6 authored by sunsongtao's avatar sunsongtao

注释

parents
Pipeline #53 failed with stages

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

######################################################################
# Build Tools
.gradle
/build/
!gradle/wrapper/gradle-wrapper.jar
target/
!.mvn/wrapper/maven-wrapper.jar
######################################################################
# IDE
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### JRebel ###
rebel.xml
### NetBeans ###
nbproject/private/
build/*
nbbuild/
dist/
nbdist/
.nb-gradle/
######################################################################
# Others
*.log
*.xml.versionsBackup
*.swp
!*/build/*.java
!*/build/*.html
!*/build/*.xml
The MIT License (MIT)
Copyright (c) 2018 RuoYi
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file
<p align="center">
<img alt="logo" src="https://oscimg.oschina.net/oscnet/up-d3d0a9303e11d522a06cd263f3079027715.png">
</p>
<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">RuoYi v3.8.1</h1>
<h4 align="center">基于SpringBoot+Vue前后端分离的Java快速开发框架</h4>
<p align="center">
<a href="https://gitee.com/y_project/RuoYi-Vue/stargazers"><img src="https://gitee.com/y_project/RuoYi-Vue/badge/star.svg?theme=dark"></a>
<a href="https://gitee.com/y_project/RuoYi-Vue"><img src="https://img.shields.io/badge/RuoYi-v3.8.1-brightgreen.svg"></a>
<a href="https://gitee.com/y_project/RuoYi-Vue/blob/master/LICENSE"><img src="https://img.shields.io/github/license/mashape/apistatus.svg"></a>
</p>
## 平台简介
志愿填报是一套全部开源的快速开发平台,毫无保留给个人及企业免费使用。
* 前端采用Vue、Element UI。
* 后端采用Spring Boot、Spring Security、Redis & Jwt。
* 权限认证使用Jwt,支持多终端认证系统。
* 支持加载动态权限菜单,多方式轻松权限控制。
* 高效率开发,使用代码生成器可以一键生成前后端代码。
* 提供了技术栈([Vue3](https://v3.cn.vuejs.org) [Element Plus](https://element-plus.org/zh-CN) [Vite](https://cn.vitejs.dev))版本[RuoYi-Vue3](https://github.com/yangzongzhuan/RuoYi-Vue3),保持同步更新。
* 提供了单应用版本[RuoYi-Vue-fast](https://github.com/yangzongzhuan/RuoYi-Vue-fast),Oracle版本[RuoYi-Vue-Oracle](https://github.com/yangzongzhuan/RuoYi-Vue-Oracle),保持同步更新。
* 不分离版本,请移步[RuoYi](https://gitee.com/y_project/RuoYi),微服务版本,请移步[RuoYi-Cloud](https://gitee.com/y_project/RuoYi-Cloud)
* 特别鸣谢:[element](https://github.com/ElemeFE/element)[vue-element-admin](https://github.com/PanJiaChen/vue-element-admin)[eladmin-web](https://github.com/elunez/eladmin-web)
* 阿里云折扣场:[点我进入](http://aly.ruoyi.vip),腾讯云秒杀场:[点我进入](http://txy.ruoyi.vip)&nbsp;&nbsp;
* 阿里云优惠券:[点我领取](https://www.aliyun.com/minisite/goods?userCode=brki8iof&share_source=copy_link),腾讯云优惠券:[点我领取](https://cloud.tencent.com/redirect.php?redirect=1025&cps_key=198c8df2ed259157187173bc7f4f32fd&from=console)&nbsp;&nbsp;
## 内置功能
1. 用户管理:用户是系统操作者,该功能主要完成系统用户配置。
2. 部门管理:配置系统组织机构(公司、部门、小组),树结构展现支持数据权限。
3. 岗位管理:配置系统用户所属担任职务。
4. 菜单管理:配置系统菜单,操作权限,按钮权限标识等。
5. 角色管理:角色菜单权限分配、设置角色按机构进行数据范围权限划分。
6. 字典管理:对系统中经常使用的一些较为固定的数据进行维护。
7. 参数管理:对系统动态配置常用参数。
8. 通知公告:系统通知公告信息发布维护。
9. 操作日志:系统正常操作日志记录和查询;系统异常信息日志记录和查询。
10. 登录日志:系统登录日志记录查询包含登录异常。
11. 在线用户:当前系统中活跃用户状态监控。
12. 定时任务:在线(添加、修改、删除)任务调度包含执行结果日志。
13. 代码生成:前后端代码的生成(java、html、xml、sql)支持CRUD下载 。
14. 系统接口:根据业务代码自动生成相关的api接口文档。
15. 服务监控:监视当前系统CPU、内存、磁盘、堆栈等相关信息。
16. 缓存监控:对系统的缓存信息查询,命令统计等。
17. 在线构建器:拖动表单元素生成相应的HTML代码。
18. 连接池监视:监视当前系统数据库连接池状态,可进行分析SQL找出系统性能瓶颈。
## 在线体验
- admin/admin123
- 陆陆续续收到一些打赏,为了更好的体验已用于演示服务器升级。谢谢各位小伙伴。
演示地址:http://vue.ruoyi.vip
文档地址:http://doc.ruoyi.vip
## 演示图
<table>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/cd1f90be5f2684f4560c9519c0f2a232ee8.jpg"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/1cbcf0e6f257c7d3a063c0e3f2ff989e4b3.jpg"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-8074972883b5ba0622e13246738ebba237a.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-9f88719cdfca9af2e58b352a20e23d43b12.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-39bf2584ec3a529b0d5a3b70d15c9b37646.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-936ec82d1f4872e1bc980927654b6007307.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-b2d62ceb95d2dd9b3fbe157bb70d26001e9.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-d67451d308b7a79ad6819723396f7c3d77a.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/5e8c387724954459291aafd5eb52b456f53.jpg"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/644e78da53c2e92a95dfda4f76e6d117c4b.jpg"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-8370a0d02977eebf6dbf854c8450293c937.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-49003ed83f60f633e7153609a53a2b644f7.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-d4fe726319ece268d4746602c39cffc0621.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-c195234bbcd30be6927f037a6755e6ab69c.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/b6115bc8c31de52951982e509930b20684a.jpg"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-5e4daac0bb59612c5038448acbcef235e3a.png"/></td>
</tr>
</table>
## 若依前后端分离交流群
QQ群: [![加入QQ群](https://img.shields.io/badge/已满-937441-blue.svg)](https://jq.qq.com/?_wv=1027&k=5bVB1og) [![加入QQ群](https://img.shields.io/badge/已满-887144332-blue.svg)](https://jq.qq.com/?_wv=1027&k=5eiA4DH) [![加入QQ群](https://img.shields.io/badge/已满-180251782-blue.svg)](https://jq.qq.com/?_wv=1027&k=5AxMKlC) [![加入QQ群](https://img.shields.io/badge/已满-104180207-blue.svg)](https://jq.qq.com/?_wv=1027&k=51G72yr) [![加入QQ群](https://img.shields.io/badge/已满-186866453-blue.svg)](https://jq.qq.com/?_wv=1027&k=VvjN2nvu) [![加入QQ群](https://img.shields.io/badge/已满-201396349-blue.svg)](https://jq.qq.com/?_wv=1027&k=5vYAqA05) [![加入QQ群](https://img.shields.io/badge/已满-101456076-blue.svg)](https://jq.qq.com/?_wv=1027&k=kOIINEb5) [![加入QQ群](https://img.shields.io/badge/已满-101539465-blue.svg)](https://jq.qq.com/?_wv=1027&k=UKtX5jhs) [![加入QQ群](https://img.shields.io/badge/已满-264312783-blue.svg)](https://jq.qq.com/?_wv=1027&k=EI9an8lJ) [![加入QQ群](https://img.shields.io/badge/167385320-blue.svg)](https://jq.qq.com/?_wv=1027&k=SWCtLnMz) 点击按钮入群。
@echo off
echo.
echo [信息] 清理工程target生成路径。
echo.
%~d0
cd %~dp0
cd ..
call mvn clean
pause
\ No newline at end of file
@echo off
echo.
echo [信息] 打包Web工程,生成war/jar包文件。
echo.
%~d0
cd %~dp0
cd ..
call mvn clean package -Dmaven.test.skip=true
pause
\ No newline at end of file
@echo off
echo.
echo [信息] 使用Jar命令运行Web工程。
echo.
cd %~dp0
cd ../ruoyi-admin/target
set JAVA_OPTS=-Xms256m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
java -jar %JAVA_OPTS% ruoyi-admin.jar
cd bin
pause
\ No newline at end of file
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>ruoyi</artifactId>
<groupId>com.ruoyi</groupId>
<version>3.8.1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
<artifactId>ruoyi-admin</artifactId>
<description>
web服务入口
</description>
<dependencies>
<dependency>
<groupId>org.jdom</groupId>
<artifactId>jdom2</artifactId>
<version>2.0.6</version>
</dependency>
<!-- spring-boot-devtools -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional> <!-- 表示依赖不会传递 -->
</dependency>
<!-- swagger3-->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-boot-starter</artifactId>
</dependency>
<!-- 防止进入swagger页面报类型转换错误,排除3.0.0中的引用,手动增加1.6.2版本 -->
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-models</artifactId>
<version>1.6.2</version>
</dependency>
<!-- Mysql驱动包 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<!-- 核心模块-->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-framework</artifactId>
</dependency>
<!-- 定时任务-->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-quartz</artifactId>
</dependency>
<!-- 代码生成-->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-generator</artifactId>
</dependency>
<!-- wxJava 小程序 -->
<dependency>
<groupId>com.github.binarywang</groupId>
<artifactId>weixin-java-miniapp</artifactId>
</dependency>
<!--千帆 智能对话-->
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>4.8.1</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.alibaba</groupId>-->
<!-- <artifactId>fastjson</artifactId>-->
<!-- <version>2.0.19</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.projectlombok</groupId>-->
<!-- <artifactId>lombok</artifactId>-->
<!-- <version>1.18.8</version>-->
<!-- </dependency>-->
<!--END 千帆 智能对话-->
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.1.1.RELEASE</version>
<configuration>
<fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.1.0</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<warName>${project.artifactId}</warName>
</configuration>
</plugin>
</plugins>
<finalName>${project.artifactId}</finalName>
</build>
</project>
package com.ruoyi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
/**
* 启动程序
*
* @author ruoyi
*/
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class RuoYiApplication
{
public static void main(String[] args)
{
// System.setProperty("spring.devtools.restart.enabled", "false");
SpringApplication.run(RuoYiApplication.class, args);
System.out.println("(♥◠‿◠)ノ゙ 志愿填报启动成功 ლ(´ڡ`ლ)゙ \n" +
" .-------. ____ __ \n" +
" | _ _ \\ \\ \\ / / \n" +
" | ( ' ) | \\ _. / ' \n" +
" |(_ o _) / _( )_ .' \n" +
" | (_,_).' __ ___(_ o _)' \n" +
" | |\\ \\ | || |(_,_)' \n" +
" | | \\ `' /| `-' / \n" +
" | | \\ / \\ / \n" +
" ''-' `'-' `-..-' ");
}
}
package com.ruoyi;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
/**
* web容器中进行部署
*
* @author ruoyi
*/
public class RuoYiServletInitializer extends SpringBootServletInitializer
{
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application)
{
return application.sources(RuoYiApplication.class);
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.ArticleTag;
import com.ruoyi.mall.service.IArticleTagService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 帖子话题Controller
*
* @author ruoyi
* @date 2023-11-09
*/
@RestController
@RequestMapping("/mall/ArticleTag")
public class ArticleTagController extends BaseController
{
@Autowired
private IArticleTagService articleTagService;
/**
* 查询帖子话题列表
*/
@PreAuthorize("@ss.hasPermi('mall:ArticleTag:list')")
@GetMapping("/list")
public TableDataInfo list(ArticleTag articleTag)
{
startPage();
List<ArticleTag> list = articleTagService.selectArticleTagList(articleTag);
return getDataTable(list);
}
/**
* 导出帖子话题列表
*/
@PreAuthorize("@ss.hasPermi('mall:ArticleTag:export')")
@Log(title = "帖子话题", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, ArticleTag articleTag)
{
List<ArticleTag> list = articleTagService.selectArticleTagList(articleTag);
ExcelUtil<ArticleTag> util = new ExcelUtil<ArticleTag>(ArticleTag.class);
util.exportExcel(response, list, "帖子话题数据");
}
/**
* 获取帖子话题详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:ArticleTag:query')")
@GetMapping(value = "/{tagId}")
public AjaxResult getInfo(@PathVariable("tagId") Long tagId)
{
return AjaxResult.success(articleTagService.selectArticleTagByTagId(tagId));
}
/**
* 新增帖子话题
*/
@PreAuthorize("@ss.hasPermi('mall:ArticleTag:add')")
@Log(title = "帖子话题", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody ArticleTag articleTag)
{
return toAjax(articleTagService.insertArticleTag(articleTag));
}
/**
* 修改帖子话题
*/
@PreAuthorize("@ss.hasPermi('mall:ArticleTag:edit')")
@Log(title = "帖子话题", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody ArticleTag articleTag)
{
return toAjax(articleTagService.updateArticleTag(articleTag));
}
/**
* 删除帖子话题
*/
@PreAuthorize("@ss.hasPermi('mall:ArticleTag:remove')")
@Log(title = "帖子话题", businessType = BusinessType.DELETE)
@DeleteMapping("/{tagIds}")
public AjaxResult remove(@PathVariable Long[] tagIds)
{
return toAjax(articleTagService.deleteArticleTagByTagIds(tagIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.BusinessArticleComment;
import com.ruoyi.mall.service.IBusinessArticleCommentService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 帖子评论Controller
*
* @author ruoyi
* @date 2023-10-18
*/
@RestController
@RequestMapping("/mall/ArticleComment")
public class BusinessArticleCommentController extends BaseController
{
@Autowired
private IBusinessArticleCommentService businessArticleCommentService;
/**
* 查询帖子评论列表
*/
@PreAuthorize("@ss.hasPermi('mall:ArticleComment:list')")
@GetMapping("/list")
public TableDataInfo list(BusinessArticleComment businessArticleComment)
{
startPage();
List<BusinessArticleComment> list = businessArticleCommentService.selectBusinessArticleCommentList(businessArticleComment);
return getDataTable(list);
}
/**
* 导出帖子评论列表
*/
@PreAuthorize("@ss.hasPermi('mall:ArticleComment:export')")
@Log(title = "帖子评论", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BusinessArticleComment businessArticleComment)
{
List<BusinessArticleComment> list = businessArticleCommentService.selectBusinessArticleCommentList(businessArticleComment);
ExcelUtil<BusinessArticleComment> util = new ExcelUtil<BusinessArticleComment>(BusinessArticleComment.class);
util.exportExcel(response, list, "帖子评论数据");
}
/**
* 获取帖子评论详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:ArticleComment:query')")
@GetMapping(value = "/{commentId}")
public AjaxResult getInfo(@PathVariable("commentId") Long commentId)
{
return AjaxResult.success(businessArticleCommentService.selectBusinessArticleCommentByCommentId(commentId));
}
/**
* 新增帖子评论
*/
@PreAuthorize("@ss.hasPermi('mall:ArticleComment:add')")
@Log(title = "帖子评论", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BusinessArticleComment businessArticleComment)
{
return toAjax(businessArticleCommentService.insertBusinessArticleComment(businessArticleComment));
}
/**
* 修改帖子评论
*/
@PreAuthorize("@ss.hasPermi('mall:ArticleComment:edit')")
@Log(title = "帖子评论", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BusinessArticleComment businessArticleComment)
{
return toAjax(businessArticleCommentService.updateBusinessArticleComment(businessArticleComment));
}
/**
* 删除帖子评论
*/
@PreAuthorize("@ss.hasPermi('mall:ArticleComment:remove')")
@Log(title = "帖子评论", businessType = BusinessType.DELETE)
@DeleteMapping("/{commentIds}")
public AjaxResult remove(@PathVariable Long[] commentIds)
{
return toAjax(businessArticleCommentService.deleteBusinessArticleCommentByCommentIds(commentIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.mall.domain.Vo.BusinessArticleVo;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.BusinessArticle;
import com.ruoyi.mall.service.IBusinessArticleService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 帖子管理Controller
*
* @author ruoyi
* @date 2023-10-17
*/
@RestController
@RequestMapping("/mall/article")
public class BusinessArticleController extends BaseController
{
@Resource
private IBusinessArticleService businessArticleService;
/**
* 查询帖子管理列表
*/
@PreAuthorize("@ss.hasPermi('mall:article:list')")
@GetMapping("/list")
public TableDataInfo list(BusinessArticle businessArticle)
{
startPage();
List<BusinessArticleVo> list = businessArticleService.selectBusinessArticleList(businessArticle);
return getDataTable(list);
}
/**
* 导出帖子管理列表
*/
@PreAuthorize("@ss.hasPermi('mall:article:export')")
@Log(title = "帖子管理", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BusinessArticle businessArticle)
{
List<BusinessArticleVo> list = businessArticleService.selectBusinessArticleList(businessArticle);
ExcelUtil<BusinessArticleVo> util = new ExcelUtil<BusinessArticleVo>(BusinessArticleVo.class);
util.exportExcel(response, list, "帖子管理数据");
}
/**
* 获取帖子管理详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:article:query')")
@GetMapping(value = "/{articleId}")
public AjaxResult getInfo(@PathVariable("articleId") Long articleId)
{
return AjaxResult.success(businessArticleService.selectBusinessArticleByArticleId(articleId));
}
/**
* 新增帖子管理
*/
@PreAuthorize("@ss.hasPermi('mall:article:add')")
@Log(title = "帖子管理", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BusinessArticle businessArticle)
{
return toAjax(businessArticleService.insertBusinessArticle(businessArticle));
}
/**
* 修改帖子管理
*/
@PreAuthorize("@ss.hasPermi('mall:article:edit')")
@Log(title = "帖子管理", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BusinessArticle businessArticle)
{
return toAjax(businessArticleService.updateBusinessArticle(businessArticle));
}
/**
* 逻辑删除帖子管理
*/
@PreAuthorize("@ss.hasPermi('mall:article:remove')")
@Log(title = "帖子管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{articleIds}")
public AjaxResult remove(@PathVariable Long[] articleIds)
{
return toAjax(businessArticleService.deleteBusinessArticleByArticleIds(articleIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.BusinessArticleLike;
import com.ruoyi.mall.service.IBusinessArticleLikeService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 帖子点赞Controller
*
* @author ruoyi
* @date 2023-10-18
*/
@RestController
@RequestMapping("/system/ArticleLike")
public class BusinessArticleLikeController extends BaseController
{
@Autowired
private IBusinessArticleLikeService businessArticleLikeService;
/**
* 查询帖子点赞列表
*/
@PreAuthorize("@ss.hasPermi('system:ArticleLike:list')")
@GetMapping("/list")
public TableDataInfo list(BusinessArticleLike businessArticleLike)
{
startPage();
List<BusinessArticleLike> list = businessArticleLikeService.selectBusinessArticleLikeList(businessArticleLike);
return getDataTable(list);
}
/**
* 导出帖子点赞列表
*/
@PreAuthorize("@ss.hasPermi('system:ArticleLike:export')")
@Log(title = "帖子点赞", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BusinessArticleLike businessArticleLike)
{
List<BusinessArticleLike> list = businessArticleLikeService.selectBusinessArticleLikeList(businessArticleLike);
ExcelUtil<BusinessArticleLike> util = new ExcelUtil<BusinessArticleLike>(BusinessArticleLike.class);
util.exportExcel(response, list, "帖子点赞数据");
}
/**
* 获取帖子点赞详细信息
*/
@PreAuthorize("@ss.hasPermi('system:ArticleLike:query')")
@GetMapping(value = "/{likeId}")
public AjaxResult getInfo(@PathVariable("likeId") Long likeId)
{
return AjaxResult.success(businessArticleLikeService.selectBusinessArticleLikeByLikeId(likeId));
}
/**
* 新增帖子点赞
*/
@PreAuthorize("@ss.hasPermi('system:ArticleLike:add')")
@Log(title = "帖子点赞", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BusinessArticleLike businessArticleLike)
{
return toAjax(businessArticleLikeService.insertBusinessArticleLike(businessArticleLike));
}
/**
* 修改帖子点赞
*/
@PreAuthorize("@ss.hasPermi('system:ArticleLike:edit')")
@Log(title = "帖子点赞", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BusinessArticleLike businessArticleLike)
{
return toAjax(businessArticleLikeService.updateBusinessArticleLike(businessArticleLike));
}
/**
* 删除帖子点赞
*/
@PreAuthorize("@ss.hasPermi('system:ArticleLike:remove')")
@Log(title = "帖子点赞", businessType = BusinessType.DELETE)
@DeleteMapping("/{likeIds}")
public AjaxResult remove(@PathVariable Long[] likeIds)
{
return toAjax(businessArticleLikeService.deleteBusinessArticleLikeByLikeIds(likeIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.BusinessBulletin;
import com.ruoyi.mall.service.IBusinessBulletinService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 公告Controller
*
* @author ruoyi
* @date 2023-10-25
*/
@RestController
@RequestMapping("/mall/bulletin")
public class BusinessBulletinController extends BaseController
{
@Autowired
private IBusinessBulletinService businessBulletinService;
/**
* 查询公告列表
*/
@PreAuthorize("@ss.hasPermi('mall:bulletin:list')")
@GetMapping("/list")
public TableDataInfo list(BusinessBulletin businessBulletin)
{
startPage();
List<BusinessBulletin> list = businessBulletinService.selectBusinessBulletinList(businessBulletin);
return getDataTable(list);
}
/**
* 导出公告列表
*/
@PreAuthorize("@ss.hasPermi('mall:bulletin:export')")
@Log(title = "公告", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BusinessBulletin businessBulletin)
{
List<BusinessBulletin> list = businessBulletinService.selectBusinessBulletinList(businessBulletin);
ExcelUtil<BusinessBulletin> util = new ExcelUtil<BusinessBulletin>(BusinessBulletin.class);
util.exportExcel(response, list, "公告数据");
}
/**
* 获取公告详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:bulletin:query')")
@GetMapping(value = "/{bulletinId}")
public AjaxResult getInfo(@PathVariable("bulletinId") Long bulletinId)
{
return AjaxResult.success(businessBulletinService.selectBusinessBulletinByBulletinId(bulletinId));
}
/**
* 新增公告
*/
@PreAuthorize("@ss.hasPermi('mall:bulletin:add')")
@Log(title = "公告", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BusinessBulletin businessBulletin)
{
return toAjax(businessBulletinService.insertBusinessBulletin(businessBulletin));
}
/**
* 修改公告
*/
@PreAuthorize("@ss.hasPermi('mall:bulletin:edit')")
@Log(title = "公告", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BusinessBulletin businessBulletin)
{
return toAjax(businessBulletinService.updateBusinessBulletin(businessBulletin));
}
/**
* 删除公告
*/
@PreAuthorize("@ss.hasPermi('mall:bulletin:remove')")
@Log(title = "公告", businessType = BusinessType.DELETE)
@DeleteMapping("/{bulletinIds}")
public AjaxResult remove(@PathVariable Long[] bulletinIds)
{
return toAjax(businessBulletinService.deleteBusinessBulletinByBulletinIds(bulletinIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.BusinessCoupon;
import com.ruoyi.mall.service.IBusinessCouponService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 优惠卷Controller
*
* @author ruoyi
* @date 2023-10-25
*/
@RestController
@RequestMapping("/mall/coupon")
public class BusinessCouponController extends BaseController
{
@Autowired
private IBusinessCouponService businessCouponService;
/**
* 查询优惠卷列表
*/
@PreAuthorize("@ss.hasPermi('mall:coupon:list')")
@GetMapping("/list")
public TableDataInfo list(BusinessCoupon businessCoupon)
{
startPage();
List<BusinessCoupon> list = businessCouponService.selectBusinessCouponList(businessCoupon);
return getDataTable(list);
}
/**
* 导出优惠卷列表
*/
@PreAuthorize("@ss.hasPermi('mall:coupon:export')")
@Log(title = "优惠卷", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BusinessCoupon businessCoupon)
{
List<BusinessCoupon> list = businessCouponService.selectBusinessCouponList(businessCoupon);
ExcelUtil<BusinessCoupon> util = new ExcelUtil<BusinessCoupon>(BusinessCoupon.class);
util.exportExcel(response, list, "优惠卷数据");
}
/**
* 获取优惠卷详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:coupon:query')")
@GetMapping(value = "/{couponId}")
public AjaxResult getInfo(@PathVariable("couponId") Long couponId)
{
return AjaxResult.success(businessCouponService.selectBusinessCouponByCouponId(couponId));
}
/**
* 新增优惠卷
*/
@PreAuthorize("@ss.hasPermi('mall:coupon:add')")
@Log(title = "优惠卷", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BusinessCoupon businessCoupon)
{
return toAjax(businessCouponService.insertBusinessCoupon(businessCoupon));
}
/**
* 修改优惠卷
*/
@PreAuthorize("@ss.hasPermi('mall:coupon:edit')")
@Log(title = "优惠卷", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BusinessCoupon businessCoupon)
{
return toAjax(businessCouponService.updateBusinessCoupon(businessCoupon));
}
/**
* 删除优惠卷
*/
@PreAuthorize("@ss.hasPermi('mall:coupon:remove')")
@Log(title = "优惠卷", businessType = BusinessType.DELETE)
@DeleteMapping("/{couponIds}")
public AjaxResult remove(@PathVariable Long[] couponIds)
{
return toAjax(businessCouponService.deleteBusinessCouponByCouponIds(couponIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.mall.domain.Vo.BusinessQuestionVo;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.BusinessQuestion;
import com.ruoyi.mall.service.IBusinessQuestionService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 助手问题Controller
*
* @author ruoyi
* @date 2023-10-24
*/
@RestController
@RequestMapping("/mall/question")
public class BusinessQuestionController extends BaseController
{
@Autowired
private IBusinessQuestionService businessQuestionService;
/**
* 查询助手问题列表
*/
@PreAuthorize("@ss.hasPermi('mall:question:list')")
@GetMapping("/list")
public TableDataInfo list(BusinessQuestion businessQuestion)
{
startPage();
List<BusinessQuestionVo> list = businessQuestionService.selectBusinessQuestionList(businessQuestion);
return getDataTable(list);
}
/**
* 导出助手问题列表
*/
@PreAuthorize("@ss.hasPermi('mall:question:export')")
@Log(title = "助手问题", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BusinessQuestion businessQuestion)
{
List<BusinessQuestionVo> list = businessQuestionService.selectBusinessQuestionList(businessQuestion);
ExcelUtil<BusinessQuestionVo> util = new ExcelUtil<BusinessQuestionVo>(BusinessQuestionVo.class);
util.exportExcel(response, list, "助手问题数据");
}
/**
* 获取助手问题详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:question:query')")
@GetMapping(value = "/{questionId}")
public AjaxResult getInfo(@PathVariable("questionId") Long questionId)
{
return AjaxResult.success(businessQuestionService.selectBusinessQuestionByQuestionId(questionId));
}
/**
* 新增助手问题
*/
@PreAuthorize("@ss.hasPermi('mall:question:add')")
@Log(title = "助手问题", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BusinessQuestion businessQuestion)
{
return toAjax(businessQuestionService.insertBusinessQuestion(businessQuestion));
}
/**
* 修改助手问题
*/
@PreAuthorize("@ss.hasPermi('mall:question:edit')")
@Log(title = "助手问题", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BusinessQuestion businessQuestion)
{
return toAjax(businessQuestionService.updateBusinessQuestion(businessQuestion));
}
/**
* 删除助手问题
*/
@PreAuthorize("@ss.hasPermi('mall:question:remove')")
@Log(title = "助手问题", businessType = BusinessType.DELETE)
@DeleteMapping("/{questionIds}")
public AjaxResult remove(@PathVariable Long[] questionIds)
{
return toAjax(businessQuestionService.deleteBusinessQuestionByQuestionIds(questionIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.BusinessTutorial;
import com.ruoyi.mall.service.IBusinessTutorialService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 使用教程Controller
*
* @author ruoyi
* @date 2023-10-23
*/
@RestController
@RequestMapping("/mall/tutorial")
public class BusinessTutorialController extends BaseController
{
@Autowired
private IBusinessTutorialService businessTutorialService;
/**
* 查询使用教程列表
*/
@PreAuthorize("@ss.hasPermi('mall:tutorial:list')")
@GetMapping("/list")
public TableDataInfo list(BusinessTutorial businessTutorial)
{
startPage();
List<BusinessTutorial> list = businessTutorialService.selectBusinessTutorialList(businessTutorial);
return getDataTable(list);
}
/**
* 导出使用教程列表
*/
@PreAuthorize("@ss.hasPermi('mall:tutorial:export')")
@Log(title = "使用教程", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, BusinessTutorial businessTutorial)
{
List<BusinessTutorial> list = businessTutorialService.selectBusinessTutorialList(businessTutorial);
ExcelUtil<BusinessTutorial> util = new ExcelUtil<BusinessTutorial>(BusinessTutorial.class);
util.exportExcel(response, list, "使用教程数据");
}
/**
* 获取使用教程详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:tutorial:query')")
@GetMapping(value = "/{tutorialId}")
public AjaxResult getInfo(@PathVariable("tutorialId") Long tutorialId)
{
return AjaxResult.success(businessTutorialService.selectBusinessTutorialByTutorialId(tutorialId));
}
/**
* 新增使用教程
*/
@PreAuthorize("@ss.hasPermi('mall:tutorial:add')")
@Log(title = "使用教程", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody BusinessTutorial businessTutorial)
{
return toAjax(businessTutorialService.insertBusinessTutorial(businessTutorial));
}
/**
* 修改使用教程
*/
@PreAuthorize("@ss.hasPermi('mall:tutorial:edit')")
@Log(title = "使用教程", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody BusinessTutorial businessTutorial)
{
return toAjax(businessTutorialService.updateBusinessTutorial(businessTutorial));
}
/**
* 删除使用教程
*/
@PreAuthorize("@ss.hasPermi('mall:tutorial:remove')")
@Log(title = "使用教程", businessType = BusinessType.DELETE)
@DeleteMapping("/{tutorialIds}")
public AjaxResult remove(@PathVariable Long[] tutorialIds)
{
return toAjax(businessTutorialService.deleteBusinessTutorialByTutorialIds(tutorialIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.ContrastRecord;
import com.ruoyi.mall.service.IContrastRecordService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 添加对比记录Controller
*
* @author ruoyi
* @date 2023-10-27
*/
@RestController
@RequestMapping("/mall/contrastRecord")
public class ContrastRecordController extends BaseController
{
@Autowired
private IContrastRecordService contrastRecordService;
/**
* 查询添加对比记录列表
*/
@PreAuthorize("@ss.hasPermi('mall:contrastRecord:list')")
@GetMapping("/list")
public TableDataInfo list(ContrastRecord contrastRecord)
{
startPage();
List<ContrastRecord> list = contrastRecordService.selectContrastRecordList(contrastRecord);
return getDataTable(list);
}
/**
* 导出添加对比记录列表
*/
@PreAuthorize("@ss.hasPermi('mall:contrastRecord:export')")
@Log(title = "添加对比记录", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, ContrastRecord contrastRecord)
{
List<ContrastRecord> list = contrastRecordService.selectContrastRecordList(contrastRecord);
ExcelUtil<ContrastRecord> util = new ExcelUtil<ContrastRecord>(ContrastRecord.class);
util.exportExcel(response, list, "添加对比记录数据");
}
/**
* 获取添加对比记录详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:contrastRecord:query')")
@GetMapping(value = "/{recordId}")
public AjaxResult getInfo(@PathVariable("recordId") Long recordId)
{
return AjaxResult.success(contrastRecordService.selectContrastRecordByRecordId(recordId));
}
/**
* 新增添加对比记录
*/
@PreAuthorize("@ss.hasPermi('mall:contrastRecord:add')")
@Log(title = "添加对比记录", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody ContrastRecord contrastRecord)
{
return toAjax(contrastRecordService.insertContrastRecord(contrastRecord));
}
/**
* 修改添加对比记录
*/
@PreAuthorize("@ss.hasPermi('mall:contrastRecord:edit')")
@Log(title = "添加对比记录", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody ContrastRecord contrastRecord)
{
return toAjax(contrastRecordService.updateContrastRecord(contrastRecord));
}
/**
* 删除添加对比记录
*/
@PreAuthorize("@ss.hasPermi('mall:contrastRecord:remove')")
@Log(title = "添加对比记录", businessType = BusinessType.DELETE)
@DeleteMapping("/{recordIds}")
public AjaxResult remove(@PathVariable Long[] recordIds)
{
return toAjax(contrastRecordService.deleteContrastRecordByRecordIds(recordIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallAboutPrivacy;
import com.ruoyi.mall.service.IMallAboutPrivacyService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 关于我们、隐私Controller
*
* @author LCL
* @date 2023-07-11
*/
@RestController
@RequestMapping("/mall/mallAboutPrivacy")
public class MallAboutPrivacyController extends BaseController
{
@Resource
private IMallAboutPrivacyService mallAboutPrivacyService;
/**
* 查询关于我们、隐私列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallAboutPrivacy:list')")
@GetMapping("/list")
public TableDataInfo list(MallAboutPrivacy mallAboutPrivacy)
{
startPage();
List<MallAboutPrivacy> list = mallAboutPrivacyService.selectMallAboutPrivacyList(mallAboutPrivacy);
return getDataTable(list);
}
/**
* 导出关于我们、隐私列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallAboutPrivacy:export')")
@Log(title = "关于我们、隐私", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallAboutPrivacy mallAboutPrivacy)
{
List<MallAboutPrivacy> list = mallAboutPrivacyService.selectMallAboutPrivacyList(mallAboutPrivacy);
ExcelUtil<MallAboutPrivacy> util = new ExcelUtil<MallAboutPrivacy>(MallAboutPrivacy.class);
util.exportExcel(response, list, "关于我们、隐私数据");
}
/**
* 获取关于我们、隐私详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallAboutPrivacy:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(mallAboutPrivacyService.selectMallAboutPrivacyById(id));
}
/**
* 新增关于我们、隐私
*/
@PreAuthorize("@ss.hasPermi('mall:mallAboutPrivacy:add')")
@Log(title = "关于我们、隐私", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallAboutPrivacy mallAboutPrivacy)
{
return toAjax(mallAboutPrivacyService.insertMallAboutPrivacy(mallAboutPrivacy));
}
/**
* 修改关于我们、隐私
*/
@PreAuthorize("@ss.hasPermi('mall:mallAboutPrivacy:edit')")
@Log(title = "关于我们、隐私", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallAboutPrivacy mallAboutPrivacy)
{
return toAjax(mallAboutPrivacyService.updateMallAboutPrivacy(mallAboutPrivacy));
}
/**
* 删除关于我们、隐私
*/
@PreAuthorize("@ss.hasPermi('mall:mallAboutPrivacy:remove')")
@Log(title = "关于我们、隐私", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(mallAboutPrivacyService.deleteMallAboutPrivacyByIds(ids));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallAcceptPlan;
import com.ruoyi.mall.service.IMallAcceptPlanService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 招生计划Controller
*
* @author Lsm
* @date 2023-10-19
*/
@RestController
@RequestMapping("/mall/mallAcceptPlan")
public class MallAcceptPlanController extends BaseController
{
@Autowired
private IMallAcceptPlanService mallAcceptPlanService;
/**
* 查询招生计划列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallAcceptPlan:list')")
@GetMapping("/list")
public TableDataInfo list(MallAcceptPlan mallAcceptPlan)
{
startPage();
List<MallAcceptPlan> list = mallAcceptPlanService.selectMallAcceptPlanList(mallAcceptPlan);
return getDataTable(list);
}
/**
* 导出招生计划列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallAcceptPlan:export')")
@Log(title = "招生计划", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallAcceptPlan mallAcceptPlan)
{
List<MallAcceptPlan> list = mallAcceptPlanService.selectMallAcceptPlanList(mallAcceptPlan);
ExcelUtil<MallAcceptPlan> util = new ExcelUtil<MallAcceptPlan>(MallAcceptPlan.class);
util.exportExcel(response, list, "招生计划数据");
}
/**
* 获取招生计划详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallAcceptPlan:query')")
@GetMapping(value = "/{acceptPlanId}")
public AjaxResult getInfo(@PathVariable("acceptPlanId") Long acceptPlanId)
{
return AjaxResult.success(mallAcceptPlanService.selectMallAcceptPlanByAcceptPlanId(acceptPlanId));
}
/**
* 新增招生计划
*/
@PreAuthorize("@ss.hasPermi('mall:mallAcceptPlan:add')")
@Log(title = "招生计划", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallAcceptPlan mallAcceptPlan)
{
return toAjax(mallAcceptPlanService.insertMallAcceptPlan(mallAcceptPlan));
}
/**
* 修改招生计划
*/
@PreAuthorize("@ss.hasPermi('mall:mallAcceptPlan:edit')")
@Log(title = "招生计划", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallAcceptPlan mallAcceptPlan)
{
return toAjax(mallAcceptPlanService.updateMallAcceptPlan(mallAcceptPlan));
}
/**
* 删除招生计划
*/
@PreAuthorize("@ss.hasPermi('mall:mallAcceptPlan:remove')")
@Log(title = "招生计划", businessType = BusinessType.DELETE)
@DeleteMapping("/{acceptPlanIds}")
public AjaxResult remove(@PathVariable Long[] acceptPlanIds)
{
return toAjax(mallAcceptPlanService.deleteMallAcceptPlanByAcceptPlanIds(acceptPlanIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallAcceptRateSetting;
import com.ruoyi.mall.service.IMallAcceptRateSettingService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 录取率范围设定Controller
*
* @author ruoyi
* @date 2023-10-26
*/
@RestController
@RequestMapping("/mall/MallAcceptRateSetting")
public class MallAcceptRateSettingController extends BaseController
{
@Autowired
private IMallAcceptRateSettingService mallAcceptRateSettingService;
/**
* 查询录取率范围设定列表
*/
@PreAuthorize("@ss.hasPermi('mall:MallAcceptRateSetting:list')")
@GetMapping("/list")
public TableDataInfo list(MallAcceptRateSetting mallAcceptRateSetting)
{
startPage();
List<MallAcceptRateSetting> list = mallAcceptRateSettingService.selectMallAcceptRateSettingList(mallAcceptRateSetting);
return getDataTable(list);
}
/**
* 导出录取率范围设定列表
*/
@PreAuthorize("@ss.hasPermi('mall:MallAcceptRateSetting:export')")
@Log(title = "录取率范围设定", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallAcceptRateSetting mallAcceptRateSetting)
{
List<MallAcceptRateSetting> list = mallAcceptRateSettingService.selectMallAcceptRateSettingList(mallAcceptRateSetting);
ExcelUtil<MallAcceptRateSetting> util = new ExcelUtil<MallAcceptRateSetting>(MallAcceptRateSetting.class);
util.exportExcel(response, list, "录取率范围设定数据");
}
/**
* 获取录取率范围设定详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:MallAcceptRateSetting:query')")
@GetMapping(value = "/{rateMatchId}")
public AjaxResult getInfo(@PathVariable("rateMatchId") Long rateMatchId)
{
return AjaxResult.success(mallAcceptRateSettingService.selectMallAcceptRateSettingByRateMatchId(rateMatchId));
}
/**
* 新增录取率范围设定
*/
@PreAuthorize("@ss.hasPermi('mall:MallAcceptRateSetting:add')")
@Log(title = "录取率范围设定", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallAcceptRateSetting mallAcceptRateSetting)
{
return toAjax(mallAcceptRateSettingService.insertMallAcceptRateSetting(mallAcceptRateSetting));
}
/**
* 修改录取率范围设定
*/
@PreAuthorize("@ss.hasPermi('mall:MallAcceptRateSetting:edit')")
@Log(title = "录取率范围设定", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallAcceptRateSetting mallAcceptRateSetting)
{
return toAjax(mallAcceptRateSettingService.updateMallAcceptRateSetting(mallAcceptRateSetting));
}
/**
* 删除录取率范围设定
*/
@PreAuthorize("@ss.hasPermi('mall:MallAcceptRateSetting:remove')")
@Log(title = "录取率范围设定", businessType = BusinessType.DELETE)
@DeleteMapping("/{rateMatchIds}")
public AjaxResult remove(@PathVariable Long[] rateMatchIds)
{
return toAjax(mallAcceptRateSettingService.deleteMallAcceptRateSettingByRateMatchIds(rateMatchIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.common.annotation.RepeatSubmit;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallAcceptRule;
import com.ruoyi.mall.service.IMallAcceptRuleService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 录取原则Controller
*
* @author Lsm
* @date 2023-10-19
*/
@RestController
@RequestMapping("/mall/mallAcceptRule")
public class MallAcceptRuleController extends BaseController
{
@Autowired
private IMallAcceptRuleService mallAcceptRuleService;
/**
* 查询录取原则列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallAcceptRule:list')")
@GetMapping("/list")
public TableDataInfo list(MallAcceptRule mallAcceptRule)
{
startPage();
List<MallAcceptRule> list = mallAcceptRuleService.selectMallAcceptRuleList(mallAcceptRule);
return getDataTable(list);
}
/**
* 导出录取原则列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallAcceptRule:export')")
@Log(title = "录取原则", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallAcceptRule mallAcceptRule)
{
List<MallAcceptRule> list = mallAcceptRuleService.selectMallAcceptRuleList(mallAcceptRule);
ExcelUtil<MallAcceptRule> util = new ExcelUtil<MallAcceptRule>(MallAcceptRule.class);
util.exportExcel(response, list, "录取原则数据");
}
/**
* 获取录取原则详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallAcceptRule:query')")
@GetMapping(value = "/{acceptRuleId}")
public AjaxResult getInfo(@PathVariable("acceptRuleId") Long acceptRuleId)
{
return AjaxResult.success(mallAcceptRuleService.selectMallAcceptRuleByAcceptRuleId(acceptRuleId));
}
/**
* 新增录取原则
*/
@PreAuthorize("@ss.hasPermi('mall:mallAcceptRule:add')")
@Log(title = "录取原则", businessType = BusinessType.INSERT)
@RepeatSubmit
@PostMapping
public AjaxResult add(@RequestBody MallAcceptRule mallAcceptRule)
{
return mallAcceptRuleService.insertMallAcceptRule(mallAcceptRule);
}
/**
* 修改录取原则
*/
@PreAuthorize("@ss.hasPermi('mall:mallAcceptRule:edit')")
@Log(title = "录取原则", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallAcceptRule mallAcceptRule)
{
return toAjax(mallAcceptRuleService.updateMallAcceptRule(mallAcceptRule));
}
/**
* 删除录取原则
*/
@PreAuthorize("@ss.hasPermi('mall:mallAcceptRule:remove')")
@Log(title = "录取原则", businessType = BusinessType.DELETE)
@DeleteMapping("/{acceptRuleIds}")
public AjaxResult remove(@PathVariable Long[] acceptRuleIds)
{
return toAjax(mallAcceptRuleService.deleteMallAcceptRuleByAcceptRuleIds(acceptRuleIds));
}
/**
* 录取规则列表
* @return 结果
*/
@GetMapping("/selectNewAcceptRuleList")
public AjaxResult selectNewAcceptRuleList(){
Long ruleClass = null;
return AjaxResult.success(mallAcceptRuleService.selectNewAcceptRuleList(ruleClass));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallArt;
import com.ruoyi.mall.service.IMallArtService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 艺术分类Controller
*
* @author ruoyi
* @date 2023-11-02
*/
@RestController
@RequestMapping("/mall/mallArt")
public class MallArtController extends BaseController
{
@Autowired
private IMallArtService mallArtService;
/**
* 查询艺术分类列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallArt:list')")
@GetMapping("/list")
public TableDataInfo list(MallArt mallArt)
{
startPage();
List<MallArt> list = mallArtService.selectMallArtList(mallArt);
return getDataTable(list);
}
/**
* 导出艺术分类列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallArt:export')")
@Log(title = "艺术分类", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallArt mallArt)
{
List<MallArt> list = mallArtService.selectMallArtList(mallArt);
ExcelUtil<MallArt> util = new ExcelUtil<MallArt>(MallArt.class);
util.exportExcel(response, list, "艺术分类数据");
}
/**
* 获取艺术分类详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallArt:query')")
@GetMapping(value = "/{artId}")
public AjaxResult getInfo(@PathVariable("artId") Long artId)
{
return AjaxResult.success(mallArtService.selectMallArtByArtId(artId));
}
/**
* 新增艺术分类
*/
@PreAuthorize("@ss.hasPermi('mall:mallArt:add')")
@Log(title = "艺术分类", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallArt mallArt)
{
return toAjax(mallArtService.insertMallArt(mallArt));
}
/**
* 修改艺术分类
*/
@PreAuthorize("@ss.hasPermi('mall:mallArt:edit')")
@Log(title = "艺术分类", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallArt mallArt)
{
return toAjax(mallArtService.updateMallArt(mallArt));
}
/**
* 删除艺术分类
*/
@PreAuthorize("@ss.hasPermi('mall:mallArt:remove')")
@Log(title = "艺术分类", businessType = BusinessType.DELETE)
@DeleteMapping("/{artIds}")
public AjaxResult remove(@PathVariable Long[] artIds)
{
return toAjax(mallArtService.deleteMallArtByArtIds(artIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallBanner;
import com.ruoyi.mall.service.IMallBannerService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 轮播图Controller
*
* @author LCL
* @date 2023-07-11
*/
@RestController
@RequestMapping("/mall/mallBanner")
public class MallBannerController extends BaseController
{
@Resource
private IMallBannerService mallBannerService;
/**
* 查询轮播图列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallBanner:list')")
@GetMapping("/list")
public TableDataInfo list(MallBanner mallBanner)
{
startPage();
List<MallBanner> list = mallBannerService.selectMallBannerList(mallBanner);
return getDataTable(list);
}
/**
* 导出轮播图列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallBanner:export')")
@Log(title = "轮播图", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallBanner mallBanner)
{
List<MallBanner> list = mallBannerService.selectMallBannerList(mallBanner);
ExcelUtil<MallBanner> util = new ExcelUtil<MallBanner>(MallBanner.class);
util.exportExcel(response, list, "轮播图数据");
}
/**
* 获取轮播图详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallBanner:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(mallBannerService.selectMallBannerById(id));
}
/**
* 新增轮播图
*/
@PreAuthorize("@ss.hasPermi('mall:mallBanner:add')")
@Log(title = "轮播图", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallBanner mallBanner)
{
return toAjax(mallBannerService.insertMallBanner(mallBanner));
}
/**
* 修改轮播图
*/
@PreAuthorize("@ss.hasPermi('mall:mallBanner:edit')")
@Log(title = "轮播图", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallBanner mallBanner)
{
return toAjax(mallBannerService.updateMallBanner(mallBanner));
}
/**
* 删除轮播图
*/
@PreAuthorize("@ss.hasPermi('mall:mallBanner:remove')")
@Log(title = "轮播图", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(mallBannerService.deleteMallBannerByIds(ids));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.checkerframework.checker.units.qual.A;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallBatch;
import com.ruoyi.mall.service.IMallBatchService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 录取批次Controller
*
* @author Lsm
* @date 2023-10-19
*/
@RestController
@RequestMapping("/mall/mallBatch")
public class MallBatchController extends BaseController
{
@Autowired
private IMallBatchService mallBatchService;
/**
* 查询录取批次列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallBatch:list')")
@GetMapping("/list")
public TableDataInfo list(MallBatch mallBatch)
{
startPage();
List<MallBatch> list = mallBatchService.selectMallBatchList(mallBatch);
return getDataTable(list);
}
/**
* 导出录取批次列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallBatch:export')")
@Log(title = "录取批次", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallBatch mallBatch)
{
List<MallBatch> list = mallBatchService.selectMallBatchList(mallBatch);
ExcelUtil<MallBatch> util = new ExcelUtil<MallBatch>(MallBatch.class);
util.exportExcel(response, list, "录取批次数据");
}
/**
* 获取录取批次详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallBatch:query')")
@GetMapping(value = "/{batchId}")
public AjaxResult getInfo(@PathVariable("batchId") Long batchId)
{
return AjaxResult.success(mallBatchService.selectMallBatchByMallBatchId(batchId));
}
/**
* 新增录取批次
*/
@PreAuthorize("@ss.hasPermi('mall:mallBatch:add')")
@Log(title = "录取批次", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallBatch mallBatch)
{
return toAjax(mallBatchService.insertMallBatch(mallBatch));
}
/**
* 修改录取批次
*/
@PreAuthorize("@ss.hasPermi('mall:mallBatch:edit')")
@Log(title = "录取批次", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallBatch mallBatch)
{
return toAjax(mallBatchService.updateMallBatch(mallBatch));
}
/**
* 删除录取批次
*/
@PreAuthorize("@ss.hasPermi('mall:mallBatch:remove')")
@Log(title = "录取批次", businessType = BusinessType.DELETE)
@DeleteMapping("/{mallBatchIds}")
public AjaxResult remove(@PathVariable Long[] mallBatchIds)
{
return toAjax(mallBatchService.deleteMallBatchByMallBatchIds(mallBatchIds));
}
/**
* 所有批次列表
* @return 结果
*/
@GetMapping("/selectAllBatchList")
public AjaxResult selectAllBatchList(){
return AjaxResult.success(mallBatchService.selectAllBatchList());
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallBatchDetail;
import com.ruoyi.mall.service.IMallBatchDetailService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 批次说明Controller
*
* @author lsm
* @date 2023-10-19
*/
@RestController
@RequestMapping("/mall/mallBatchDetail")
public class MallBatchDetailController extends BaseController
{
@Autowired
private IMallBatchDetailService mallBatchDetailService;
/**
* 查询批次说明列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallBatchDetail:list')")
@GetMapping("/list")
public TableDataInfo list(MallBatchDetail mallBatchDetail)
{
startPage();
List<MallBatchDetail> list = mallBatchDetailService.selectMallBatchDetailList(mallBatchDetail);
return getDataTable(list);
}
/**
* 导出批次说明列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallBatchDetail:export')")
@Log(title = "批次说明", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallBatchDetail mallBatchDetail)
{
List<MallBatchDetail> list = mallBatchDetailService.selectMallBatchDetailList(mallBatchDetail);
ExcelUtil<MallBatchDetail> util = new ExcelUtil<MallBatchDetail>(MallBatchDetail.class);
util.exportExcel(response, list, "批次说明数据");
}
/**
* 获取批次说明详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallBatchDetail:query')")
@GetMapping(value = "/{batchDetailId}")
public AjaxResult getInfo(@PathVariable("batchDetailId") Long batchDetailId)
{
return AjaxResult.success(mallBatchDetailService.selectMallBatchDetailByBatchDetailId(batchDetailId));
}
/**
* 新增批次说明
*/
@PreAuthorize("@ss.hasPermi('mall:mallBatchDetail:add')")
@Log(title = "批次说明", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallBatchDetail mallBatchDetail)
{
//新增设限
MallBatchDetail param = new MallBatchDetail();
param.setBatchId(mallBatchDetail.getBatchId());
param.setProvinceId(mallBatchDetail.getProvinceId());
param.setYear(mallBatchDetail.getYear());
List<MallBatchDetail> oldList = mallBatchDetailService.selectMallBatchDetailList(param);
if(null != oldList && oldList.size()>0){
return AjaxResult.error(500,"不能重复添加");
}
return toAjax(mallBatchDetailService.insertMallBatchDetail(mallBatchDetail));
}
/**
* 修改批次说明
*/
@PreAuthorize("@ss.hasPermi('mall:mallBatchDetail:edit')")
@Log(title = "批次说明", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallBatchDetail mallBatchDetail)
{
return toAjax(mallBatchDetailService.updateMallBatchDetail(mallBatchDetail));
}
/**
* 删除批次说明
*/
@PreAuthorize("@ss.hasPermi('mall:mallBatchDetail:remove')")
@Log(title = "批次说明", businessType = BusinessType.DELETE)
@DeleteMapping("/{batchDetailIds}")
public AjaxResult remove(@PathVariable Long[] batchDetailIds)
{
return toAjax(mallBatchDetailService.deleteMallBatchDetailByBatchDetailIds(batchDetailIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallCareer;
import com.ruoyi.mall.service.IMallCareerService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 职业Controller
*
* @author LCL
* @date 2023-10-19
*/
@RestController
@RequestMapping("/mall/mallCareer")
public class MallCareerController extends BaseController
{
@Resource
private IMallCareerService mallCareerService;
/**
* 查询职业列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallCareer:list')")
@GetMapping("/list")
public TableDataInfo list(MallCareer mallCareer)
{
startPage();
List<MallCareer> list = mallCareerService.selectMallCareerList(mallCareer);
return getDataTable(list);
}
/**
* 导出职业列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallCareer:export')")
@Log(title = "职业", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallCareer mallCareer)
{
List<MallCareer> list = mallCareerService.selectMallCareerList(mallCareer);
ExcelUtil<MallCareer> util = new ExcelUtil<MallCareer>(MallCareer.class);
util.exportExcel(response, list, "职业数据");
}
/**
* 获取职业详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallCareer:query')")
@GetMapping(value = "/{careerId}")
public AjaxResult getInfo(@PathVariable("careerId") Long careerId)
{
return AjaxResult.success(mallCareerService.selectMallCareerByCareerId(careerId));
}
/**
* 新增职业
*/
@PreAuthorize("@ss.hasPermi('mall:mallCareer:add')")
@Log(title = "职业", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallCareer mallCareer)
{
return toAjax(mallCareerService.insertMallCareer(mallCareer));
}
/**
* 修改职业
*/
@PreAuthorize("@ss.hasPermi('mall:mallCareer:edit')")
@Log(title = "职业", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallCareer mallCareer)
{
return toAjax(mallCareerService.updateMallCareer(mallCareer));
}
/**
* 删除职业
*/
@PreAuthorize("@ss.hasPermi('mall:mallCareer:remove')")
@Log(title = "职业", businessType = BusinessType.DELETE)
@DeleteMapping("/{careerIds}")
public AjaxResult remove(@PathVariable Long[] careerIds)
{
return toAjax(mallCareerService.deleteMallCareerByCareerIds(careerIds));
}
/**
* 查询职业列表-下拉框
*/
@GetMapping("/getCareerDropDownList")
public AjaxResult getCareerDropDownList() {
List<MallCareer> list = mallCareerService.getCareerDropDownList();
return AjaxResult.success(list);
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallCareerMajor;
import com.ruoyi.mall.service.IMallCareerMajorService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 职业专业关联Controller
*
* @author ruoyi
* @date 2023-11-25
*/
@RestController
@RequestMapping("/mall/CareerMajor")
public class MallCareerMajorController extends BaseController
{
@Autowired
private IMallCareerMajorService mallCareerMajorService;
/**
* 查询职业专业关联列表
*/
@PreAuthorize("@ss.hasPermi('mall:CareerMajor:list')")
@GetMapping("/list")
public TableDataInfo list(MallCareerMajor mallCareerMajor)
{
startPage();
List<MallCareerMajor> list = mallCareerMajorService.selectMallCareerMajorList(mallCareerMajor);
return getDataTable(list);
}
/**
* 导出职业专业关联列表
*/
@PreAuthorize("@ss.hasPermi('mall:CareerMajor:export')")
@Log(title = "职业专业关联", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallCareerMajor mallCareerMajor)
{
List<MallCareerMajor> list = mallCareerMajorService.selectMallCareerMajorList(mallCareerMajor);
ExcelUtil<MallCareerMajor> util = new ExcelUtil<MallCareerMajor>(MallCareerMajor.class);
util.exportExcel(response, list, "职业专业关联数据");
}
/**
* 获取职业专业关联详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:CareerMajor:query')")
@GetMapping(value = "/{linkId}")
public AjaxResult getInfo(@PathVariable("linkId") Long linkId)
{
return AjaxResult.success(mallCareerMajorService.selectMallCareerMajorByLinkId(linkId));
}
/**
* 新增职业专业关联
*/
@PreAuthorize("@ss.hasPermi('mall:CareerMajor:add')")
@Log(title = "职业专业关联", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallCareerMajor mallCareerMajor)
{
return toAjax(mallCareerMajorService.insertMallCareerMajor(mallCareerMajor));
}
/**
* 修改职业专业关联
*/
@PreAuthorize("@ss.hasPermi('mall:CareerMajor:edit')")
@Log(title = "职业专业关联", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallCareerMajor mallCareerMajor)
{
return toAjax(mallCareerMajorService.updateMallCareerMajor(mallCareerMajor));
}
/**
* 删除职业专业关联
*/
@PreAuthorize("@ss.hasPermi('mall:CareerMajor:remove')")
@Log(title = "职业专业关联", businessType = BusinessType.DELETE)
@DeleteMapping("/{linkIds}")
public AjaxResult remove(@PathVariable Long[] linkIds)
{
return toAjax(mallCareerMajorService.deleteMallCareerMajorByLinkIds(linkIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallCareerSalary;
import com.ruoyi.mall.service.IMallCareerSalaryService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 职业薪资Controller
*
* @author LCL
* @date 2023-10-19
*/
@RestController
@RequestMapping("/mall/mallCareerSalary")
public class MallCareerSalaryController extends BaseController
{
@Resource
private IMallCareerSalaryService mallCareerSalaryService;
/**
* 查询职业薪资列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallCareerSalary:list')")
@GetMapping("/list")
public TableDataInfo list(MallCareerSalary mallCareerSalary)
{
startPage();
List<MallCareerSalary> list = mallCareerSalaryService.selectMallCareerSalaryList(mallCareerSalary);
return getDataTable(list);
}
/**
* 导出职业薪资列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallCareerSalary:export')")
@Log(title = "职业薪资", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallCareerSalary mallCareerSalary)
{
List<MallCareerSalary> list = mallCareerSalaryService.selectMallCareerSalaryList(mallCareerSalary);
ExcelUtil<MallCareerSalary> util = new ExcelUtil<MallCareerSalary>(MallCareerSalary.class);
util.exportExcel(response, list, "职业薪资数据");
}
/**
* 获取职业薪资详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallCareerSalary:query')")
@GetMapping(value = "/{careerSalaryId}")
public AjaxResult getInfo(@PathVariable("careerSalaryId") Long careerSalaryId)
{
return AjaxResult.success(mallCareerSalaryService.selectMallCareerSalaryByCareerSalaryId(careerSalaryId));
}
/**
* 新增职业薪资
*/
@PreAuthorize("@ss.hasPermi('mall:mallCareerSalary:add')")
@Log(title = "职业薪资", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallCareerSalary mallCareerSalary)
{
return toAjax(mallCareerSalaryService.insertMallCareerSalary(mallCareerSalary));
}
/**
* 修改职业薪资
*/
@PreAuthorize("@ss.hasPermi('mall:mallCareerSalary:edit')")
@Log(title = "职业薪资", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallCareerSalary mallCareerSalary)
{
return toAjax(mallCareerSalaryService.updateMallCareerSalary(mallCareerSalary));
}
/**
* 删除职业薪资
*/
@PreAuthorize("@ss.hasPermi('mall:mallCareerSalary:remove')")
@Log(title = "职业薪资", businessType = BusinessType.DELETE)
@DeleteMapping("/{careerSalaryIds}")
public AjaxResult remove(@PathVariable Long[] careerSalaryIds)
{
return toAjax(mallCareerSalaryService.deleteMallCareerSalaryByCareerSalaryIds(careerSalaryIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.mall.domain.MallConfig;
import com.ruoyi.mall.service.*;
import com.ruoyi.system.domain.SysUserRole;
import com.ruoyi.system.mapper.SysUserRoleMapper;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 配置Controller
*
* @author ruoyi
* @date 2023-10-09
*/
@RestController
@RequestMapping("/mall/config")
public class MallConfigController extends BaseController
{
@Resource
private IMallConfigService mallConfigService;
/**
* 查询配置列表
*/
@PreAuthorize("@ss.hasPermi('mall:config:list')")
@GetMapping("/list")
public TableDataInfo list(MallConfig mallConfig)
{
startPage();
List<MallConfig> list = mallConfigService.selectMallConfigList(mallConfig);
return getDataTable(list);
}
/**
* 导出配置列表
*/
@PreAuthorize("@ss.hasPermi('mall:config:export')")
@Log(title = "配置", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallConfig mallConfig)
{
List<MallConfig> list = mallConfigService.selectMallConfigList(mallConfig);
ExcelUtil<MallConfig> util = new ExcelUtil<MallConfig>(MallConfig.class);
util.exportExcel(response, list, "配置数据");
}
/**
* 获取配置详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:config:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(mallConfigService.selectMallConfigById(id));
}
/**
* 新增配置
*/
@PreAuthorize("@ss.hasPermi('mall:config:add')")
@Log(title = "配置", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallConfig mallConfig)
{
mallConfig.setCreateAt(DateUtils.getTime());
return toAjax(mallConfigService.insertMallConfig(mallConfig));
}
/**
* 修改配置
*/
@PreAuthorize("@ss.hasPermi('mall:config:edit')")
@Log(title = "配置", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallConfig mallConfig)
{
return toAjax(mallConfigService.updateMallConfig(mallConfig));
}
/**
* 删除配置
*/
@PreAuthorize("@ss.hasPermi('mall:config:remove')")
@Log(title = "配置", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(mallConfigService.deleteMallConfigByIds(ids));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallConfigFunction;
import com.ruoyi.mall.service.IMallConfigFunctionService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 更多功能Controller
*
* @author LCL
* @date 2023-10-24
*/
@RestController
@RequestMapping("/mall/mallConfigFunction")
public class MallConfigFunctionController extends BaseController
{
@Resource
private IMallConfigFunctionService mallConfigFunctionService;
/**
* 查询更多功能列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallConfigFunction:list')")
@GetMapping("/list")
public TableDataInfo list(MallConfigFunction mallConfigFunction)
{
startPage();
List<MallConfigFunction> list = mallConfigFunctionService.selectMallConfigFunctionList(mallConfigFunction);
return getDataTable(list);
}
/**
* 导出更多功能列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallConfigFunction:export')")
@Log(title = "更多功能", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallConfigFunction mallConfigFunction)
{
List<MallConfigFunction> list = mallConfigFunctionService.selectMallConfigFunctionList(mallConfigFunction);
ExcelUtil<MallConfigFunction> util = new ExcelUtil<MallConfigFunction>(MallConfigFunction.class);
util.exportExcel(response, list, "更多功能数据");
}
/**
* 获取更多功能详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallConfigFunction:query')")
@GetMapping(value = "/{configFunctionId}")
public AjaxResult getInfo(@PathVariable("configFunctionId") Long configFunctionId)
{
return AjaxResult.success(mallConfigFunctionService.selectMallConfigFunctionByConfigFunctionId(configFunctionId));
}
/**
* 新增更多功能
*/
@PreAuthorize("@ss.hasPermi('mall:mallConfigFunction:add')")
@Log(title = "更多功能", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallConfigFunction mallConfigFunction)
{
return toAjax(mallConfigFunctionService.insertMallConfigFunction(mallConfigFunction));
}
/**
* 修改更多功能
*/
@PreAuthorize("@ss.hasPermi('mall:mallConfigFunction:edit')")
@Log(title = "更多功能", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallConfigFunction mallConfigFunction)
{
return toAjax(mallConfigFunctionService.updateMallConfigFunction(mallConfigFunction));
}
/**
* 删除更多功能
*/
@PreAuthorize("@ss.hasPermi('mall:mallConfigFunction:remove')")
@Log(title = "更多功能", businessType = BusinessType.DELETE)
@DeleteMapping("/{configFunctionIds}")
public AjaxResult remove(@PathVariable Long[] configFunctionIds)
{
return toAjax(mallConfigFunctionService.deleteMallConfigFunctionByConfigFunctionIds(configFunctionIds));
}
}
package com.ruoyi.mall.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.mall.domain.MallConfigLevel;
import com.ruoyi.mall.service.IMallConfigLevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 办学层次设置(985、211)Controller
*
* @author Lsm
* @date 2023-10-18
*/
@RestController
@RequestMapping("/mall/mallConfigLevel")
public class MallConfigLevelController extends BaseController
{
@Autowired
private IMallConfigLevelService mallConfigLevelService;
/**
* 查询办学层次设置(985、211)列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallConfigLevel:list')")
@GetMapping("/list")
public TableDataInfo list(MallConfigLevel mallConfigLevel)
{
startPage();
List<MallConfigLevel> list = mallConfigLevelService.selectMallConfigLevelList(mallConfigLevel);
return getDataTable(list);
}
/**
* 导出办学层次设置(985、211)列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallConfigLevel:export')")
@Log(title = "办学层次设置(985、211)", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallConfigLevel mallConfigLevel)
{
List<MallConfigLevel> list = mallConfigLevelService.selectMallConfigLevelList(mallConfigLevel);
ExcelUtil<MallConfigLevel> util = new ExcelUtil<MallConfigLevel>(MallConfigLevel.class);
util.exportExcel(response, list, "办学层次设置(985、211)数据");
}
/**
* 获取办学层次设置(985、211)详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallConfigLevel:query')")
@GetMapping(value = "/{configLevelId}")
public AjaxResult getInfo(@PathVariable("configLevelId") Long configLevelId)
{
return AjaxResult.success(mallConfigLevelService.selectMallConfigLevelByConfigLevelId(configLevelId));
}
/**
* 新增办学层次设置(985、211)
*/
@PreAuthorize("@ss.hasPermi('mall:mallConfigLevel:add')")
@Log(title = "办学层次设置(985、211)", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallConfigLevel mallConfigLevel)
{
return toAjax(mallConfigLevelService.insertMallConfigLevel(mallConfigLevel));
}
/**
* 修改办学层次设置(985、211)
*/
@PreAuthorize("@ss.hasPermi('mall:mallConfigLevel:edit')")
@Log(title = "办学层次设置(985、211)", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallConfigLevel mallConfigLevel)
{
return toAjax(mallConfigLevelService.updateMallConfigLevel(mallConfigLevel));
}
/**
* 删除办学层次设置(985、211)
*/
@PreAuthorize("@ss.hasPermi('mall:mallConfigLevel:remove')")
@Log(title = "办学层次设置(985、211)", businessType = BusinessType.DELETE)
@DeleteMapping("/{configLevelIds}")
public AjaxResult remove(@PathVariable Long[] configLevelIds)
{
return toAjax(mallConfigLevelService.deleteMallConfigLevelByConfigLevelIds(configLevelIds));
}
/**
* 办学层次列表
* @return 结果
*/
@GetMapping("/selectLevelList")
public AjaxResult selectLevelList(){
return AjaxResult.success(mallConfigLevelService.selectLevelList());
}
}
package com.ruoyi.mall.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.mall.domain.MallConfigType;
import com.ruoyi.mall.service.IMallConfigTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 学校类型设置(综合类、理工类)Controller
*
* @author Lsm
* @date 2023-10-18
*/
@RestController
@RequestMapping("/mall/mallConfigType")
public class MallConfigTypeController extends BaseController
{
@Autowired
private IMallConfigTypeService mallConfigTypeService;
/**
* 查询学校类型设置(综合类、理工类)列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallConfigType:list')")
@GetMapping("/list")
public TableDataInfo list(MallConfigType mallConfigType)
{
startPage();
List<MallConfigType> list = mallConfigTypeService.selectMallConfigTypeList(mallConfigType);
return getDataTable(list);
}
/**
* 导出学校类型设置(综合类、理工类)列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallConfigType:export')")
@Log(title = "学校类型设置(综合类、理工类)", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallConfigType mallConfigType)
{
List<MallConfigType> list = mallConfigTypeService.selectMallConfigTypeList(mallConfigType);
ExcelUtil<MallConfigType> util = new ExcelUtil<MallConfigType>(MallConfigType.class);
util.exportExcel(response, list, "学校类型设置(综合类、理工类)数据");
}
/**
* 获取学校类型设置(综合类、理工类)详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallConfigType:query')")
@GetMapping(value = "/{configTypeId}")
public AjaxResult getInfo(@PathVariable("configTypeId") Long configTypeId)
{
return AjaxResult.success(mallConfigTypeService.selectMallConfigTypeByConfigTypeId(configTypeId));
}
/**
* 新增学校类型设置(综合类、理工类)
*/
@PreAuthorize("@ss.hasPermi('mall:mallConfigType:add')")
@Log(title = "学校类型设置(综合类、理工类)", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallConfigType mallConfigType)
{
return toAjax(mallConfigTypeService.insertMallConfigType(mallConfigType));
}
/**
* 修改学校类型设置(综合类、理工类)
*/
@PreAuthorize("@ss.hasPermi('mall:mallConfigType:edit')")
@Log(title = "学校类型设置(综合类、理工类)", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallConfigType mallConfigType)
{
return toAjax(mallConfigTypeService.updateMallConfigType(mallConfigType));
}
/**
* 删除学校类型设置(综合类、理工类)
*/
@PreAuthorize("@ss.hasPermi('mall:mallConfigType:remove')")
@Log(title = "学校类型设置(综合类、理工类)", businessType = BusinessType.DELETE)
@DeleteMapping("/{configTypeIds}")
public AjaxResult remove(@PathVariable Long[] configTypeIds)
{
return toAjax(mallConfigTypeService.deleteMallConfigTypeByConfigTypeIds(configTypeIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallCountMethod;
import com.ruoyi.mall.service.IMallCountMethodService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 计算公式数据Controller
*
* @author ruoyi
* @date 2023-10-25
*/
@RestController
@RequestMapping("/mall/method")
public class MallCountMethodController extends BaseController
{
@Autowired
private IMallCountMethodService mallCountMethodService;
/**
* 查询计算公式数据列表
*/
@PreAuthorize("@ss.hasPermi('mall:method:list')")
@GetMapping("/list")
public TableDataInfo list(MallCountMethod mallCountMethod)
{
startPage();
List<MallCountMethod> list = mallCountMethodService.selectMallCountMethodList(mallCountMethod);
return getDataTable(list);
}
/**
* 导出计算公式数据列表
*/
@PreAuthorize("@ss.hasPermi('mall:method:export')")
@Log(title = "计算公式数据", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallCountMethod mallCountMethod)
{
List<MallCountMethod> list = mallCountMethodService.selectMallCountMethodList(mallCountMethod);
ExcelUtil<MallCountMethod> util = new ExcelUtil<MallCountMethod>(MallCountMethod.class);
util.exportExcel(response, list, "计算公式数据数据");
}
/**
* 获取计算公式数据详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:method:query')")
@GetMapping(value = "/{countMethodId}")
public AjaxResult getInfo(@PathVariable("countMethodId") Long countMethodId)
{
return AjaxResult.success(mallCountMethodService.selectMallCountMethodByCountMethodId(countMethodId));
}
/**
* 新增计算公式数据
*/
@PreAuthorize("@ss.hasPermi('mall:method:add')")
@Log(title = "计算公式数据", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallCountMethod mallCountMethod)
{
return toAjax(mallCountMethodService.insertMallCountMethod(mallCountMethod));
}
/**
* 修改计算公式数据
*/
@PreAuthorize("@ss.hasPermi('mall:method:edit')")
@Log(title = "计算公式数据", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallCountMethod mallCountMethod)
{
return toAjax(mallCountMethodService.updateMallCountMethod(mallCountMethod));
}
/**
* 删除计算公式数据
*/
@PreAuthorize("@ss.hasPermi('mall:method:remove')")
@Log(title = "计算公式数据", businessType = BusinessType.DELETE)
@DeleteMapping("/{countMethodIds}")
public AjaxResult remove(@PathVariable Long[] countMethodIds)
{
return toAjax(mallCountMethodService.deleteMallCountMethodByCountMethodIds(countMethodIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallExamData;
import com.ruoyi.mall.service.IMallExamDataService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 报考数据Controller
*
* @author LCL
* @date 2023-10-24
*/
@RestController
@RequestMapping("/mall/mallExamData")
public class MallExamDataController extends BaseController
{
@Autowired
private IMallExamDataService mallExamDataService;
/**
* 查询报考数据列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallExamData:list')")
@GetMapping("/list")
public TableDataInfo list(MallExamData mallExamData)
{
startPage();
List<MallExamData> list = mallExamDataService.selectMallExamDataList(mallExamData);
return getDataTable(list);
}
/**
* 导出报考数据列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallExamData:export')")
@Log(title = "报考数据", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallExamData mallExamData)
{
List<MallExamData> list = mallExamDataService.selectMallExamDataList(mallExamData);
ExcelUtil<MallExamData> util = new ExcelUtil<MallExamData>(MallExamData.class);
util.exportExcel(response, list, "报考数据数据");
}
/**
* 获取报考数据详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallExamData:query')")
@GetMapping(value = "/{examDataId}")
public AjaxResult getInfo(@PathVariable("examDataId") Long examDataId)
{
return AjaxResult.success(mallExamDataService.selectMallExamDataByExamDataId(examDataId));
}
/**
* 新增报考数据
*/
@PreAuthorize("@ss.hasPermi('mall:mallExamData:add')")
@Log(title = "报考数据", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallExamData mallExamData)
{
return toAjax(mallExamDataService.insertMallExamData(mallExamData));
}
/**
* 修改报考数据
*/
@PreAuthorize("@ss.hasPermi('mall:mallExamData:edit')")
@Log(title = "报考数据", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallExamData mallExamData)
{
return toAjax(mallExamDataService.updateMallExamData(mallExamData));
}
/**
* 删除报考数据
*/
@PreAuthorize("@ss.hasPermi('mall:mallExamData:remove')")
@Log(title = "报考数据", businessType = BusinessType.DELETE)
@DeleteMapping("/{examDataIds}")
public AjaxResult remove(@PathVariable Long[] examDataIds)
{
return toAjax(mallExamDataService.deleteMallExamDataByExamDataIds(examDataIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallExamSection;
import com.ruoyi.mall.service.IMallExamSectionService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 联考一分一段Controller
*
* @author LCL
* @date 2023-10-23
*/
@RestController
@RequestMapping("/mall/mallExamSection")
public class MallExamSectionController extends BaseController
{
@Resource
private IMallExamSectionService mallExamSectionService;
/**
* 查询联考一分一段列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallExamSection:list')")
@GetMapping("/list")
public TableDataInfo list(MallExamSection mallExamSection)
{
startPage();
List<MallExamSection> list = mallExamSectionService.selectMallExamSectionList(mallExamSection);
return getDataTable(list);
}
/**
* 导出联考一分一段列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallExamSection:export')")
@Log(title = "联考一分一段", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallExamSection mallExamSection)
{
List<MallExamSection> list = mallExamSectionService.selectMallExamSectionList(mallExamSection);
ExcelUtil<MallExamSection> util = new ExcelUtil<MallExamSection>(MallExamSection.class);
util.exportExcel(response, list, "联考一分一段数据");
}
/**
* 获取联考一分一段详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallExamSection:query')")
@GetMapping(value = "/{sectionId}")
public AjaxResult getInfo(@PathVariable("sectionId") Long sectionId)
{
return AjaxResult.success(mallExamSectionService.selectMallExamSectionBySectionId(sectionId));
}
/**
* 新增联考一分一段
*/
@PreAuthorize("@ss.hasPermi('mall:mallExamSection:add')")
@Log(title = "联考一分一段", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallExamSection mallExamSection)
{
return toAjax(mallExamSectionService.insertMallExamSection(mallExamSection));
}
/**
* 修改联考一分一段
*/
@PreAuthorize("@ss.hasPermi('mall:mallExamSection:edit')")
@Log(title = "联考一分一段", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallExamSection mallExamSection)
{
return toAjax(mallExamSectionService.updateMallExamSection(mallExamSection));
}
/**
* 删除联考一分一段
*/
@PreAuthorize("@ss.hasPermi('mall:mallExamSection:remove')")
@Log(title = "联考一分一段", businessType = BusinessType.DELETE)
@DeleteMapping("/{sectionIds}")
public AjaxResult remove(@PathVariable Long[] sectionIds)
{
return toAjax(mallExamSectionService.deleteMallExamSectionBySectionIds(sectionIds));
}
}
package com.ruoyi.mall.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.mall.domain.MallFacultyInfo;
import com.ruoyi.mall.service.IMallFacultyInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 学院介绍Controller
*
* @author Lsm
* @date 2023-10-18
*/
@RestController
@RequestMapping("/mall/mallFacultyInfo")
public class MallFacultyInfoController extends BaseController
{
@Autowired
private IMallFacultyInfoService mallFacultyInfoService;
/**
* 查询学院介绍列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallFacultyInfo:list')")
@GetMapping("/list")
public TableDataInfo list(MallFacultyInfo mallFacultyInfo)
{
startPage();
List<MallFacultyInfo> list = mallFacultyInfoService.selectMallFacultyInfoList(mallFacultyInfo);
return getDataTable(list);
}
/**
* 导出学院介绍列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallFacultyInfo:export')")
@Log(title = "学院介绍", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallFacultyInfo mallFacultyInfo)
{
List<MallFacultyInfo> list = mallFacultyInfoService.selectMallFacultyInfoList(mallFacultyInfo);
ExcelUtil<MallFacultyInfo> util = new ExcelUtil<MallFacultyInfo>(MallFacultyInfo.class);
util.exportExcel(response, list, "学院介绍数据");
}
/**
* 获取学院介绍详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallFacultyInfo:query')")
@GetMapping(value = "/{facultyId}")
public AjaxResult getInfo(@PathVariable("facultyId") Long facultyId)
{
return AjaxResult.success(mallFacultyInfoService.selectMallFacultyInfoByFacultyId(facultyId));
}
/**
* 新增学院介绍
*/
@PreAuthorize("@ss.hasPermi('mall:mallFacultyInfo:add')")
@Log(title = "学院介绍", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallFacultyInfo mallFacultyInfo)
{
return toAjax(mallFacultyInfoService.insertMallFacultyInfo(mallFacultyInfo));
}
/**
* 修改学院介绍
*/
@PreAuthorize("@ss.hasPermi('mall:mallFacultyInfo:edit')")
@Log(title = "学院介绍", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallFacultyInfo mallFacultyInfo)
{
return toAjax(mallFacultyInfoService.updateMallFacultyInfo(mallFacultyInfo));
}
/**
* 删除学院介绍
*/
@PreAuthorize("@ss.hasPermi('mall:mallFacultyInfo:remove')")
@Log(title = "学院介绍", businessType = BusinessType.DELETE)
@DeleteMapping("/{facultyIds}")
public AjaxResult remove(@PathVariable Long[] facultyIds)
{
return toAjax(mallFacultyInfoService.deleteMallFacultyInfoByFacultyIds(facultyIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallIndustryAnalysis;
import com.ruoyi.mall.service.IMallIndustryAnalysisService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 行业分析Controller
*
* @author LCL
* @date 2023-10-20
*/
@RestController
@RequestMapping("/mall/mallIndustryAnalysis")
public class MallIndustryAnalysisController extends BaseController
{
@Resource
private IMallIndustryAnalysisService mallIndustryAnalysisService;
/**
* 查询行业分析列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallIndustryAnalysis:list')")
@GetMapping("/list")
public TableDataInfo list(MallIndustryAnalysis mallIndustryAnalysis)
{
startPage();
List<MallIndustryAnalysis> list = mallIndustryAnalysisService.selectMallIndustryAnalysisList(mallIndustryAnalysis);
return getDataTable(list);
}
/**
* 导出行业分析列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallIndustryAnalysis:export')")
@Log(title = "行业分析", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallIndustryAnalysis mallIndustryAnalysis)
{
List<MallIndustryAnalysis> list = mallIndustryAnalysisService.selectMallIndustryAnalysisList(mallIndustryAnalysis);
ExcelUtil<MallIndustryAnalysis> util = new ExcelUtil<MallIndustryAnalysis>(MallIndustryAnalysis.class);
util.exportExcel(response, list, "行业分析数据");
}
/**
* 获取行业分析详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallIndustryAnalysis:query')")
@GetMapping(value = "/{industryAnalysisId}")
public AjaxResult getInfo(@PathVariable("industryAnalysisId") Long industryAnalysisId)
{
return AjaxResult.success(mallIndustryAnalysisService.selectMallIndustryAnalysisByIndustryAnalysisId(industryAnalysisId));
}
/**
* 新增行业分析
*/
@PreAuthorize("@ss.hasPermi('mall:mallIndustryAnalysis:add')")
@Log(title = "行业分析", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallIndustryAnalysis mallIndustryAnalysis)
{
if ("3".equals(mallIndustryAnalysis.getTitleClass())) {
mallIndustryAnalysis.setType("1");
}
return toAjax(mallIndustryAnalysisService.insertMallIndustryAnalysis(mallIndustryAnalysis));
}
/**
* 修改行业分析
*/
@PreAuthorize("@ss.hasPermi('mall:mallIndustryAnalysis:edit')")
@Log(title = "行业分析", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallIndustryAnalysis mallIndustryAnalysis)
{
if ("3".equals(mallIndustryAnalysis.getTitleClass())) {
mallIndustryAnalysis.setType("1");
}
return toAjax(mallIndustryAnalysisService.updateMallIndustryAnalysis(mallIndustryAnalysis));
}
/**
* 删除行业分析
*/
@PreAuthorize("@ss.hasPermi('mall:mallIndustryAnalysis:remove')")
@Log(title = "行业分析", businessType = BusinessType.DELETE)
@DeleteMapping("/{industryAnalysisIds}")
public AjaxResult remove(@PathVariable Long[] industryAnalysisIds)
{
return toAjax(mallIndustryAnalysisService.deleteMallIndustryAnalysisByIndustryAnalysisIds(industryAnalysisIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallIndustryClass;
import com.ruoyi.mall.service.IMallIndustryClassService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 行业分类Controller
*
* @author ruoyi
* @date 2023-12-15
*/
@RestController
@RequestMapping("/mall/IndustryClass")
public class MallIndustryClassController extends BaseController
{
@Autowired
private IMallIndustryClassService mallIndustryClassService;
/**
* 查询行业分类列表
*/
@PreAuthorize("@ss.hasPermi('mall:IndustryClass:list')")
@GetMapping("/list")
public List<MallIndustryClass> classList(MallIndustryClass mallIndustryClass)
{
return mallIndustryClassService.selectMallIndustryClassList(mallIndustryClass);
}
/**
* 查询行业分类列表
*/
@PreAuthorize("@ss.hasPermi('mall:IndustryClass:list')")
@GetMapping("/PageList")
public TableDataInfo list(MallIndustryClass mallIndustryClass)
{
startPage();
List<MallIndustryClass> list = mallIndustryClassService.selectMallIndustryClassList(mallIndustryClass);
return getDataTable(list);
}
/**
* 导出行业分类列表
*/
@PreAuthorize("@ss.hasPermi('mall:IndustryClass:export')")
@Log(title = "行业分类", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallIndustryClass mallIndustryClass)
{
List<MallIndustryClass> list = mallIndustryClassService.selectMallIndustryClassList(mallIndustryClass);
ExcelUtil<MallIndustryClass> util = new ExcelUtil<MallIndustryClass>(MallIndustryClass.class);
util.exportExcel(response, list, "行业分类数据");
}
/**
* 获取行业分类详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:IndustryClass:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(mallIndustryClassService.selectMallIndustryClassById(id));
}
/**
* 新增行业分类
*/
@PreAuthorize("@ss.hasPermi('mall:IndustryClass:add')")
@Log(title = "行业分类", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallIndustryClass mallIndustryClass)
{
return toAjax(mallIndustryClassService.insertMallIndustryClass(mallIndustryClass));
}
/**
* 修改行业分类
*/
@PreAuthorize("@ss.hasPermi('mall:IndustryClass:edit')")
@Log(title = "行业分类", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallIndustryClass mallIndustryClass)
{
return toAjax(mallIndustryClassService.updateMallIndustryClass(mallIndustryClass));
}
/**
* 删除行业分类
*/
@PreAuthorize("@ss.hasPermi('mall:IndustryClass:remove')")
@Log(title = "行业分类", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(mallIndustryClassService.deleteMallIndustryClassByIds(ids));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.mall.service.IMallLinkIndustryCareerService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallIndustry;
import com.ruoyi.mall.service.IMallIndustryService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 行业Controller
*
* @author LCL
* @date 2023-10-20
*/
@RestController
@RequestMapping("/mall/mallIndustry")
public class MallIndustryController extends BaseController
{
@Resource
private IMallIndustryService mallIndustryService;
@Resource
private IMallLinkIndustryCareerService mallLinkIndustryCareerService;
/**
* 查询行业列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallIndustry:list')")
@GetMapping("/list")
public TableDataInfo list(MallIndustry mallIndustry)
{
startPage();
List<MallIndustry> list = mallIndustryService.selectMallIndustryList(mallIndustry);
return getDataTable(list);
}
/**
* 导出行业列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallIndustry:export')")
@Log(title = "行业", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallIndustry mallIndustry)
{
List<MallIndustry> list = mallIndustryService.selectMallIndustryList(mallIndustry);
ExcelUtil<MallIndustry> util = new ExcelUtil<MallIndustry>(MallIndustry.class);
util.exportExcel(response, list, "行业数据");
}
/**
* 获取行业详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallIndustry:query')")
@GetMapping(value = "/{industryId}")
public AjaxResult getInfo(@PathVariable("industryId") Long industryId)
{
return AjaxResult.success(mallIndustryService.selectMallIndustryByIndustryId(industryId));
}
/**
* 新增行业
*/
@PreAuthorize("@ss.hasPermi('mall:mallIndustry:add')")
@Log(title = "行业", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallIndustry mallIndustry)
{
return toAjax(mallIndustryService.insertMallIndustry(mallIndustry));
}
/**
* 修改行业
*/
@PreAuthorize("@ss.hasPermi('mall:mallIndustry:edit')")
@Log(title = "行业", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallIndustry mallIndustry)
{
return toAjax(mallIndustryService.updateMallIndustry(mallIndustry));
}
/**
* 删除行业
*/
@PreAuthorize("@ss.hasPermi('mall:mallIndustry:remove')")
@Log(title = "行业", businessType = BusinessType.DELETE)
@DeleteMapping("/{industryIds}")
public AjaxResult remove(@PathVariable Long[] industryIds)
{
return toAjax(mallIndustryService.deleteMallIndustryByIndustryIds(industryIds));
}
/**
* 修改行业关联职业
*/
@Log(title = "修改行业关联职业", businessType = BusinessType.UPDATE)
@PutMapping("/updateIndustryCareer")
public AjaxResult updateIndustryCareer(@RequestBody MallIndustry mallIndustry)
{
mallLinkIndustryCareerService.deleteMallLinkIndustryCareerByIndustryId(mallIndustry.getIndustryId());
mallLinkIndustryCareerService.batchInsertMallLinkIndustryCareer(mallIndustry.getIndustryId(), mallIndustry.getCareerList());
return AjaxResult.success();
}
}
package com.ruoyi.mall.controller;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.mall.domain.MallIntroduceClass;
import com.ruoyi.mall.service.IMallIntroduceClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 学校介绍类别Controller
*
* @author Lsm
* @date 2023-10-18
*/
@RestController
@RequestMapping("/mall/mallIntroduceClass")
public class MallIntroduceClassController extends BaseController
{
@Autowired
private IMallIntroduceClassService mallIntroduceClassService;
/**
* 查询学校介绍类别列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallIntroduceClass:list')")
@GetMapping("/list")
public TableDataInfo list(MallIntroduceClass mallIntroduceClass)
{
startPage();
List<MallIntroduceClass> list = mallIntroduceClassService.selectMallIntroduceClassList(mallIntroduceClass);
return getDataTable(list);
}
/**
* 导出学校介绍类别列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallIntroduceClass:export')")
@Log(title = "学校介绍类别", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallIntroduceClass mallIntroduceClass)
{
List<MallIntroduceClass> list = mallIntroduceClassService.selectMallIntroduceClassList(mallIntroduceClass);
ExcelUtil<MallIntroduceClass> util = new ExcelUtil<MallIntroduceClass>(MallIntroduceClass.class);
util.exportExcel(response, list, "学校介绍类别数据");
}
/**
* 获取学校介绍类别详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallIntroduceClass:query')")
@GetMapping(value = "/{introduceClassId}")
public AjaxResult getInfo(@PathVariable("introduceClassId") Long introduceClassId)
{
return AjaxResult.success(mallIntroduceClassService.selectMallIntroduceClassByIntroduceClassId(introduceClassId));
}
/**
* 新增学校介绍类别
*/
@PreAuthorize("@ss.hasPermi('mall:mallIntroduceClass:add')")
@Log(title = "学校介绍类别", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallIntroduceClass mallIntroduceClass)
{
return toAjax(mallIntroduceClassService.insertMallIntroduceClass(mallIntroduceClass));
}
/**
* 修改学校介绍类别
*/
@PreAuthorize("@ss.hasPermi('mall:mallIntroduceClass:edit')")
@Log(title = "学校介绍类别", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallIntroduceClass mallIntroduceClass)
{
return toAjax(mallIntroduceClassService.updateMallIntroduceClass(mallIntroduceClass));
}
/**
* 删除学校介绍类别
*/
@PreAuthorize("@ss.hasPermi('mall:mallIntroduceClass:remove')")
@Log(title = "学校介绍类别", businessType = BusinessType.DELETE)
@DeleteMapping("/{introduceClassIds}")
public AjaxResult remove(@PathVariable Long[] introduceClassIds)
{
return toAjax(mallIntroduceClassService.deleteMallIntroduceClassByIntroduceClassIds(introduceClassIds));
}
/**
* 查询分类列表
* @return
*/
@GetMapping("/selectClassList")
public AjaxResult selectClassList()
{
MallIntroduceClass mallIntroduceClass = new MallIntroduceClass();
List<MallIntroduceClass> list = mallIntroduceClassService.selectMallIntroduceClassList(mallIntroduceClass);
return AjaxResult.success(list);
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallLinkCareerMajor;
import com.ruoyi.mall.service.IMallLinkCareerMajorService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 职业与专业关联Controller
*
* @author LCL
* @date 2023-10-19
*/
@RestController
@RequestMapping("/mall/mallLinkCareerMajor")
public class MallLinkCareerMajorController extends BaseController
{
@Resource
private IMallLinkCareerMajorService mallLinkCareerMajorService;
/**
* 查询职业与专业关联列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkCareerMajor:list')")
@GetMapping("/list")
public TableDataInfo list(MallLinkCareerMajor mallLinkCareerMajor)
{
startPage();
List<MallLinkCareerMajor> list = mallLinkCareerMajorService.selectMallLinkCareerMajorList(mallLinkCareerMajor);
return getDataTable(list);
}
/**
* 导出职业与专业关联列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkCareerMajor:export')")
@Log(title = "职业与专业关联", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallLinkCareerMajor mallLinkCareerMajor)
{
List<MallLinkCareerMajor> list = mallLinkCareerMajorService.selectMallLinkCareerMajorList(mallLinkCareerMajor);
ExcelUtil<MallLinkCareerMajor> util = new ExcelUtil<MallLinkCareerMajor>(MallLinkCareerMajor.class);
util.exportExcel(response, list, "职业与专业关联数据");
}
/**
* 获取职业与专业关联详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkCareerMajor:query')")
@GetMapping(value = "/{linkId}")
public AjaxResult getInfo(@PathVariable("linkId") Long linkId)
{
return AjaxResult.success(mallLinkCareerMajorService.selectMallLinkCareerMajorByLinkId(linkId));
}
/**
* 新增职业与专业关联
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkCareerMajor:add')")
@Log(title = "职业与专业关联", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallLinkCareerMajor mallLinkCareerMajor)
{
return toAjax(mallLinkCareerMajorService.insertMallLinkCareerMajor(mallLinkCareerMajor));
}
/**
* 修改职业与专业关联
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkCareerMajor:edit')")
@Log(title = "职业与专业关联", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallLinkCareerMajor mallLinkCareerMajor)
{
return toAjax(mallLinkCareerMajorService.updateMallLinkCareerMajor(mallLinkCareerMajor));
}
/**
* 删除职业与专业关联
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkCareerMajor:remove')")
@Log(title = "职业与专业关联", businessType = BusinessType.DELETE)
@DeleteMapping("/{linkIds}")
public AjaxResult remove(@PathVariable Long[] linkIds)
{
return toAjax(mallLinkCareerMajorService.deleteMallLinkCareerMajorByLinkIds(linkIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallLinkIndustryCareer;
import com.ruoyi.mall.service.IMallLinkIndustryCareerService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 行业与职业关联Controller
*
* @author LCL
* @date 2023-10-20
*/
@RestController
@RequestMapping("/mall/mallLinkIndustryCareer")
public class MallLinkIndustryCareerController extends BaseController
{
@Autowired
private IMallLinkIndustryCareerService mallLinkIndustryCareerService;
/**
* 查询行业与职业关联列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkIndustryCareer:list')")
@GetMapping("/list")
public TableDataInfo list(MallLinkIndustryCareer mallLinkIndustryCareer)
{
startPage();
List<MallLinkIndustryCareer> list = mallLinkIndustryCareerService.selectMallLinkIndustryCareerList(mallLinkIndustryCareer);
return getDataTable(list);
}
/**
* 导出行业与职业关联列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkIndustryCareer:export')")
@Log(title = "行业与职业关联", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallLinkIndustryCareer mallLinkIndustryCareer)
{
List<MallLinkIndustryCareer> list = mallLinkIndustryCareerService.selectMallLinkIndustryCareerList(mallLinkIndustryCareer);
ExcelUtil<MallLinkIndustryCareer> util = new ExcelUtil<MallLinkIndustryCareer>(MallLinkIndustryCareer.class);
util.exportExcel(response, list, "行业与职业关联数据");
}
/**
* 获取行业与职业关联详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkIndustryCareer:query')")
@GetMapping(value = "/{linkId}")
public AjaxResult getInfo(@PathVariable("linkId") Long linkId)
{
return AjaxResult.success(mallLinkIndustryCareerService.selectMallLinkIndustryCareerByLinkId(linkId));
}
/**
* 新增行业与职业关联
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkIndustryCareer:add')")
@Log(title = "行业与职业关联", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallLinkIndustryCareer mallLinkIndustryCareer)
{
return toAjax(mallLinkIndustryCareerService.insertMallLinkIndustryCareer(mallLinkIndustryCareer));
}
/**
* 修改行业与职业关联
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkIndustryCareer:edit')")
@Log(title = "行业与职业关联", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallLinkIndustryCareer mallLinkIndustryCareer)
{
return toAjax(mallLinkIndustryCareerService.updateMallLinkIndustryCareer(mallLinkIndustryCareer));
}
/**
* 删除行业与职业关联
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkIndustryCareer:remove')")
@Log(title = "行业与职业关联", businessType = BusinessType.DELETE)
@DeleteMapping("/{linkIds}")
public AjaxResult remove(@PathVariable Long[] linkIds)
{
return toAjax(mallLinkIndustryCareerService.deleteMallLinkIndustryCareerByLinkIds(linkIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallLinkMajorSchool;
import com.ruoyi.mall.service.IMallLinkMajorSchoolService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 专业与学校关联Controller
*
* @author Lsm
* @date 2023-10-23
*/
@RestController
@RequestMapping("/mall/mallLinkMajorSchool")
public class MallLinkMajorSchoolController extends BaseController
{
@Autowired
private IMallLinkMajorSchoolService mallLinkMajorSchoolService;
/**
* 查询专业与学校关联列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkMajorSchool:list')")
@GetMapping("/list")
public TableDataInfo list(MallLinkMajorSchool mallLinkMajorSchool)
{
startPage();
List<MallLinkMajorSchool> list = mallLinkMajorSchoolService.selectMallLinkMajorSchoolList(mallLinkMajorSchool);
return getDataTable(list);
}
/**
* 导出专业与学校关联列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkMajorSchool:export')")
@Log(title = "专业与学校关联", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallLinkMajorSchool mallLinkMajorSchool)
{
List<MallLinkMajorSchool> list = mallLinkMajorSchoolService.selectMallLinkMajorSchoolList(mallLinkMajorSchool);
ExcelUtil<MallLinkMajorSchool> util = new ExcelUtil<MallLinkMajorSchool>(MallLinkMajorSchool.class);
util.exportExcel(response, list, "专业与学校关联数据");
}
/**
* 获取专业与学校关联详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkMajorSchool:query')")
@GetMapping(value = "/{linkId}")
public AjaxResult getInfo(@PathVariable("linkId") Long linkId)
{
return AjaxResult.success(mallLinkMajorSchoolService.selectMallLinkMajorSchoolByLinkId(linkId));
}
/**
* 新增专业与学校关联
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkMajorSchool:add')")
@Log(title = "专业与学校关联", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallLinkMajorSchool mallLinkMajorSchool)
{
return mallLinkMajorSchoolService.insertMallLinkMajorSchool(mallLinkMajorSchool);
}
/**
* 修改专业与学校关联
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkMajorSchool:edit')")
@Log(title = "专业与学校关联", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallLinkMajorSchool mallLinkMajorSchool)
{
return mallLinkMajorSchoolService.updateMallLinkMajorSchool(mallLinkMajorSchool);
}
/**
* 删除专业与学校关联
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkMajorSchool:remove')")
@Log(title = "专业与学校关联", businessType = BusinessType.DELETE)
@DeleteMapping("/{linkIds}")
public AjaxResult remove(@PathVariable Long[] linkIds)
{
return toAjax(mallLinkMajorSchoolService.deleteMallLinkMajorSchoolByLinkIds(linkIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallLinkRankingSchool;
import com.ruoyi.mall.service.IMallLinkRankingSchoolService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 榜单与学校关联Controller
*
* @author LCL
* @date 2023-10-24
*/
@RestController
@RequestMapping("/mall/mallLinkRankingSchool")
public class MallLinkRankingSchoolController extends BaseController
{
@Resource
private IMallLinkRankingSchoolService mallLinkRankingSchoolService;
/**
* 查询榜单与学校关联列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkRankingSchool:list')")
@GetMapping("/list")
public TableDataInfo list(MallLinkRankingSchool mallLinkRankingSchool)
{
startPage();
List<MallLinkRankingSchool> list = mallLinkRankingSchoolService.selectMallLinkRankingSchoolList(mallLinkRankingSchool);
return getDataTable(list);
}
/**
* 导出榜单与学校关联列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkRankingSchool:export')")
@Log(title = "榜单与学校关联", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallLinkRankingSchool mallLinkRankingSchool)
{
List<MallLinkRankingSchool> list = mallLinkRankingSchoolService.selectMallLinkRankingSchoolList(mallLinkRankingSchool);
ExcelUtil<MallLinkRankingSchool> util = new ExcelUtil<MallLinkRankingSchool>(MallLinkRankingSchool.class);
util.exportExcel(response, list, "榜单与学校关联数据");
}
/**
* 获取榜单与学校关联详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkRankingSchool:query')")
@GetMapping(value = "/{linkId}")
public AjaxResult getInfo(@PathVariable("linkId") Long linkId)
{
return AjaxResult.success(mallLinkRankingSchoolService.selectMallLinkRankingSchoolByLinkId(linkId));
}
/**
* 新增榜单与学校关联
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkRankingSchool:add')")
@Log(title = "榜单与学校关联", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallLinkRankingSchool mallLinkRankingSchool)
{
return toAjax(mallLinkRankingSchoolService.insertMallLinkRankingSchool(mallLinkRankingSchool));
}
/**
* 修改榜单与学校关联
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkRankingSchool:edit')")
@Log(title = "榜单与学校关联", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallLinkRankingSchool mallLinkRankingSchool)
{
return toAjax(mallLinkRankingSchoolService.updateMallLinkRankingSchool(mallLinkRankingSchool));
}
/**
* 删除榜单与学校关联
*/
@PreAuthorize("@ss.hasPermi('mall:mallLinkRankingSchool:remove')")
@Log(title = "榜单与学校关联", businessType = BusinessType.DELETE)
@DeleteMapping("/{linkIds}")
public AjaxResult remove(@PathVariable Long[] linkIds)
{
return toAjax(mallLinkRankingSchoolService.deleteMallLinkRankingSchoolByLinkIds(linkIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
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.mall.domain.MallMajorClass;
import com.ruoyi.mall.service.IMallMajorClassService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 专业分类Controller
*
* @author LCL
* @date 2023-10-18
*/
@RestController
@RequestMapping("/mall/mallMajorClass")
public class MallMajorClassController extends BaseController
{
@Resource
private IMallMajorClassService mallMajorClassService;
/**
* 查询专业分类列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallMajorClass:list')")
@GetMapping("/list")
public TableDataInfo list(MallMajorClass mallMajorClass)
{
startPage();
List<MallMajorClass> list = mallMajorClassService.selectMallMajorClassList(mallMajorClass);
return getDataTable(list);
}
/**
* 导出专业分类列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallMajorClass:export')")
@Log(title = "专业分类", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallMajorClass mallMajorClass)
{
List<MallMajorClass> list = mallMajorClassService.selectMallMajorClassList(mallMajorClass);
ExcelUtil<MallMajorClass> util = new ExcelUtil<MallMajorClass>(MallMajorClass.class);
util.exportExcel(response, list, "专业分类数据");
}
/**
* 获取专业分类详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallMajorClass:query')")
@GetMapping(value = "/{majorId}")
public AjaxResult getInfo(@PathVariable("majorId") Long majorId)
{
return AjaxResult.success(mallMajorClassService.selectMallMajorClassByMajorId(majorId));
}
/**
* 新增专业分类
*/
@PreAuthorize("@ss.hasPermi('mall:mallMajorClass:add')")
@Log(title = "专业分类", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallMajorClass mallMajorClass)
{
return toAjax(mallMajorClassService.insertMallMajorClass(mallMajorClass));
}
/**
* 修改专业分类
*/
@PreAuthorize("@ss.hasPermi('mall:mallMajorClass:edit')")
@Log(title = "专业分类", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallMajorClass mallMajorClass)
{
return toAjax(mallMajorClassService.updateMallMajorClass(mallMajorClass));
}
/**
* 删除专业分类
*/
@PreAuthorize("@ss.hasPermi('mall:mallMajorClass:remove')")
@Log(title = "专业分类", businessType = BusinessType.DELETE)
@DeleteMapping("/{majorIds}")
public AjaxResult remove(@PathVariable Long[] majorIds)
{
return toAjax(mallMajorClassService.deleteMallMajorClassByMajorIds(majorIds));
}
/**
* 查询商品类型树列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallGoodsClass:list')")
@GetMapping("/treeList")
public AjaxResult treeList(MallMajorClass mallMajorClass)
{
List<MallMajorClass> list = mallMajorClassService.selectMallMajorClassList(mallMajorClass);
return AjaxResult.success(list);
}
/**
* 根据父级id查询专业分类
* @param pid 父级id
* @return 结果
*/
@GetMapping("/selectMajorListByPid")
public AjaxResult selectMajorListByPid(@RequestParam Long pid){
return AjaxResult.success(mallMajorClassService.selectMajorListByPid(pid));
}
/**
* 所有二级专业分类
* @return 结果
*/
@GetMapping("/selectMajorListByLowLevel")
public AjaxResult selectMajorListByLowLevel(){
return AjaxResult.success(mallMajorClassService.selectMajorListByLevel2());
}
/**
* 专业级联列表
* @return
*/
@GetMapping("/getMajorList")
public AjaxResult getMajorList(){
return AjaxResult.success(mallMajorClassService.getMajorList());
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallMajorRanking;
import com.ruoyi.mall.service.IMallMajorRankingService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 专业榜单Controller
*
* @author LCL
* @date 2023-10-24
*/
@RestController
@RequestMapping("/mall/mallMajorRanking")
public class MallMajorRankingController extends BaseController
{
@Resource
private IMallMajorRankingService mallMajorRankingService;
/**
* 查询专业榜单列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallMajorRanking:list')")
@GetMapping("/list")
public TableDataInfo list(MallMajorRanking mallMajorRanking)
{
startPage();
List<MallMajorRanking> list = mallMajorRankingService.selectMallMajorRankingList(mallMajorRanking);
return getDataTable(list);
}
/**
* 导出专业榜单列表
*/
@PreAuthorize("@ss.hasPermi('mall:mallMajorRanking:export')")
@Log(title = "专业榜单", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallMajorRanking mallMajorRanking)
{
List<MallMajorRanking> list = mallMajorRankingService.selectMallMajorRankingList(mallMajorRanking);
ExcelUtil<MallMajorRanking> util = new ExcelUtil<MallMajorRanking>(MallMajorRanking.class);
util.exportExcel(response, list, "专业榜单数据");
}
/**
* 获取专业榜单详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:mallMajorRanking:query')")
@GetMapping(value = "/{rankingId}")
public AjaxResult getInfo(@PathVariable("rankingId") Long rankingId)
{
return AjaxResult.success(mallMajorRankingService.selectMallMajorRankingByRankingId(rankingId));
}
/**
* 新增专业榜单
*/
@PreAuthorize("@ss.hasPermi('mall:mallMajorRanking:add')")
@Log(title = "专业榜单", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallMajorRanking mallMajorRanking)
{
return toAjax(mallMajorRankingService.insertMallMajorRanking(mallMajorRanking));
}
/**
* 修改专业榜单
*/
@PreAuthorize("@ss.hasPermi('mall:mallMajorRanking:edit')")
@Log(title = "专业榜单", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallMajorRanking mallMajorRanking)
{
return toAjax(mallMajorRankingService.updateMallMajorRanking(mallMajorRanking));
}
/**
* 删除专业榜单
*/
@PreAuthorize("@ss.hasPermi('mall:mallMajorRanking:remove')")
@Log(title = "专业榜单", businessType = BusinessType.DELETE)
@DeleteMapping("/{rankingIds}")
public AjaxResult remove(@PathVariable Long[] rankingIds)
{
return toAjax(mallMajorRankingService.deleteMallMajorRankingByRankingIds(rankingIds));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallMemberBanner;
import com.ruoyi.mall.service.IMallMemberBannerService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 用户轮播图Controller
*
* @author ruoyi
* @date 2024-11-15
*/
@RestController
@RequestMapping("/mall/mallMemberBanner")
public class MallMemberBannerController extends BaseController
{
@Autowired
private IMallMemberBannerService mallMemberBannerService;
/**
* 查询用户轮播图列表
*/
// @PreAuthorize("@ss.hasPermi('mall:mallMemberBanner:list')")
@GetMapping("/list")
public TableDataInfo list(MallMemberBanner mallMemberBanner)
{
startPage();
List<MallMemberBanner> list = mallMemberBannerService.selectMallMemberBannerList(mallMemberBanner);
return getDataTable(list);
}
/**
* 导出用户轮播图列表
*/
// @PreAuthorize("@ss.hasPermi('mall:mallMemberBanner:export')")
@Log(title = "用户轮播图", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallMemberBanner mallMemberBanner)
{
List<MallMemberBanner> list = mallMemberBannerService.selectMallMemberBannerList(mallMemberBanner);
ExcelUtil<MallMemberBanner> util = new ExcelUtil<MallMemberBanner>(MallMemberBanner.class);
util.exportExcel(response, list, "用户轮播图数据");
}
/**
* 获取用户轮播图详细信息
*/
// @PreAuthorize("@ss.hasPermi('mall:mallMemberBanner:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(mallMemberBannerService.selectMallMemberBannerById(id));
}
/**
* 新增用户轮播图
*/
// @PreAuthorize("@ss.hasPermi('mall:mallMemberBanner:add')")
@Log(title = "用户轮播图", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallMemberBanner mallMemberBanner)
{
return toAjax(mallMemberBannerService.insertMallMemberBanner(mallMemberBanner));
}
/**
* 修改用户轮播图
*/
// @PreAuthorize("@ss.hasPermi('mall:mallMemberBanner:edit')")
@Log(title = "用户轮播图", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallMemberBanner mallMemberBanner)
{
return toAjax(mallMemberBannerService.updateMallMemberBanner(mallMemberBanner));
}
/**
* 删除用户轮播图
*/
// @PreAuthorize("@ss.hasPermi('mall:mallMemberBanner:remove')")
@Log(title = "用户轮播图", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(mallMemberBannerService.deleteMallMemberBannerByIds(ids));
}
}
package com.ruoyi.mall.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
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.mall.domain.MallMemberCollectSchool;
import com.ruoyi.mall.service.IMallMemberCollectSchoolService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 用户学校收藏Controller
*
* @author ruoyi
* @date 2023-10-26
*/
@RestController
@RequestMapping("/mall/memberCollectSchool")
public class MallMemberCollectSchoolController extends BaseController
{
@Autowired
private IMallMemberCollectSchoolService mallMemberCollectSchoolService;
/**
* 查询用户学校收藏列表
*/
@PreAuthorize("@ss.hasPermi('mall:memberCollectSchool:list')")
@GetMapping("/list")
public TableDataInfo list(MallMemberCollectSchool mallMemberCollectSchool)
{
startPage();
List<MallMemberCollectSchool> list = mallMemberCollectSchoolService.selectMallMemberCollectSchoolList(mallMemberCollectSchool);
return getDataTable(list);
}
/**
* 导出用户学校收藏列表
*/
@PreAuthorize("@ss.hasPermi('mall:memberCollectSchool:export')")
@Log(title = "用户学校收藏", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, MallMemberCollectSchool mallMemberCollectSchool)
{
List<MallMemberCollectSchool> list = mallMemberCollectSchoolService.selectMallMemberCollectSchoolList(mallMemberCollectSchool);
ExcelUtil<MallMemberCollectSchool> util = new ExcelUtil<MallMemberCollectSchool>(MallMemberCollectSchool.class);
util.exportExcel(response, list, "用户学校收藏数据");
}
/**
* 获取用户学校收藏详细信息
*/
@PreAuthorize("@ss.hasPermi('mall:memberCollectSchool:query')")
@GetMapping(value = "/{collectSchoolId}")
public AjaxResult getInfo(@PathVariable("collectSchoolId") Long collectSchoolId)
{
return AjaxResult.success(mallMemberCollectSchoolService.selectMallMemberCollectSchoolByCollectSchoolId(collectSchoolId));
}
/**
* 新增用户学校收藏
*/
@PreAuthorize("@ss.hasPermi('mall:memberCollectSchool:add')")
@Log(title = "用户学校收藏", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody MallMemberCollectSchool mallMemberCollectSchool)
{
return toAjax(mallMemberCollectSchoolService.insertMallMemberCollectSchool(mallMemberCollectSchool));
}
/**
* 修改用户学校收藏
*/
@PreAuthorize("@ss.hasPermi('mall:memberCollectSchool:edit')")
@Log(title = "用户学校收藏", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody MallMemberCollectSchool mallMemberCollectSchool)
{
return toAjax(mallMemberCollectSchoolService.updateMallMemberCollectSchool(mallMemberCollectSchool));
}
/**
* 删除用户学校收藏
*/
@PreAuthorize("@ss.hasPermi('mall:memberCollectSchool:remove')")
@Log(title = "用户学校收藏", businessType = BusinessType.DELETE)
@DeleteMapping("/{collectSchoolIds}")
public AjaxResult remove(@PathVariable Long[] collectSchoolIds)
{
return toAjax(mallMemberCollectSchoolService.deleteMallMemberCollectSchoolByCollectSchoolIds(collectSchoolIds));
}
}
package com.ruoyi.web.controller.api;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.mall.domain.BusinessBulletin;
import com.ruoyi.mall.domain.MallConfig;
import com.ruoyi.mall.domain.MallConfigFunction;
import com.ruoyi.mall.domain.Vo.BusinessBulletinResponse;
import com.ruoyi.mall.service.IMallConfigFunctionService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**更多功能*/
@RestController
@RequestMapping("/api/ConfigFunction")
public class ApiConfigFunctionController {
@Resource
private IMallConfigFunctionService mallConfigFunctionService;
/**
* 更多功能列表
*/
@GetMapping("/getConfigFunctionList")
public AjaxResult getConfigFunctionList() {
try{
MallConfigFunction mallConfigFunction = new MallConfigFunction();
//启用状态
mallConfigFunction.setStatus("0");
//是否展示
mallConfigFunction.setIsShow("0");
return AjaxResult.success().put("data", mallConfigFunctionService.selectMallConfigFunctionList(mallConfigFunction));
} catch (Exception e) {
e.printStackTrace();
return AjaxResult.error("更多功能列表查询异常");
}
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment