| | |
| | | package com.ruoyi.order.controller.forepart; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.utils.page.PageDTO; |
| | | import com.ruoyi.order.domain.MemberInvoice; |
| | |
| | | import com.ruoyi.order.service.ILogisticsService; |
| | | import com.ruoyi.order.service.impl.LogisticsServiceImpl; |
| | | import com.ruoyi.system.api.domain.Logistics; |
| | | import com.ruoyi.system.api.domain.Order; |
| | | import com.ruoyi.system.api.domain.dto.LogisticsDTO; |
| | | import com.ruoyi.system.api.domain.vo.Express100VO; |
| | | import io.swagger.annotations.Api; |
| | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | private ILogisticsService iLogisticsService; |
| | | @PostMapping("/getLogistics") |
| | | @ApiOperation(value = "用户端-获取快递公司") |
| | | public R<Logistics> getLogistics() { |
| | | iLogisticsService.list(); |
| | | return R.ok(); |
| | | public R<List<Logistics>> getLogistics() { |
| | | return R.ok(iLogisticsService.list()); |
| | | } |
| | | |
| | | @PostMapping("/getLogisticsList") |
| | |
| | | return R.ok(iLogisticsService.getLogisticsList(logisticsDTO)); |
| | | } |
| | | |
| | | @PostMapping("/getLogisticsOne") |
| | | @ApiOperation(value = "用户端-获取快递公司名稱") |
| | | public R<Logistics> getLogisticsOne(@RequestBody LogisticsDTO logisticsDTO) { |
| | | LambdaQueryWrapper<Logistics> wrapper= Wrappers.lambdaQuery(); |
| | | wrapper.eq(Logistics::getLogisticsNum,logisticsDTO.getCompany()); |
| | | return R.ok( iLogisticsService.getOne(wrapper)); |
| | | } |
| | | } |