Commit 59a0c9db by wangli

新增获取订单区块接口

1 parent 54b35f31
...@@ -53,4 +53,16 @@ public class OrderServiceDetailController { ...@@ -53,4 +53,16 @@ public class OrderServiceDetailController {
} }
return res; return res;
} }
@GetMapping("/order/appointment/list")
public Result<?> getOrderTeamBlock(@RequestParam String orderId) {
// 工单工作队区块
Result<?> res = null;
try{
res = orderServiceDetail.getOrderTeamBlock(orderId);
} catch (BusinessException e) {
return Result.failed(e.getMessage());
}
return res;
}
} }
\ No newline at end of file
...@@ -8,4 +8,6 @@ public interface OrderServiceDetail { ...@@ -8,4 +8,6 @@ public interface OrderServiceDetail {
Result<?> getOrderServiceDynamics(String orderId); Result<?> getOrderServiceDynamics(String orderId);
Result<?> getOrderAppointmentList(String orderId); Result<?> getOrderAppointmentList(String orderId);
Result<?> getOrderTeamBlock(String orderId);
} }
...@@ -6,6 +6,7 @@ import com.alibaba.cloud.integration.order.dto.*; ...@@ -6,6 +6,7 @@ import com.alibaba.cloud.integration.order.dto.*;
import com.alibaba.cloud.integration.order.entity.*; import com.alibaba.cloud.integration.order.entity.*;
import com.alibaba.cloud.integration.order.service.OrderServiceDetail; import com.alibaba.cloud.integration.order.service.OrderServiceDetail;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.aspectj.weaver.ast.Or;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
...@@ -136,6 +137,17 @@ public class OrderServiceDetailImpl implements OrderServiceDetail { ...@@ -136,6 +137,17 @@ public class OrderServiceDetailImpl implements OrderServiceDetail {
return Result.success(res); return Result.success(res);
} }
@Transactional
@Override
public Result<?> getOrderTeamBlock(String orderId) {
List<String> block = new ArrayList<>();
OrderTeamBlockResp res = new OrderTeamBlockResp();
res.setOrderId(orderId);
res.setBlock(block);
return Result.success(res);
}
private OrderRequest queryOrderDetail(String orderId) { private OrderRequest queryOrderDetail(String orderId) {
// 获取服务单记录 // 获取服务单记录
LambdaQueryWrapper<OrderRequest> lqw = new LambdaQueryWrapper<>(); LambdaQueryWrapper<OrderRequest> lqw = new LambdaQueryWrapper<>();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!