| | |
| | | @RequestMapping(value = "/findUserInfo") |
| | | public @ResponseBody |
| | | AjaxResult findUserInfo() { |
| | | AjaxResult res = new AjaxResult(); |
| | | SysVipInfo loginUser = userCacheManager.getLoginUser(); |
| | | SysVipInfo sysVipInfo = sysVipInfoService.findById(loginUser.getId()); |
| | | |
| | |
| | | sysVipInfo.setBalance(0D); |
| | | sysVipInfo.setPointAll(0); |
| | | } |
| | | } |
| | | |
| | | AjaxResult res = new AjaxResult(); |
| | | res.putInMap("couponCount", shopCouponRecordDao.countUnuseCouponRecord(loginUser.getId())); |
| | | res.putInMap("prizeCount", activitySignReceiveRecordDao.getSignAwardReceiveCount(loginUser.getId(), loginUser.getCompanyId())); |
| | | res.putInMap("userInfo", sysVipInfo); |
| | |
| | | } else { |
| | | res.putInMap("vipLevel", "初级会员"); |
| | | } |
| | | } |
| | | res.setStatus(AjaxResult.STATUS_SUCCESS); |
| | | return res; |
| | | } |