| @@ -50,6 +50,9 @@ public class WxCUserBasicInfoController extends BaseController { | |||||
| @Autowired | @Autowired | ||||
| private WxCouponService wxCouponService; | private WxCouponService wxCouponService; | ||||
| @Autowired | |||||
| WxLevelConfigService wxLevelConfigService; | |||||
| @ApiOperation("分页列表接口") | @ApiOperation("分页列表接口") | ||||
| @GetMapping("list") | @GetMapping("list") | ||||
| @ApiImplicitParams({ | @ApiImplicitParams({ | ||||
| @@ -180,6 +183,17 @@ public class WxCUserBasicInfoController extends BaseController { | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (info.getPoins() == null || info.getPoins() == 0) { | |||||
| info.setLevel("无"); | |||||
| } else { | |||||
| info.setLevel("无"); | |||||
| List<WxLevelConfig> levelList = wxLevelConfigService.getByTenantId(info.getTenantId()); | |||||
| for(WxLevelConfig levelConfig: levelList) { | |||||
| if (info.getPoins() >= levelConfig.getPoints()) { | |||||
| info.setLevel(levelConfig.getLevel()); | |||||
| } | |||||
| } | |||||
| } | |||||
| } else { | } else { | ||||
| info = new WxCUserBasicInfo(); | info = new WxCUserBasicInfo(); | ||||
| info.setId(id); | info.setId(id); | ||||