ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/TAppUserController.java
@@ -647,7 +647,7 @@ //签到加积分记录 R<TIntegralRule> set = integralRuleClient.getSet(); TIntegralRule data = set.getData(); JSONObject jsonObject = JSON.parseObject(data.getAddVehiclesEarnsPoints()); JSONObject jsonObject = JSON.parseObject(data.getSignInForPoints()); //增加每日积分 Integer points = 0; Integer point = jsonObject.getInteger("num1"); ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TIntegralRuleController.java
@@ -35,7 +35,7 @@ @GetMapping("/getSet") @ApiOperation(tags = {"管理后台-积分管理"},value = "获取积分设置") @ApiOperation(tags = {"管理后台-积分管理","小程序-个人中心-签到"},value = "获取积分设置") public R<TIntegralRule> getSet() { TIntegralRule res = integralRuleService.getOne(new QueryWrapper<>()); return R.ok(res); ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/service/impl/TVipServiceImpl.java
@@ -9,8 +9,10 @@ import com.ruoyi.other.mapper.TVipMapper; import com.ruoyi.other.service.TVipService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.apache.poi.util.StringUtil; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.util.StringUtils; import java.util.List; @@ -34,6 +36,7 @@ for (TVip tVip : list) { String coupon = tVip.getCoupon(); if (StringUtils.hasLength(coupon)){ JSONArray jsonArray = JSONObject.parseArray(coupon); StringBuilder stringBuilder = new StringBuilder(); for (int i = 0; i < jsonArray.size(); i++) { @@ -47,6 +50,7 @@ } tVip.setCouponName(stringBuilder.toString()); } } pageInfo.setRecords(list); return pageInfo; }