| | |
| | | @PostMapping("/api/v1/vehicleRepair/saveReturnRepair") |
| | | public R<String> saveReturnRepair(@Validated @RequestBody XpVehicleRepairReturnDTO dto) { |
| | | Long id = tokenService.getLoginOperationUser().getId(); |
| | | if (dto.getRepairMoney().toString().length() > 200) { |
| | | throw new ServiceException("维修费用不能超过200字符", I18nKeyConstant.REPAIR_MONEY_TOO_LONG); |
| | | if (dto.getRepairMoney()>99999999.99) { |
| | | throw new ServiceException("维修费用不能超过10字符", I18nKeyConstant.REPAIR_MONEY_TOO_LONG); |
| | | } |
| | | xpVehicleRepairService.saveReturnRepair(dto,id); |
| | | return R.ok(); |