Merge remote-tracking branch 'origin/main'

This commit is contained in:
方亮 2025-09-11 17:45:09 +08:00
commit 065496ee69
272 changed files with 327 additions and 324 deletions

View File

@ -7,7 +7,7 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
/** /**
* 启动程序 * 启动程序
* *
* @author ruoyi * @author 黑子
*/ */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class }) @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class BaseApplication public class BaseApplication

View File

@ -6,7 +6,7 @@ import org.springframework.boot.web.servlet.support.SpringBootServletInitializer
/** /**
* web容器中进行部署 * web容器中进行部署
* *
* @author ruoyi * @author 黑子
*/ */
public class BaseServletInitializer extends SpringBootServletInitializer public class BaseServletInitializer extends SpringBootServletInitializer
{ {

View File

@ -11,7 +11,7 @@ import org.springframework.util.FastByteArrayOutputStream;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import com.google.code.kaptcha.Producer; import com.google.code.kaptcha.Producer;
import com.bonus.common.config.RuoYiConfig; import com.bonus.common.config.BonusConfig;
import com.bonus.common.constant.CacheConstants; import com.bonus.common.constant.CacheConstants;
import com.bonus.common.constant.Constants; import com.bonus.common.constant.Constants;
import com.bonus.common.core.domain.AjaxResult; import com.bonus.common.core.domain.AjaxResult;
@ -23,7 +23,7 @@ import com.bonus.system.service.ISysConfigService;
/** /**
* 验证码操作处理 * 验证码操作处理
* *
* @author ruoyi * @author 黑子
*/ */
@RestController @RestController
public class CaptchaController public class CaptchaController
@ -61,7 +61,7 @@ public class CaptchaController
BufferedImage image = null; BufferedImage image = null;
// 生成验证码 // 生成验证码
String captchaType = RuoYiConfig.getCaptchaType(); String captchaType = BonusConfig.getCaptchaType();
if ("math".equals(captchaType)) if ("math".equals(captchaType))
{ {
String capText = captchaProducerMath.createText(); String capText = captchaProducerMath.createText();

View File

@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import com.bonus.common.config.RuoYiConfig; import com.bonus.common.config.BonusConfig;
import com.bonus.common.constant.Constants; import com.bonus.common.constant.Constants;
import com.bonus.common.core.domain.AjaxResult; import com.bonus.common.core.domain.AjaxResult;
import com.bonus.common.utils.StringUtils; import com.bonus.common.utils.StringUtils;
@ -24,7 +24,7 @@ import com.bonus.framework.config.ServerConfig;
/** /**
* 通用请求处理 * 通用请求处理
* *
* @author ruoyi * @author 黑子
*/ */
@RestController @RestController
@RequestMapping("/common") @RequestMapping("/common")
@ -53,7 +53,7 @@ public class CommonController
throw new Exception(StringUtils.format("文件名称({})非法,不允许下载。 ", fileName)); throw new Exception(StringUtils.format("文件名称({})非法,不允许下载。 ", fileName));
} }
String realFileName = System.currentTimeMillis() + fileName.substring(fileName.indexOf("_") + 1); String realFileName = System.currentTimeMillis() + fileName.substring(fileName.indexOf("_") + 1);
String filePath = RuoYiConfig.getDownloadPath() + fileName; String filePath = BonusConfig.getDownloadPath() + fileName;
response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE); response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);
FileUtils.setAttachmentResponseHeader(response, realFileName); FileUtils.setAttachmentResponseHeader(response, realFileName);
@ -78,7 +78,7 @@ public class CommonController
try try
{ {
// 上传文件路径 // 上传文件路径
String filePath = RuoYiConfig.getUploadPath(); String filePath = BonusConfig.getUploadPath();
// 上传并返回新文件名称 // 上传并返回新文件名称
String fileName = FileUploadUtils.upload(filePath, file); String fileName = FileUploadUtils.upload(filePath, file);
String url = serverConfig.getUrl() + fileName; String url = serverConfig.getUrl() + fileName;
@ -104,7 +104,7 @@ public class CommonController
try try
{ {
// 上传文件路径 // 上传文件路径
String filePath = RuoYiConfig.getUploadPath(); String filePath = BonusConfig.getUploadPath();
List<String> urls = new ArrayList<String>(); List<String> urls = new ArrayList<String>();
List<String> fileNames = new ArrayList<String>(); List<String> fileNames = new ArrayList<String>();
List<String> newFileNames = new ArrayList<String>(); List<String> newFileNames = new ArrayList<String>();
@ -146,7 +146,7 @@ public class CommonController
throw new Exception(StringUtils.format("资源文件({})非法,不允许下载。 ", resource)); throw new Exception(StringUtils.format("资源文件({})非法,不允许下载。 ", resource));
} }
// 本地资源路径 // 本地资源路径
String localPath = RuoYiConfig.getProfile(); String localPath = BonusConfig.getProfile();
// 数据库资源地址 // 数据库资源地址
String downloadPath = localPath + StringUtils.substringAfter(resource, Constants.RESOURCE_PREFIX); String downloadPath = localPath + StringUtils.substringAfter(resource, Constants.RESOURCE_PREFIX);
// 下载名称 // 下载名称

View File

@ -25,7 +25,7 @@ import com.bonus.system.domain.SysCache;
/** /**
* 缓存监控 * 缓存监控
* *
* @author ruoyi * @author 黑子
*/ */
@RestController @RestController
@RequestMapping("/monitor/cache") @RequestMapping("/monitor/cache")

View File

@ -10,7 +10,7 @@ import com.bonus.framework.web.domain.Server;
/** /**
* 服务器监控 * 服务器监控
* *
* @author ruoyi * @author 黑子
*/ */
@RestController @RestController
@RequestMapping("/monitor/server") @RequestMapping("/monitor/server")

View File

@ -23,7 +23,7 @@ import com.bonus.system.service.ISysLogininforService;
/** /**
* 系统访问记录 * 系统访问记录
* *
* @author ruoyi * @author 黑子
*/ */
@RestController @RestController
@RequestMapping("/monitor/logininfor") @RequestMapping("/monitor/logininfor")

View File

@ -22,7 +22,7 @@ import com.bonus.system.service.ISysOperLogService;
/** /**
* 操作日志记录 * 操作日志记录
* *
* @author ruoyi * @author 黑子
*/ */
@RestController @RestController
@RequestMapping("/monitor/operlog") @RequestMapping("/monitor/operlog")

View File

@ -26,7 +26,7 @@ import com.bonus.system.service.ISysUserOnlineService;
/** /**
* 在线用户监控 * 在线用户监控
* *
* @author ruoyi * @author 黑子
*/ */
@RestController @RestController
@RequestMapping("/monitor/online") @RequestMapping("/monitor/online")

View File

@ -25,7 +25,7 @@ import com.bonus.system.service.ISysConfigService;
/** /**
* 参数配置 信息操作处理 * 参数配置 信息操作处理
* *
* @author ruoyi * @author 黑子
*/ */
@RestController @RestController
@RequestMapping("/system/config") @RequestMapping("/system/config")

View File

@ -25,7 +25,7 @@ import com.bonus.system.service.ISysDeptService;
/** /**
* 部门信息 * 部门信息
* *
* @author ruoyi * @author 黑子
*/ */
@RestController @RestController
@RequestMapping("/system/dept") @RequestMapping("/system/dept")

View File

@ -28,7 +28,7 @@ import com.bonus.system.service.ISysDictTypeService;
/** /**
* 数据字典信息 * 数据字典信息
* *
* @author ruoyi * @author 黑子
*/ */
@RestController @RestController
@RequestMapping("/system/dict/data") @RequestMapping("/system/dict/data")

View File

@ -25,7 +25,7 @@ import com.bonus.system.service.ISysDictTypeService;
/** /**
* 数据字典信息 * 数据字典信息
* *
* @author ruoyi * @author 黑子
*/ */
@RestController @RestController
@RequestMapping("/system/dict/type") @RequestMapping("/system/dict/type")

View File

@ -3,20 +3,20 @@ package com.bonus.base.controller.system;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import com.bonus.common.config.RuoYiConfig; import com.bonus.common.config.BonusConfig;
import com.bonus.common.utils.StringUtils; import com.bonus.common.utils.StringUtils;
/** /**
* 首页 * 首页
* *
* @author ruoyi * @author 黑子
*/ */
@RestController @RestController
public class SysIndexController public class SysIndexController
{ {
/** 系统基础配置 */ /** 系统基础配置 */
@Autowired @Autowired
private RuoYiConfig ruoyiConfig; private BonusConfig bonusConfig;
/** /**
* 访问首页提示语 * 访问首页提示语
@ -24,6 +24,6 @@ public class SysIndexController
@RequestMapping("/") @RequestMapping("/")
public String index() public String index()
{ {
return StringUtils.format("欢迎使用{}后台管理框架当前版本v{},请通过前端地址访问。", ruoyiConfig.getName(), ruoyiConfig.getVersion()); return StringUtils.format("欢迎使用{}后台管理框架当前版本v{},请通过前端地址访问。", bonusConfig.getName(), bonusConfig.getVersion());
} }
} }

View File

@ -24,7 +24,7 @@ import com.bonus.system.service.ISysMenuService;
/** /**
* 登录验证 * 登录验证
* *
* @author ruoyi * @author 黑子
*/ */
@RestController @RestController
public class SysLoginController public class SysLoginController

View File

@ -24,7 +24,7 @@ import com.bonus.system.service.ISysMenuService;
/** /**
* 菜单信息 * 菜单信息
* *
* @author ruoyi * @author 黑子
*/ */
@RestController @RestController
@RequestMapping("/system/menu") @RequestMapping("/system/menu")

View File

@ -23,7 +23,7 @@ import com.bonus.system.service.ISysNoticeService;
/** /**
* 公告 信息操作处理 * 公告 信息操作处理
* *
* @author ruoyi * @author 黑子
*/ */
@RestController @RestController
@RequestMapping("/system/notice") @RequestMapping("/system/notice")

View File

@ -25,7 +25,7 @@ import com.bonus.system.service.ISysPostService;
/** /**
* 岗位信息操作处理 * 岗位信息操作处理
* *
* @author ruoyi * @author 黑子
*/ */
@RestController @RestController
@RequestMapping("/system/post") @RequestMapping("/system/post")

View File

@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import com.bonus.common.annotation.Log; import com.bonus.common.annotation.Log;
import com.bonus.common.config.RuoYiConfig; import com.bonus.common.config.BonusConfig;
import com.bonus.common.core.controller.BaseController; import com.bonus.common.core.controller.BaseController;
import com.bonus.common.core.domain.AjaxResult; import com.bonus.common.core.domain.AjaxResult;
import com.bonus.common.core.domain.entity.SysUser; import com.bonus.common.core.domain.entity.SysUser;
@ -27,7 +27,7 @@ import com.bonus.system.service.ISysUserService;
/** /**
* 个人信息 业务处理 * 个人信息 业务处理
* *
* @author ruoyi * @author 黑子
*/ */
@RestController @RestController
@RequestMapping("/system/user/profile") @RequestMapping("/system/user/profile")
@ -114,6 +114,9 @@ public class SysProfileController extends BaseController
return error("修改密码异常,请联系管理员"); return error("修改密码异常,请联系管理员");
} }
public static void main(String[] args) {
System.err.println(SecurityUtils.encryptPassword("Bonus@admin123"));
}
/** /**
* 头像上传 * 头像上传
*/ */
@ -124,7 +127,7 @@ public class SysProfileController extends BaseController
if (!file.isEmpty()) if (!file.isEmpty())
{ {
LoginUser loginUser = getLoginUser(); LoginUser loginUser = getLoginUser();
String avatar = FileUploadUtils.upload(RuoYiConfig.getAvatarPath(), file, MimeTypeUtils.IMAGE_EXTENSION); String avatar = FileUploadUtils.upload(BonusConfig.getAvatarPath(), file, MimeTypeUtils.IMAGE_EXTENSION);
if (userService.updateUserAvatar(loginUser.getUsername(), avatar)) if (userService.updateUserAvatar(loginUser.getUsername(), avatar))
{ {
AjaxResult ajax = AjaxResult.success(); AjaxResult ajax = AjaxResult.success();

View File

@ -14,7 +14,7 @@ import com.bonus.system.service.ISysConfigService;
/** /**
* 注册验证 * 注册验证
* *
* @author ruoyi * @author 黑子
*/ */
@RestController @RestController
public class SysRegisterController extends BaseController public class SysRegisterController extends BaseController

View File

@ -34,7 +34,7 @@ import com.bonus.system.service.ISysUserService;
/** /**
* 角色信息 * 角色信息
* *
* @author ruoyi * @author 黑子
*/ */
@RestController @RestController
@RequestMapping("/system/role") @RequestMapping("/system/role")

View File

@ -35,7 +35,7 @@ import com.bonus.system.service.ISysUserService;
/** /**
* 用户信息 * 用户信息
* *
* @author ruoyi * @author 黑子
*/ */
@RestController @RestController
@RequestMapping("/system/user") @RequestMapping("/system/user")

View File

@ -25,7 +25,7 @@ import io.swagger.annotations.ApiOperation;
/** /**
* swagger 用户测试方法 * swagger 用户测试方法
* *
* @author ruoyi * @author 黑子
*/ */
@Api("用户信息管理") @Api("用户信息管理")
@RestController @RestController
@ -34,8 +34,8 @@ public class TestController extends BaseController
{ {
private final static Map<Integer, UserEntity> users = new LinkedHashMap<Integer, UserEntity>(); private final static Map<Integer, UserEntity> users = new LinkedHashMap<Integer, UserEntity>();
{ {
users.put(1, new UserEntity(1, "admin", "admin123", "15888888888")); users.put(1, new UserEntity(1, "!Admin", "Bonus@admin123", "15888888888"));
users.put(2, new UserEntity(2, "ry", "admin123", "15666666666")); users.put(2, new UserEntity(2, "ry", "Bonus@admin123", "15666666666"));
} }
@ApiOperation("获取用户列表") @ApiOperation("获取用户列表")

View File

@ -6,7 +6,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import com.bonus.common.config.RuoYiConfig; import com.bonus.common.config.BonusConfig;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.models.auth.In; import io.swagger.models.auth.In;
import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.ApiInfoBuilder;
@ -25,14 +25,14 @@ import springfox.documentation.spring.web.plugins.Docket;
/** /**
* Swagger2的接口配置 * Swagger2的接口配置
* *
* @author ruoyi * @author 黑子
*/ */
@Configuration @Configuration
public class SwaggerConfig public class SwaggerConfig
{ {
/** 系统基础配置 */ /** 系统基础配置 */
@Autowired @Autowired
private RuoYiConfig ruoyiConfig; private BonusConfig bonusConfig;
/** 是否开启swagger */ /** 是否开启swagger */
@Value("${swagger.enabled}") @Value("${swagger.enabled}")
@ -58,7 +58,7 @@ public class SwaggerConfig
// 扫描所有有注解的api用这种方式更灵活 // 扫描所有有注解的api用这种方式更灵活
.apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class)) .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))
// 扫描指定包中的swagger注解 // 扫描指定包中的swagger注解
// .apis(RequestHandlerSelectors.basePackage("com.ruoyi.project.tool.swagger")) // .apis(RequestHandlerSelectors.basePackage("com.bonus.project.tool.swagger"))
// 扫描所有 .apis(RequestHandlerSelectors.any()) // 扫描所有 .apis(RequestHandlerSelectors.any())
.paths(PathSelectors.any()) .paths(PathSelectors.any())
.build() .build()
@ -117,9 +117,9 @@ public class SwaggerConfig
// 描述 // 描述
.description("描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...") .description("描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...")
// 作者信息 // 作者信息
.contact(new Contact(ruoyiConfig.getName(), null, null)) .contact(new Contact(bonusConfig.getName(), null, null))
// 版本 // 版本
.version("版本号:" + ruoyiConfig.getVersion()) .version("版本号:" + bonusConfig.getVersion())
.build(); .build();
} }
} }

View File

@ -1,5 +1,5 @@
# 项目相关配置 # 项目相关配置
ruoyi: bonus:
# 名称 # 名称
name: 博诺思 name: 博诺思
# 版本 # 版本
@ -7,7 +7,7 @@ ruoyi:
# 版权年份 # 版权年份
copyrightYear: 2025 copyrightYear: 2025
# 文件路径 示例( Windows配置D:/ruoyi/uploadPathLinux配置 /home/ruoyi/uploadPath # 文件路径 示例( Windows配置D:/ruoyi/uploadPathLinux配置 /home/ruoyi/uploadPath
profile: D:/ruoyi/uploadPath profile: D:/bonus/uploadPath
# 获取ip地址开关 # 获取ip地址开关
addressEnabled: false addressEnabled: false
# 验证码类型 math 数字计算 char 字符验证 # 验证码类型 math 数字计算 char 字符验证
@ -57,9 +57,9 @@ spring:
servlet: servlet:
multipart: multipart:
# 单个文件大小 # 单个文件大小
max-file-size: 10MB max-file-size: -1
# 设置总上传的文件大小 # 设置总上传的文件大小
max-request-size: 20MB max-request-size: -1
# 服务模块 # 服务模块
devtools: devtools:
restart: restart:

View File

@ -22,7 +22,7 @@ import org.springframework.web.multipart.MultipartFile;
/** /**
* 宣传物料信息Controller * 宣传物料信息Controller
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
@RestController @RestController

View File

@ -8,7 +8,7 @@ import com.bonus.common.annotation.Excel;
/** /**
* 组件星星评价信息对象 tb_component_eval * 组件星星评价信息对象 tb_component_eval
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
public class TbComponentEval extends BaseEntity public class TbComponentEval extends BaseEntity

View File

@ -10,7 +10,7 @@ import com.bonus.common.annotation.Excel;
/** /**
* 公共组件信息 通过 评价 访问评论 进行汇总对象 tb_component_info * 公共组件信息 通过 评价 访问评论 进行汇总对象 tb_component_info
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)

View File

@ -8,7 +8,7 @@ import com.bonus.common.annotation.Excel;
/** /**
* 组件评论信息对象 tb_component_msg * 组件评论信息对象 tb_component_msg
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
public class TbComponentMsg extends BaseEntity public class TbComponentMsg extends BaseEntity

View File

@ -11,7 +11,7 @@ import com.bonus.common.annotation.Excel;
/** /**
* 评论点赞信息对象 tb_component_msg_like * 评论点赞信息对象 tb_component_msg_like
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
public class TbComponentMsgLike extends BaseEntity public class TbComponentMsgLike extends BaseEntity

View File

@ -11,7 +11,7 @@ import com.bonus.common.annotation.Excel;
/** /**
* 文件共享文件对象 tb_document_files * 文件共享文件对象 tb_document_files
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
public class TbDocumentFiles extends BaseEntity public class TbDocumentFiles extends BaseEntity

View File

@ -8,7 +8,7 @@ import com.bonus.common.annotation.Excel;
/** /**
* 文档中心文件标签记录对象 tb_document_files_label * 文档中心文件标签记录对象 tb_document_files_label
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
public class TbDocumentFilesLabel extends BaseEntity public class TbDocumentFilesLabel extends BaseEntity

View File

@ -11,7 +11,7 @@ import com.bonus.common.annotation.Excel;
/** /**
* 文件操作记录对象 tb_document_files_oper * 文件操作记录对象 tb_document_files_oper
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
public class TbDocumentFilesOper extends BaseEntity public class TbDocumentFilesOper extends BaseEntity

View File

@ -8,7 +8,7 @@ import com.bonus.common.annotation.Excel;
/** /**
* 文档库文件夹对象 tb_document_folder * 文档库文件夹对象 tb_document_folder
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
public class TbDocumentFolder extends BaseEntity public class TbDocumentFolder extends BaseEntity

View File

@ -11,7 +11,7 @@ import com.bonus.common.annotation.Excel;
/** /**
* 文档中心文件夹权限信息对象 tb_document_folder_auth * 文档中心文件夹权限信息对象 tb_document_folder_auth
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
public class TbDocumentFolderAuth extends BaseEntity public class TbDocumentFolderAuth extends BaseEntity

View File

@ -8,7 +8,7 @@ import com.bonus.common.annotation.Excel;
/** /**
* 文档标签管理对象 tb_file_label * 文档标签管理对象 tb_file_label
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
public class TbFileLabel extends BaseEntity public class TbFileLabel extends BaseEntity

View File

@ -11,7 +11,7 @@ import com.bonus.common.annotation.Excel;
/** /**
* 个人文件共享对象 tb_files_share * 个人文件共享对象 tb_files_share
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
public class TbFilesShare extends BaseEntity public class TbFilesShare extends BaseEntity

View File

@ -11,7 +11,7 @@ import java.util.List;
/** /**
* 产品信息对象 tb_product * 产品信息对象 tb_product
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)

View File

@ -12,7 +12,7 @@ import java.util.List;
/** /**
* 产品案例对象 tb_product_case * 产品案例对象 tb_product_case
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)

View File

@ -14,7 +14,7 @@ import java.util.stream.IntStream;
/** /**
* 宣传物料信息对象 tb_promotion_material * 宣传物料信息对象 tb_promotion_material
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
@Data @Data

View File

@ -10,7 +10,7 @@ import com.bonus.common.annotation.Excel;
/** /**
* 宣传物料文件对象 tb_promotion_material_files * 宣传物料文件对象 tb_promotion_material_files
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
@EqualsAndHashCode(callSuper = true) @EqualsAndHashCode(callSuper = true)

View File

@ -8,7 +8,7 @@ import com.bonus.common.annotation.Excel;
/** /**
* 宣传物料归属产品对象 tb_promotion_material_product * 宣传物料归属产品对象 tb_promotion_material_product
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
public class TbPromotionMaterialProduct extends BaseEntity public class TbPromotionMaterialProduct extends BaseEntity

View File

@ -8,7 +8,7 @@ import com.bonus.common.annotation.Excel;
/** /**
* 公共组件信息对象 tb_public_component * 公共组件信息对象 tb_public_component
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
public class TbPublicComponent extends BaseEntity public class TbPublicComponent extends BaseEntity

View File

@ -11,7 +11,7 @@ import com.bonus.common.annotation.Excel;
/** /**
* 组件浏览悉信息对象 tb_public_component_browse * 组件浏览悉信息对象 tb_public_component_browse
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
public class TbPublicComponentBrowse extends BaseEntity public class TbPublicComponentBrowse extends BaseEntity

View File

@ -11,7 +11,7 @@ import com.bonus.common.annotation.Excel;
/** /**
* 组件版本信息对象 tb_public_component_version * 组件版本信息对象 tb_public_component_version
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
public class TbPublicComponentVersion extends BaseEntity public class TbPublicComponentVersion extends BaseEntity

View File

@ -11,7 +11,7 @@ import com.bonus.common.annotation.Excel;
/** /**
* 文件下载中心记录对象 tb_user_download * 文件下载中心记录对象 tb_user_download
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
public class TbUserDownload extends BaseEntity public class TbUserDownload extends BaseEntity

View File

@ -11,7 +11,7 @@ import com.bonus.common.annotation.Excel;
/** /**
* 个人文档文件对象 tb_user_files * 个人文档文件对象 tb_user_files
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
public class TbUserFiles extends BaseEntity public class TbUserFiles extends BaseEntity

View File

@ -8,7 +8,7 @@ import com.bonus.common.annotation.Excel;
/** /**
* 个人文档文件夹对象 tb_user_folder * 个人文档文件夹对象 tb_user_folder
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
public class TbUserFolder extends BaseEntity public class TbUserFolder extends BaseEntity

View File

@ -8,7 +8,7 @@ import com.bonus.common.annotation.Excel;
/** /**
* 个人文档标签记录对象 tb_user_lable * 个人文档标签记录对象 tb_user_lable
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
public class TbUserLable extends BaseEntity public class TbUserLable extends BaseEntity

View File

@ -11,7 +11,7 @@ import java.util.List;
/** /**
* 宣传物料信息Mapper接口 * 宣传物料信息Mapper接口
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
public interface SelectMapper { public interface SelectMapper {

View File

@ -9,7 +9,7 @@ import java.util.List;
/** /**
* 宣传物料信息Mapper接口 * 宣传物料信息Mapper接口
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
public interface TbPromotionMaterialMapper { public interface TbPromotionMaterialMapper {

View File

@ -9,7 +9,7 @@ import java.util.List;
/** /**
* 宣传物料信息Service接口 * 宣传物料信息Service接口
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
public interface ITbPromotionMaterialService public interface ITbPromotionMaterialService

View File

@ -9,7 +9,7 @@ import java.util.List;
/** /**
* 宣传物料信息Service接口 * 宣传物料信息Service接口
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
public interface SelectService public interface SelectService

View File

@ -17,7 +17,7 @@ import java.util.List;
/** /**
* 宣传物料信息Service业务层处理 * 宣传物料信息Service业务层处理
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
@Service @Service

View File

@ -26,7 +26,7 @@ import javax.annotation.Resource;
/** /**
* 宣传物料信息Service业务层处理 * 宣传物料信息Service业务层处理
* *
* @author ruoyi * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
@Service @Service

View File

@ -26,14 +26,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where tpt.id=#{id} where tpt.id=#{id}
</select> </select>
<select id="getMaterialList" resultType="com.bonus.business.domain.ProductScreenVo"> <select id="getMaterialList" resultType="com.bonus.business.domain.ProductScreenVo">
select tpm.id, tpm.type_id,tpm.type_name,tpm.name ,tpm.version ,tpm.description ,tpm.image , select tpm.id, tpm.type_id typeId,sdd.dict_label typeName,tpm.name ,tpm.version ,tpm.description ,tpm.image ,
pmf.file_type fileType ,pmf.file_path filePath, pmf.bucket_name bucketName,pmf.original_name originalName pmf.file_type fileType ,pmf.file_path filePath, pmf.bucket_name bucketName,pmf.original_name originalName
from tb_promotion_material_product pmp from tb_promotion_material tpm
left join tb_promotion_material tpm on tpm.id=pmp.material_id left join sys_dict_data sdd on sdd.dict_value=tpm.type_id and sdd.dict_type='tb_product_type'
left join tb_promotion_material_files pmf on tpm.id=pmf.material_id and pmf.del_flag=0 and pmf.type_id=1 left join tb_promotion_material_files pmf on tpm.id=pmf.material_id and pmf.del_flag=0 and pmf.type_id=1
where tpm.del_flag=0 where tpm.del_flag=0
<if test="id!=null and id!=''"> <if test="typeId!=null and typeId!=''">
and pmp.product_id=#{id} and tpm.type_id=#{typeId}
</if> </if>
</select> </select>
</mapper> </mapper>

View File

@ -9,7 +9,7 @@ import java.lang.annotation.Target;
/** /**
* 匿名访问不鉴权注解 * 匿名访问不鉴权注解
* *
* @author ruoyi * @author 黑子
*/ */
@Target({ ElementType.METHOD, ElementType.TYPE }) @Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

View File

@ -9,7 +9,7 @@ import java.lang.annotation.Target;
/** /**
* 数据权限过滤注解 * 数据权限过滤注解
* *
* @author ruoyi * @author 黑子
*/ */
@Target(ElementType.METHOD) @Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

View File

@ -13,7 +13,7 @@ import com.bonus.common.enums.DataSourceType;
* *
* 优先级先方法后类如果方法覆盖了类上的数据源类型以方法的为准否则以类上的为准 * 优先级先方法后类如果方法覆盖了类上的数据源类型以方法的为准否则以类上的为准
* *
* @author ruoyi * @author 黑子
*/ */
@Target({ ElementType.METHOD, ElementType.TYPE }) @Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

View File

@ -12,7 +12,7 @@ import com.bonus.common.utils.poi.ExcelHandlerAdapter;
/** /**
* 自定义导出Excel数据注解 * 自定义导出Excel数据注解
* *
* @author ruoyi * @author 黑子
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD) @Target(ElementType.FIELD)

View File

@ -8,7 +8,7 @@ import java.lang.annotation.Target;
/** /**
* Excel注解集 * Excel注解集
* *
* @author ruoyi * @author 黑子
*/ */
@Target(ElementType.FIELD) @Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

View File

@ -11,7 +11,7 @@ import com.bonus.common.enums.OperatorType;
/** /**
* 自定义操作日志记录注解 * 自定义操作日志记录注解
* *
* @author ruoyi * @author 黑子
* *
*/ */
@Target({ ElementType.PARAMETER, ElementType.METHOD }) @Target({ ElementType.PARAMETER, ElementType.METHOD })

View File

@ -11,7 +11,7 @@ import com.bonus.common.enums.LimitType;
/** /**
* 限流注解 * 限流注解
* *
* @author ruoyi * @author 黑子
*/ */
@Target(ElementType.METHOD) @Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

View File

@ -10,7 +10,7 @@ import java.lang.annotation.Target;
/** /**
* 自定义注解防止表单重复提交 * 自定义注解防止表单重复提交
* *
* @author ruoyi * @author 黑子
* *
*/ */
@Inherited @Inherited

View File

@ -12,7 +12,7 @@ import com.bonus.common.enums.DesensitizedType;
/** /**
* 数据脱敏注解 * 数据脱敏注解
* *
* @author ruoyi * @author 黑子
*/ */
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD) @Target(ElementType.FIELD)

View File

@ -6,11 +6,11 @@ import org.springframework.stereotype.Component;
/** /**
* 读取项目相关配置 * 读取项目相关配置
* *
* @author ruoyi * @author 黑子
*/ */
@Component @Component
@ConfigurationProperties(prefix = "ruoyi") @ConfigurationProperties(prefix = "bonus")
public class RuoYiConfig public class BonusConfig
{ {
/** 项目名称 */ /** 项目名称 */
private String name; private String name;
@ -67,7 +67,7 @@ public class RuoYiConfig
public void setProfile(String profile) public void setProfile(String profile)
{ {
RuoYiConfig.profile = profile; BonusConfig.profile = profile;
} }
public static boolean isAddressEnabled() public static boolean isAddressEnabled()
@ -77,7 +77,7 @@ public class RuoYiConfig
public void setAddressEnabled(boolean addressEnabled) public void setAddressEnabled(boolean addressEnabled)
{ {
RuoYiConfig.addressEnabled = addressEnabled; BonusConfig.addressEnabled = addressEnabled;
} }
public static String getCaptchaType() { public static String getCaptchaType() {
@ -85,7 +85,7 @@ public class RuoYiConfig
} }
public void setCaptchaType(String captchaType) { public void setCaptchaType(String captchaType) {
RuoYiConfig.captchaType = captchaType; BonusConfig.captchaType = captchaType;
} }
/** /**

View File

@ -16,7 +16,7 @@ import com.bonus.common.utils.SecurityUtils;
/** /**
* 数据脱敏序列化过滤 * 数据脱敏序列化过滤
* *
* @author ruoyi * @author 黑子
*/ */
public class SensitiveJsonSerializer extends JsonSerializer<String> implements ContextualSerializer public class SensitiveJsonSerializer extends JsonSerializer<String> implements ContextualSerializer
{ {

View File

@ -3,7 +3,7 @@ package com.bonus.common.constant;
/** /**
* 缓存的key 常量 * 缓存的key 常量
* *
* @author ruoyi * @author 黑子
*/ */
public class CacheConstants public class CacheConstants
{ {

View File

@ -6,7 +6,7 @@ import io.jsonwebtoken.Claims;
/** /**
* 通用常量信息 * 通用常量信息
* *
* @author ruoyi * @author 黑子
*/ */
public class Constants public class Constants
{ {
@ -78,7 +78,7 @@ public class Constants
/** /**
* 管理员角色权限标识 * 管理员角色权限标识
*/ */
public static final String SUPER_ADMIN = "admin"; public static final String SUPER_ADMIN = "!Admin";
/** /**
* 角色权限分隔符 * 角色权限分隔符
@ -169,5 +169,5 @@ public class Constants
* 定时任务违规的字符 * 定时任务违规的字符
*/ */
public static final String[] JOB_ERROR_STR = { "java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml", public static final String[] JOB_ERROR_STR = { "java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
"org.springframework", "org.apache", "com.ruoyi.common.utils.file", "com.ruoyi.common.config", "com.ruoyi.generator" }; "org.springframework", "org.apache", "com.bonus.common.utils.file", "com.bonus.common.config", "com.bonus.generator" };
} }

View File

@ -3,7 +3,7 @@ package com.bonus.common.constant;
/** /**
* 代码生成通用常量 * 代码生成通用常量
* *
* @author ruoyi * @author 黑子
*/ */
public class GenConstants public class GenConstants
{ {

View File

@ -3,7 +3,7 @@ package com.bonus.common.constant;
/** /**
* 返回状态码 * 返回状态码
* *
* @author ruoyi * @author 黑子
*/ */
public class HttpStatus public class HttpStatus
{ {

View File

@ -3,7 +3,7 @@ package com.bonus.common.constant;
/** /**
* 任务调度通用常量 * 任务调度通用常量
* *
* @author ruoyi * @author 黑子
*/ */
public class ScheduleConstants public class ScheduleConstants
{ {

View File

@ -3,7 +3,7 @@ package com.bonus.common.constant;
/** /**
* 用户常量信息 * 用户常量信息
* *
* @author ruoyi * @author 黑子
*/ */
public class UserConstants public class UserConstants
{ {

View File

@ -24,7 +24,7 @@ import com.bonus.common.utils.sql.SqlUtil;
/** /**
* web层通用数据处理 * web层通用数据处理
* *
* @author ruoyi * @author 黑子
*/ */
public class BaseController public class BaseController
{ {

View File

@ -8,7 +8,7 @@ import com.bonus.common.utils.StringUtils;
/** /**
* 操作消息提醒 * 操作消息提醒
* *
* @author ruoyi * @author 黑子
*/ */
public class AjaxResult extends HashMap<String, Object> public class AjaxResult extends HashMap<String, Object>
{ {

View File

@ -12,7 +12,7 @@ import lombok.Data;
/** /**
* Entity基类 * Entity基类
* *
* @author ruoyi * @author 黑子
*/ */
public class BaseEntity implements Serializable public class BaseEntity implements Serializable
{ {

View File

@ -6,7 +6,7 @@ import com.bonus.common.constant.HttpStatus;
/** /**
* 响应信息主体 * 响应信息主体
* *
* @author ruoyi * @author 黑子
*/ */
public class R<T> implements Serializable public class R<T> implements Serializable
{ {

View File

@ -6,7 +6,7 @@ import java.util.List;
/** /**
* Tree基类 * Tree基类
* *
* @author ruoyi * @author 黑子
*/ */
public class TreeEntity extends BaseEntity public class TreeEntity extends BaseEntity
{ {

View File

@ -13,7 +13,7 @@ import com.bonus.common.utils.StringUtils;
/** /**
* Treeselect树结构实体类 * Treeselect树结构实体类
* *
* @author ruoyi * @author 黑子
*/ */
public class TreeSelect implements Serializable public class TreeSelect implements Serializable
{ {

View File

@ -13,7 +13,7 @@ import com.bonus.common.core.domain.BaseEntity;
/** /**
* 部门表 sys_dept * 部门表 sys_dept
* *
* @author ruoyi * @author 黑子
*/ */
public class SysDept extends BaseEntity public class SysDept extends BaseEntity
{ {

View File

@ -12,7 +12,7 @@ import com.bonus.common.core.domain.BaseEntity;
/** /**
* 字典数据表 sys_dict_data * 字典数据表 sys_dict_data
* *
* @author ruoyi * @author 黑子
*/ */
public class SysDictData extends BaseEntity public class SysDictData extends BaseEntity
{ {

View File

@ -13,7 +13,7 @@ import com.bonus.common.annotation.Excel.ColumnType;
/** /**
* 字典类型表 sys_dict_type * 字典类型表 sys_dict_type
* *
* @author ruoyi * @author 黑子
*/ */
public class SysDictType extends BaseEntity public class SysDictType extends BaseEntity
{ {

View File

@ -13,7 +13,7 @@ import org.apache.commons.lang3.builder.ToStringStyle;
/** /**
* 菜单权限表 sys_menu * 菜单权限表 sys_menu
* *
* @author ruoyi * @author 黑子
*/ */
public class SysMenu extends BaseEntity public class SysMenu extends BaseEntity
{ {

View File

@ -13,7 +13,7 @@ import com.bonus.common.core.domain.BaseEntity;
/** /**
* 角色表 sys_role * 角色表 sys_role
* *
* @author ruoyi * @author 黑子
*/ */
public class SysRole extends BaseEntity public class SysRole extends BaseEntity
{ {

View File

@ -15,7 +15,7 @@ import com.bonus.common.xss.Xss;
/** /**
* 用户对象 sys_user * 用户对象 sys_user
* *
* @author ruoyi * @author 黑子
*/ */
public class SysUser extends BaseEntity public class SysUser extends BaseEntity
{ {

View File

@ -5,7 +5,7 @@ import lombok.Data;
/** /**
* 用户登录对象 * 用户登录对象
* *
* @author ruoyi * @author 黑子
*/ */
@Data @Data
public class LoginBody { public class LoginBody {

View File

@ -10,7 +10,7 @@ import java.util.Set;
/** /**
* 登录用户身份权限 * 登录用户身份权限
* *
* @author ruoyi * @author 黑子
*/ */
public class LoginUser implements UserDetails public class LoginUser implements UserDetails
{ {

View File

@ -3,7 +3,7 @@ package com.bonus.common.core.domain.model;
/** /**
* 用户注册对象 * 用户注册对象
* *
* @author ruoyi * @author 黑子
*/ */
public class RegisterBody extends LoginBody public class RegisterBody extends LoginBody
{ {

View File

@ -5,7 +5,7 @@ import com.bonus.common.utils.StringUtils;
/** /**
* 分页数据 * 分页数据
* *
* @author ruoyi * @author 黑子
*/ */
public class PageDomain public class PageDomain
{ {

View File

@ -6,7 +6,7 @@ import java.util.List;
/** /**
* 表格分页数据对象 * 表格分页数据对象
* *
* @author ruoyi * @author 黑子
*/ */
public class TableDataInfo implements Serializable public class TableDataInfo implements Serializable
{ {

View File

@ -6,7 +6,7 @@ import com.bonus.common.utils.ServletUtils;
/** /**
* 表格数据处理 * 表格数据处理
* *
* @author ruoyi * @author 黑子
*/ */
public class TableSupport public class TableSupport
{ {

View File

@ -16,7 +16,7 @@ import org.springframework.stereotype.Component;
/** /**
* spring redis 工具类 * spring redis 工具类
* *
* @author ruoyi * @author 黑子
**/ **/
@SuppressWarnings(value = { "unchecked", "rawtypes" }) @SuppressWarnings(value = { "unchecked", "rawtypes" })
@Component @Component

View File

@ -7,7 +7,7 @@ import com.bonus.common.utils.StringUtils;
/** /**
* 字符集工具类 * 字符集工具类
* *
* @author ruoyi * @author 黑子
*/ */
public class CharsetKit public class CharsetKit
{ {

View File

@ -12,7 +12,7 @@ import com.bonus.common.utils.StringUtils;
/** /**
* 类型转换器 * 类型转换器
* *
* @author ruoyi * @author 黑子
*/ */
public class Convert public class Convert
{ {

View File

@ -5,7 +5,7 @@ import com.bonus.common.utils.StringUtils;
/** /**
* 字符串格式化 * 字符串格式化
* *
* @author ruoyi * @author 黑子
*/ */
public class StrFormatter public class StrFormatter
{ {

View File

@ -3,7 +3,7 @@ package com.bonus.common.enums;
/** /**
* 操作状态 * 操作状态
* *
* @author ruoyi * @author 黑子
* *
*/ */
public enum BusinessStatus public enum BusinessStatus

View File

@ -3,7 +3,7 @@ package com.bonus.common.enums;
/** /**
* 业务操作类型 * 业务操作类型
* *
* @author ruoyi * @author 黑子
*/ */
public enum BusinessType public enum BusinessType
{ {

View File

@ -3,7 +3,7 @@ package com.bonus.common.enums;
/** /**
* 数据源 * 数据源
* *
* @author ruoyi * @author 黑子
*/ */
public enum DataSourceType public enum DataSourceType
{ {

View File

@ -6,7 +6,7 @@ import com.bonus.common.utils.DesensitizedUtil;
/** /**
* 脱敏类型 * 脱敏类型
* *
* @author ruoyi * @author 黑子
*/ */
public enum DesensitizedType public enum DesensitizedType
{ {

View File

@ -7,7 +7,7 @@ import org.springframework.lang.Nullable;
/** /**
* 请求方式 * 请求方式
* *
* @author ruoyi * @author 黑子
*/ */
public enum HttpMethod public enum HttpMethod
{ {

Some files were not shown because too many files have changed in this diff Show More