|
|
@@ -2,6 +2,7 @@ package com.jzg.quotation.summary.controller;
|
|
|
|
|
|
|
|
|
import com.jzg.commons.aop.OperatorTrajectory;
|
|
|
+import com.jzg.commons.core.base.BaseController;
|
|
|
import com.jzg.commons.core.page.HttpResult;
|
|
|
import com.jzg.commons.entity.dto.InsOrdersParam;
|
|
|
import com.jzg.commons.entity.po.InsFeeOrders;
|
|
|
@@ -17,10 +18,13 @@ import com.jzg.quotation.summary.service.InsTaskImagesService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import jakarta.annotation.Resource;
|
|
|
+import jakarta.servlet.http.HttpServletRequest;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
+import org.springframework.web.context.request.RequestContextHolder;
|
|
|
+import org.springframework.web.context.request.ServletRequestAttributes;
|
|
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
|
|
@@ -29,7 +33,7 @@ import javax.validation.constraints.NotNull;
|
|
|
@Tag(name = "补录订单录入")
|
|
|
@Validated
|
|
|
@RequiredArgsConstructor
|
|
|
-public class InsOrdersController {
|
|
|
+public class InsOrdersController extends BaseController {
|
|
|
|
|
|
@Resource
|
|
|
private InsOrdersService insOrdersService;
|
|
|
@@ -40,6 +44,9 @@ public class InsOrdersController {
|
|
|
@Autowired
|
|
|
private InsOrdersCarInfoService insOrdersCarInfoService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private BaseController baseController;
|
|
|
+
|
|
|
@Resource
|
|
|
private InsFeeOrdersService insFeeOrdersService;
|
|
|
|
|
|
@@ -80,6 +87,15 @@ public class InsOrdersController {
|
|
|
@PostMapping("queryList")
|
|
|
@Operation(summary = "查询订单列表")
|
|
|
public HttpResult queryList(@RequestBody InsOrdersParam insOrdersParam) {
|
|
|
+ String systemCode = "";
|
|
|
+ //如果是APP登录的话 则传递SystemCode的头部字段
|
|
|
+ if (baseController.getUserSystemCode().equals("APP")) {
|
|
|
+ HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
|
|
|
+ systemCode = request.getHeader("system_code");
|
|
|
+ } else {
|
|
|
+ systemCode = baseController.getUserSystemCode();
|
|
|
+ }
|
|
|
+ insOrdersParam.setSystemCode(systemCode);
|
|
|
return HttpResult.ok(insOrdersService.queryList(insOrdersParam));
|
|
|
}
|
|
|
|