|  |  |  | 
|---|
|  |  |  | import com.matrix.system.hive.action.util.QueryUtil; | 
|---|
|  |  |  | import com.matrix.system.hive.bean.*; | 
|---|
|  |  |  | import com.matrix.system.hive.dao.MoneyCardUseDao; | 
|---|
|  |  |  | import com.matrix.system.hive.dao.SysVipLabelDao; | 
|---|
|  |  |  | import com.matrix.system.hive.dao.VipAnswerDao; | 
|---|
|  |  |  | import com.matrix.core.tools.DateUtil; | 
|---|
|  |  |  | import com.matrix.system.hive.pojo.RegisterInfo; | 
|---|
|  |  |  | 
|---|
|  |  |  | private MoneyCardUseDao moneyCardUseDao; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private SysVipLabelDao sysVipLabelDao; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private SystemDictionaryService dataDictionaryService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private CustomerDataDictionaryDao customerDataDictionaryDao; | 
|---|
|  |  |  | @Resource | 
|---|
|  |  |  | private SysOrderService sysOrderService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping(value = "/showVipLevel") | 
|---|
|  |  |  | 
|---|
|  |  |  | List<SysVipInfo> vips = vipInfoService.findByVipNoOrTel(keyWord); | 
|---|
|  |  |  | if (vips.size() > 0) { | 
|---|
|  |  |  | // 在session存放当前查询的客户 | 
|---|
|  |  |  | vips.get(0).setSysOrder(sysOrderService.findSysOrderTjByVipId(vips.get(0).getId())); | 
|---|
|  |  |  | vips.get(0).setLevelCard(cardUseService.findByVipId(vips.get(0).getId())); | 
|---|
|  |  |  | WebUtil.getSession().setAttribute(SystemConstance.CURRENT_CUSTOMER, vips.get(0)); | 
|---|
|  |  |  | // 满20后删除一个 | 
|---|
|  |  |  | 
|---|
|  |  |  | if (isNoRepeat) { | 
|---|
|  |  |  | userList.add(vips.get(0)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | vips.get(0).setLabels(sysVipLabelDao.selectByVipId(vips.get(0).getId())); | 
|---|
|  |  |  | vips.get(0).setAge(DateUtil.getAgeForBirthDay(vips.get(0).getBirthday1())); | 
|---|
|  |  |  | vips.get(0).setBalance(moneyCardUseDao.selectVipCardTotalMoney(vips.get(0).getId())); | 
|---|
|  |  |  | AjaxResult result=  new AjaxResult(AjaxResult.STATUS_SUCCESS, vips, 0); | 
|---|
|  |  |  | return result; | 
|---|