bugfix master 的一些 pr

This commit is contained in:
YunaiV 2024-02-27 21:01:02 +08:00
parent d134bfc4a6
commit 067ff6cc4d
4 changed files with 8 additions and 8 deletions

View File

@ -25,19 +25,18 @@ public interface ProductCommentMapper extends BaseMapperX<ProductCommentDO> {
} }
static void appendTabQuery(LambdaQueryWrapperX<ProductCommentDO> queryWrapper, Integer type) { static void appendTabQuery(LambdaQueryWrapperX<ProductCommentDO> queryWrapper, Integer type) {
LambdaQueryWrapperX<ProductCommentDO> queryWrapperX = new LambdaQueryWrapperX<>();
// 构建好评查询语句好评计算 总评 >= 4 // 构建好评查询语句好评计算 总评 >= 4
if (ObjectUtil.equal(type, AppCommentPageReqVO.GOOD_COMMENT)) { if (ObjectUtil.equal(type, AppCommentPageReqVO.GOOD_COMMENT)) {
queryWrapperX.ge(ProductCommentDO::getScores, 4); queryWrapper.ge(ProductCommentDO::getScores, 4);
} }
// 构建中评查询语句中评计算 总评 >= 3 总评 < 4 // 构建中评查询语句中评计算 总评 >= 3 总评 < 4
if (ObjectUtil.equal(type, AppCommentPageReqVO.MEDIOCRE_COMMENT)) { if (ObjectUtil.equal(type, AppCommentPageReqVO.MEDIOCRE_COMMENT)) {
queryWrapperX.ge(ProductCommentDO::getScores, 3); queryWrapper.ge(ProductCommentDO::getScores, 3);
queryWrapperX.lt(ProductCommentDO::getScores, 4); queryWrapper.lt(ProductCommentDO::getScores, 4);
} }
// 构建差评查询语句差评计算 总评 < 3 // 构建差评查询语句差评计算 总评 < 3
if (ObjectUtil.equal(type, AppCommentPageReqVO.NEGATIVE_COMMENT)) { if (ObjectUtil.equal(type, AppCommentPageReqVO.NEGATIVE_COMMENT)) {
queryWrapperX.lt(ProductCommentDO::getScores, 3); queryWrapper.lt(ProductCommentDO::getScores, 3);
} }
} }

View File

@ -50,7 +50,7 @@ public class MenuController {
@DeleteMapping("/delete") @DeleteMapping("/delete")
@Operation(summary = "删除菜单") @Operation(summary = "删除菜单")
@Parameter(name = "id", description = "角色编号", required= true, example = "1024") @Parameter(name = "id", description = "菜单编号", required= true, example = "1024")
@PreAuthorize("@ss.hasPermission('system:menu:delete')") @PreAuthorize("@ss.hasPermission('system:menu:delete')")
public CommonResult<Boolean> deleteMenu(@RequestParam("id") Long id) { public CommonResult<Boolean> deleteMenu(@RequestParam("id") Long id) {
menuService.deleteMenu(id); menuService.deleteMenu(id);

View File

@ -25,6 +25,7 @@ public class RoleRespVO {
@ExcelProperty("角色名称") @ExcelProperty("角色名称")
private String name; private String name;
@Schema(description = "角色标志", requiredMode = Schema.RequiredMode.REQUIRED, example = "admin")
@NotBlank(message = "角色标志不能为空") @NotBlank(message = "角色标志不能为空")
@ExcelProperty("角色标志") @ExcelProperty("角色标志")
private String code; private String code;

View File

@ -52,7 +52,7 @@ public interface RedisKeyConstants {
/** /**
* OAuth2 客户端的缓存 * OAuth2 客户端的缓存
* <p> * <p>
* KEY 格式user:{id} * KEY 格式oauth_client:{id}
* VALUE 数据类型String 客户端信息 * VALUE 数据类型String 客户端信息
*/ */
String OAUTH_CLIENT = "oauth_client"; String OAUTH_CLIENT = "oauth_client";
@ -78,7 +78,7 @@ public interface RedisKeyConstants {
/** /**
* 邮件账号的缓存 * 邮件账号的缓存
* <p> * <p>
* KEY 格式sms_template:{id} * KEY 格式mail_account:{id}
* VALUE 数据格式String 账号信息 * VALUE 数据格式String 账号信息
*/ */
String MAIL_ACCOUNT = "mail_account"; String MAIL_ACCOUNT = "mail_account";