|
|
|
@@ -50,6 +50,9 @@ public class WxCUserBasicInfoController extends BaseController { |
|
|
|
@Autowired |
|
|
|
private WxCouponService wxCouponService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
WxLevelConfigService wxLevelConfigService; |
|
|
|
|
|
|
|
@ApiOperation("分页列表接口") |
|
|
|
@GetMapping("list") |
|
|
|
@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 { |
|
|
|
info = new WxCUserBasicInfo(); |
|
|
|
info.setId(id); |
|
|
|
|