package com.ruoyi.order.controller;
|
|
|
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.order.entity.ServeCoordinate;
|
import com.ruoyi.order.service.ServeCoordinateService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import javax.annotation.Resource;
|
import java.util.List;
|
|
/**
|
* <p>
|
* 用户评价表 前端控制器
|
* </p>
|
*
|
* @author hjl
|
* @since 2024-05-29
|
*/
|
@RestController
|
@RequestMapping("/serveCoordinate")
|
@Api(tags = {"后台-系统设置-订单评价管理"})
|
public class ServeCoordinateController {
|
|
@Resource
|
private ServeCoordinateService serveCoordinateService;
|
|
/**
|
* 根据订单id和师傅id获取订单路线轨迹
|
*
|
* @param orderId 订单id
|
*/
|
@ApiOperation(value = "根据订单id和师傅id获取订单路线轨迹", tags = {"后台-系统设置-订单评价管理"})
|
@GetMapping(value = "/serveCoordinateList")
|
public R<List<ServeCoordinate>> serveCoordinateList(@RequestParam("orderId") String orderId,
|
@RequestParam("workerId") String workerId) {
|
return R.ok(serveCoordinateService.lambdaQuery()
|
.eq(ServeCoordinate::getWorkerId, workerId)
|
.eq(ServeCoordinate::getIsDelete, 0)
|
.eq(ServeCoordinate::getOrderId, orderId)
|
.orderByDesc(ServeCoordinate::getCreateTime).list());
|
}
|
|
}
|