| | |
| | |
|
| | | @Resource
|
| | | private GiveVIPApplyInfoService giveVIPApplyInfoService;
|
| | | |
| | |
|
| | | @Resource
|
| | | private PreviewInfoService previewInfoService;
|
| | | |
| | |
|
| | | private static final String EXTRACT_MIN_MONEY = ConfigKeyEnum.extractMoneyMin.getKey();
|
| | | private static final String EXTRACT_MAX_MONEY = ConfigKeyEnum.extractMoneyMAX.getKey();
|
| | |
| | | public void collectionGoodsList(AcceptData acceptData, long uid, int page, PrintWriter out) {
|
| | |
|
| | | List<CollectionGoodsV2> collectionGoodsList = collectionGoodsV2Service.getCollectionGoodsList(uid, page + 1,
|
| | | Constant.PAGE_SIZE, Constant.SOURCE_TYPE_TAOBAO);
|
| | | Constant.PAGE_SIZE, Constant.SOURCE_TYPE_TAOBAO, true);
|
| | |
|
| | | List<TaoBaoGoodsBriefExtra> list = new ArrayList<TaoBaoGoodsBriefExtra>();
|
| | |
|
| | | long count = collectionGoodsV2Service.getCollectionGoodsCount(uid, Constant.SOURCE_TYPE_TAOBAO);
|
| | | long count = collectionGoodsV2Service.getCollectionGoodsCount(uid, Constant.SOURCE_TYPE_TAOBAO, true);
|
| | | JSONObject data = new JSONObject();
|
| | |
|
| | | List<TaoBaoGoodsBrief> listTaoKeGoods = new ArrayList<TaoBaoGoodsBrief>();
|
| | |
| | | if (VersionUtil.greaterThan_2_0_7(acceptData.getPlatform(), acceptData.getVersion())) {
|
| | | UserInviteLevelEnum level = null;
|
| | | // VIP预览信息
|
| | | if (VersionUtil.greaterThan_2_1(acceptData.getPlatform(), acceptData.getVersion())) {
|
| | | if (VersionUtil.greaterThan_2_1_1(acceptData.getPlatform(), acceptData.getVersion())) {
|
| | | String redisContent = previewInfoService.getRedisContent(uid, PreviewEnum.mineInfo);
|
| | | if (!StringUtil.isNullOrEmpty(redisContent)) {
|
| | | MineInfoVO vo = new Gson().fromJson(redisContent, MineInfoVO.class);
|
| | | if (vo != null) {
|
| | | if (!StringUtil.isNullOrEmpty(vo.getBalance()))
|
| | | userInfo.setMyHongBao(new BigDecimal(vo.getBalance()));
|
| | | |
| | |
|
| | | if (!StringUtil.isNullOrEmpty(vo.getLevel()))
|
| | | for (UserInviteLevelEnum levelEnum: UserInviteLevelEnum.values()) {
|
| | | if (levelEnum.name().equals(vo.getLevel())) {
|
| | | level = levelEnum;
|
| | | break;
|
| | | }
|
| | | }
|
| | | for (UserInviteLevelEnum levelEnum : UserInviteLevelEnum.values()) {
|
| | | if (levelEnum.name().equals(vo.getLevel())) {
|
| | | level = levelEnum;
|
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | |
| | |
|
| | | if (level == null) {
|
| | | if (VersionUtil.greaterThan_2_1(acceptData.getPlatform(), acceptData.getVersion())) {
|
| | | level = userInviteService.getUserInviteLevelNew(uid);
|
| | |
| | | UserLevelEnum level = userLevelManager.getUserLevel(uid);
|
| | |
|
| | | JSONObject vipAction = null;
|
| | | if (level == UserLevelEnum.superVIP || level == UserLevelEnum.tearcher) {
|
| | | String managerLink = userVipConfigService.getValueByKey("vip_manager_link");
|
| | | if ((level == UserLevelEnum.superVIP || level == UserLevelEnum.tearcher)
|
| | | && !StringUtil.isNullOrEmpty(managerLink)) {
|
| | | vipAction = new JSONObject();
|
| | | vipAction.put("name", "超会管理");
|
| | | vipAction.put("jumpDetail",
|
| | |
| | | JSONObject params = new JSONObject();
|
| | | params.put("url", userVipConfigService.getValueByKey("vip_manager_link"));
|
| | | vipAction.put("params", params);
|
| | |
|
| | | } else {
|
| | | // 查询是否可以提交会员申请,是的话返回资料填写页面
|
| | | List<GiveVIPApplyInfo> list = giveVIPApplyInfoService.listByStateAndTargetUid(uid,
|
| | |
| | | data.put("vipAction", vipAction);
|
| | |
|
| | | }
|
| | | |
| | | data.put("user", JsonUtil.getConvertBigDecimalToStringBuilder(gsonBuilder).create().toJson(userInfo));
|
| | |
|
| | | out.print(JsonUtil.loadTrueResult(data));
|
| | |
|