| | |
| | | price.setRecoveryServeId(serve.getId()); |
| | | price.setRecoveryPrice(recoveryPrice); |
| | | price.setCity(city); |
| | | price.setCityCode(data.getCityCode()); |
| | | save = save && recoveryServePriceService.save(price); |
| | | } |
| | | } |
| | |
| | | price.setRecoveryServeId(serve.getId()); |
| | | price.setRecoveryPrice(recoveryPrice); |
| | | price.setCity(city); |
| | | price.setCityCode(data.getCityCode()); |
| | | update = update && recoveryServePriceService.save(price); |
| | | } |
| | | } |
| | |
| | | List<String> idList = Arrays.stream(ids.split(",")).collect(Collectors.toList()); |
| | | List<RecoveryServe> list = recoveryServeService.lambdaQuery().in(RecoveryServe::getId, idList).list(); |
| | | list.forEach(data -> data.setIsDelete(1)); |
| | | recoveryServePriceService.lambdaUpdate() |
| | | .set(RecoveryServePrice::getIsDelete, Constants.ONE) |
| | | .in(RecoveryServePrice::getRecoveryServeId, idList).update(); |
| | | return recoveryServeService.updateBatchById(list) ? R.ok() : R.fail(); |
| | | } |
| | | |