| | |
| | | @Override |
| | | public List<TAccountingStrategyDetailVO> queryAccountingStrategyDetailByStrategyId(Integer strategyId) { |
| | | List<TAccountingStrategyDetailVO> tAccountingStrategyDetailVOS = this.baseMapper.queryAccountingStrategyDetailByStrategyId(strategyId); |
| | | Long userId = tokenService.getLoginUser().getUserid(); |
| | | Long userId = tokenService.getLoginUserApplet().getUserId(); |
| | | TAppUser appUser = appUserClient.getUserById(userId).getData(); |
| | | for (TAccountingStrategyDetailVO tAccountingStrategyDetailVO : tAccountingStrategyDetailVOS) { |
| | | GetAppUserVipDetail getAppUserVipDetail = new GetAppUserVipDetail(); |
| | |
| | | if(Objects.nonNull(data1)){ |
| | | String vipJson = data1.getVipJson(); |
| | | TVip vip = JSON.parseObject(vipJson, TVip.class); |
| | | tAccountingStrategyDetailVO.setDiscount(vip.getDiscount().divide(new BigDecimal(10))); |
| | | if(Objects.nonNull(vip) && vip.getType() == 2){ |
| | | tAccountingStrategyDetailVO.setDiscount(vip.getDiscount().divide(new BigDecimal(10))); |
| | | } |
| | | } |
| | | } |
| | | return tAccountingStrategyDetailVOS; |