From df864d1d636751424fd642d3bdd33c53cf63500d Mon Sep 17 00:00:00 2001 From: Administrator <15274802129@163.com> Date: Mon, 07 Jul 2025 17:51:09 +0800 Subject: [PATCH] feat(mall): 为活动订单项添加积分和成长值奖 - 在活动添加和编辑页面增加积分和成长值输入字段 - 更新活动实体类,添加 scoreCnt 和 growthCnt 字段 - 修改活动订单项处理逻辑,增加积分和成长值奖励的计算和发放 - 优化活动订单项状态检查逻辑,移除冗余代码 --- src/main/java/cc/mrbird/febs/mall/controller/CommonController.java | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 43 insertions(+), 0 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/mall/controller/CommonController.java b/src/main/java/cc/mrbird/febs/mall/controller/CommonController.java index 56f988f..8c4dcd1 100644 --- a/src/main/java/cc/mrbird/febs/mall/controller/CommonController.java +++ b/src/main/java/cc/mrbird/febs/mall/controller/CommonController.java @@ -11,6 +11,7 @@ import cc.mrbird.febs.mall.service.ICommonService; import cc.mrbird.febs.mall.vo.ScoreSignVo; import cc.mrbird.febs.mall.vo.common.ApiCommonSetVo; +import cc.mrbird.febs.mall.vo.common.ApiIndexSetVo; import cn.hutool.core.io.file.FileNameUtil; import cn.hutool.core.lang.UUID; import cn.hutool.core.util.IdUtil; @@ -209,6 +210,48 @@ return new FebsResponse().success().data(apiCommonSetVo); } + + @ApiOperation(value = "小程序首页头部背景") + @GetMapping(value = "/indexHeadPng") + public FebsResponse indexHeadPng() { + String pngUrl = commonService.getDicByTypeAndCode( + CommonDictionaryEnum.VIDEO_URL_INDEX.getType(), + CommonDictionaryEnum.VIDEO_URL_INDEX.getCode() + ); + if (pngUrl == null) { + pngUrl = ""; + } + return new FebsResponse().success().data(pngUrl); + } + + @ApiOperation(value = "小程序开屏页设置") + @ApiResponses({ + @ApiResponse(code = 200, message = "success", response = ApiIndexSetVo.class) + }) + @GetMapping(value = "/indexSet") + public FebsResponse indexSet() { + ApiIndexSetVo apiIndexSetVo = new ApiIndexSetVo(); + + String pngUrl = commonService.getDicByTypeAndCode( + CommonDictionaryEnum.PNG_URL_INDEX.getType(), + CommonDictionaryEnum.PNG_URL_INDEX.getCode() + ); + if (pngUrl == null) { + pngUrl = ""; + } + apiIndexSetVo.setPngUrl(pngUrl); + + String timeStop = commonService.getDicByTypeAndCode( + CommonDictionaryEnum.TIME_URL_INDEX.getType(), + CommonDictionaryEnum.TIME_URL_INDEX.getCode() + ); + if (timeStop == null) { + timeStop = "3"; + } + apiIndexSetVo.setTimeStop(timeStop); + return new FebsResponse().success().data(apiIndexSetVo); + } + @ApiOperation(value = "base64FileUpload上传") @PostMapping(value = "/base64FileUpload") public Map<String,Object> base64FileUpload(@RequestBody @Validated MultipartFile file) throws IOException { -- Gitblit v1.9.1