| | |
| | | .set(PricingParam::getName,pricingParam.getName()) |
| | | // .set(PricingParam::getStatus,pricingParam.getStatus()) |
| | | .set(PricingParam::getStartDate,pricingParam.getStartDate()) |
| | | .set(PricingParam::getEndDate,pricingParam.getEndDate()) |
| | | .set(PricingParam::getEndDate,Utils.Date.getDayOfEnd(pricingParam.getEndDate())) |
| | | .set(PricingParam::getSortnum,pricingParam.getSortnum()); |
| | | pricingParamMapper.update(null,wrapper); |
| | | } |
| | |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"该定价方案下没有配置价格"); |
| | | } |
| | | List<String> collect = pricingDetails.stream().map(s -> s.getBikeTypeId()).collect(Collectors.toList()); |
| | | boolean b = baseParams.stream().map(s -> s.getId()).anyMatch(s -> collect.contains(s)); |
| | | boolean b = baseParams.stream().map(s -> s.getId()).allMatch(s -> collect.contains(s)); |
| | | |
| | | if (b){ |
| | | if (!b){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"该定价方案下没有配置完整"); |
| | | } |
| | | PricingParam pricingParam1 = new PricingParam(); |