| | |
| | | RechargeCentVo vo = new RechargeCentVo(); |
| | | Double money = (Double) stringObjectMap.get("money"); |
| | | vo.setAmount(BigDecimal.valueOf(money) ); |
| | | if (tAppUser.getIsVip() == 1){ |
| | | if (tAppUser.getIsVip() == 1&&tAppUser.getVipEndTime().after(new Date())){ |
| | | vo.setWpGold((Integer) stringObjectMap.get("MemberCoins")); |
| | | }else { |
| | | vo.setWpGold((Integer) stringObjectMap.get("usersCoins")); |
| | |
| | | UserIntegralChanges userIntegralChanges = new UserIntegralChanges(); |
| | | userIntegralChanges.setAppUserId(appUserId); |
| | | userIntegralChanges.setOldIntegral(appUser.getIntegral()); |
| | | userIntegralChanges.setType(5); |
| | | userIntegralChanges.setType(2); |
| | | appUser.setIntegral(null == appUser.getIntegral() ? points : appUser.getIntegral() - points); |
| | | userIntegralChanges.setNewIntegral(appUser.getIntegral()); |
| | | userIntegralChanges.setInsertTime(new Date()); |
| | |
| | | @Override |
| | | public ResultUtil exchangeAddPaymentCallback(String code, String orderNumber,Integer payType) { |
| | | List<UserPointsMerchandise> userPointsMerchandises = mcClient.queryUserPointMerchaseByCode(code); |
| | | if(userPointsMerchandises.get(0).getPayStatus() == 2){ |
| | | return ResultUtil.success(); |
| | | } |
| | | if (userPointsMerchandises.size() > 1){ |
| | | for (int i = 0; i < userPointsMerchandises.size(); i++) { |
| | | userPointsMerchandises.get(i).setOrderNumber(orderNumber+ "-" + (i+1)); |