| | |
| | | @ApiOperation(value = "订单售后添加") |
| | | @PostMapping(value = "/add") |
| | | public ApiResult<String> add(@RequestBody TOrderAftersales dto) { |
| | | List<TOrderAftersales> list = orderAftersalesService.lambdaQuery() |
| | | .eq(TOrderAftersales::getOrderId, dto.getOrderId()).list(); |
| | | if (!list.isEmpty()){ |
| | | return ApiResult.failed("该订单已售后,不可再次操作!"); |
| | | } |
| | | dto.setCode(WarehousingConstant.ASTER_SALES+ CodeGenerateUtils.generateVolumeSn()); |
| | | orderAftersalesService.save(dto); |
| | | return ApiResult.success(); |
| | |
| | | BeanUtils.copyProperties(byId,res); |
| | | res.setOrderId(byId1.getId()); |
| | | if (byId1.getUserId()!=null){ |
| | | TAppUser byId4 = appUserService.getById(byId1); |
| | | TAppUser byId4 = appUserService.getById(byId1.getUserId()); |
| | | if (byId4!=null){ |
| | | res.setPhone(byId4.getPhone()); |
| | | res.setName(byId4.getName()); |