| | |
| | | if (vipInfo == null) { |
| | | throw new GlobleException("会员不存在"); |
| | | } |
| | | |
| | | if (SysVipInfo.VALID_FLAG_N == vipInfo.getValidFlag()) { |
| | | AjaxResult ajaxResult = AjaxResult.buildSuccessInstance(new ArrayList<>(), "获取成功"); |
| | | ajaxResult.putInMap("proj", new ServiceProductListVo()); |
| | | return ajaxResult; |
| | | } |
| | | |
| | | ServiceProductListVo productListVo = new ServiceProductListVo(); |
| | | productListVo.setName(vipInfo.getVipName()); |
| | | productListVo.setVipId(vipInfo.getId()); |
| | |
| | | public AjaxResult findServiceOrderList(@RequestBody @Validated ErpServiceOrderListDto orderListDto) { |
| | | SysVipInfo sysVipInfo = userCacheManager.getLoginUser(); |
| | | orderListDto.setVipId(sysVipInfo.getId()); |
| | | |
| | | SysVipInfo vipInfo = sysVipInfoDao.selectById(sysVipInfo.getId()); |
| | | if (SysVipInfo.VALID_FLAG_N == vipInfo.getValidFlag()) { |
| | | return AjaxResult.buildSuccessInstance(new ArrayList<>(), "查询成功"); |
| | | } |
| | | |
| | | List<ErpServiceOrderListVo> apiServiceOrderListInPage = projServicesDao.findWxServiceOrderList(orderListDto); |
| | | return AjaxResult.buildSuccessInstance(apiServiceOrderListInPage,"查询成功"); |
| | | } |