| | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.jilongda.applet.model.TOptometryDetail; |
| | | import com.jilongda.applet.model.TOrder; |
| | | import com.jilongda.applet.model.TOrderGoods; |
| | | import com.jilongda.applet.model.TStore; |
| | | import com.jilongda.applet.query.TOrderQuery; |
| | | import com.jilongda.applet.service.*; |
| | |
| | | return ApiResult.success(pageInfo); |
| | | } |
| | | |
| | | @Autowired |
| | | private TOrderGoodsService tOrderGoodsService; |
| | | @ApiOperation(value = "查询订单详情") |
| | | @GetMapping(value = "/getDetailById") |
| | | public ApiResult getDetailById(@RequestParam Integer id) { |
| | |
| | | if(Objects.nonNull(store)){ |
| | | tOrderVO.setStoreName(store.getName()); |
| | | } |
| | | // 查询商品详情 |
| | | List<TOrderGoods> list1 = tOrderGoodsService.lambdaQuery().eq(TOrderGoods::getOrderId, id).list(); |
| | | tOrderVO.setGoodsList(list1); |
| | | // 查询配镜处方 |
| | | List<TOptometryDetail> list = optometryDetailService.list(Wrappers.lambdaQuery(TOptometryDetail.class) |
| | | .eq(TOptometryDetail::getOptometryId, order.getOptometryId())); |