| | |
| | | if(Objects.nonNull(user)){ |
| | | dto.setStoreId(user.getStoreId()); |
| | | } |
| | | |
| | | if (dto.getUserId()!=null){ |
| | | TAppUser byId = tAppUserService.getById(dto.getUserId()); |
| | | dto.setName(byId.getName()); |
| | | dto.setPhone(byId.getPhone()); |
| | | } |
| | | orderService.save(dto); |
| | | |
| | | List<TOptometryDetail> optometryDetails = dto.getOptometryDetails(); |
| | |
| | | orderGoodsService.saveBatch(orderGoods); |
| | | lensGoodsService.updateBatchById(tLensGoods); |
| | | frameGoodsService.updateBatchById(tFrameGoods); |
| | | return ApiResult.success(); |
| | | return ApiResult.success(dto.getId()); |
| | | } |
| | | |
| | | @ApiOperation(value = "销售订单详情") |