树形结构调整
This commit is contained in:
parent
cdc1fb84da
commit
fea69318b1
@ -15,11 +15,19 @@ public class AnalysisCommonController {
|
|||||||
@Autowired
|
@Autowired
|
||||||
AnalysisCommonParametersService analysisCommonParametersService;
|
AnalysisCommonParametersService analysisCommonParametersService;
|
||||||
|
|
||||||
//机型常用返回机型数据
|
//机型常用返回机型数据 暂未使用
|
||||||
@PostMapping("/selectModelParamByCommon")
|
@PostMapping("/selectModelParamByCommon")
|
||||||
public Response selectModelParamByCommon(@RequestBody AnalysisRequest analysisRequest) {
|
public Response selectModelParamByCommon(@RequestBody AnalysisRequest analysisRequest) {
|
||||||
ArrayList<AnalysisModelParamterView> lists = analysisCommonParametersService.selectModelParamByCommon(analysisRequest);
|
ArrayList<AnalysisModelParamterView> lists = analysisCommonParametersService.selectModelParamByCommon(analysisRequest);
|
||||||
return Response.ok().data(lists);
|
return Response.ok().data(lists);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//统计分析图标
|
||||||
|
@PostMapping("/showReport")
|
||||||
|
public Response showReport(@RequestBody AnalysisRequest analysisRequest) {
|
||||||
|
ArrayList<AnalysisModelParamterView> lists = analysisCommonParametersService.selectModelParamByCommon(analysisRequest);
|
||||||
|
return Response.ok().data(lists);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,7 +33,7 @@ public class EngineParamDetailController {
|
|||||||
|
|
||||||
//参数列表查询
|
//参数列表查询
|
||||||
@GetMapping("/selectParamList")
|
@GetMapping("/selectParamList")
|
||||||
public Response selectParamList(@RequestParam(value = "modelID"/*, required = false*/) String modelID) {
|
public Response selectParamList(@RequestParam(value = "modelID", required = false) String modelID) {
|
||||||
Map<String, List<String>> list = engineParamDetailService.selectParamList(modelID);
|
Map<String, List<String>> list = engineParamDetailService.selectParamList(modelID);
|
||||||
return Response.ok().data(list);
|
return Response.ok().data(list);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,6 +18,9 @@ public class DataEntryEngineModelPageRequest {
|
|||||||
private String projectName;
|
private String projectName;
|
||||||
private String projectNumber;
|
private String projectNumber;
|
||||||
private String brand;
|
private String brand;
|
||||||
|
private String emission;
|
||||||
|
private String burnType;
|
||||||
|
private String engineCapacity;
|
||||||
private String department;
|
private String department;
|
||||||
private String resPerson;
|
private String resPerson;
|
||||||
private String distributeStatus;
|
private String distributeStatus;
|
||||||
|
|||||||
@ -0,0 +1,31 @@
|
|||||||
|
package com.xdap.self_development.controller.request;
|
||||||
|
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 待办事项表
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Lys111
|
||||||
|
* @since 2025-11-18
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ReportRequest {
|
||||||
|
|
||||||
|
//产品型号 板块 平台 系列 项目名称及编号 排放 燃烧类型 排量Min,排量max
|
||||||
|
private String modelName;
|
||||||
|
private String plate;
|
||||||
|
private String platform;
|
||||||
|
private String series;
|
||||||
|
private String projectName;
|
||||||
|
private String projectNumber;
|
||||||
|
private String emission;
|
||||||
|
private String burnType;
|
||||||
|
private String engineCapacityMin;
|
||||||
|
private String engineCapacityMax;
|
||||||
|
|
||||||
|
}
|
||||||
@ -30,6 +30,10 @@ public class EngineParamDetailDTO {
|
|||||||
* 类型
|
* 类型
|
||||||
*/
|
*/
|
||||||
private String parameterType;
|
private String parameterType;
|
||||||
|
/**
|
||||||
|
* 零部件名称
|
||||||
|
*/
|
||||||
|
private String partsName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 参数名称
|
* 参数名称
|
||||||
|
|||||||
@ -95,8 +95,6 @@ public class EngineParamDetailServiceImpl implements EngineParamDetailService {
|
|||||||
Template::getOrderNum, // value: 排序号
|
Template::getOrderNum, // value: 排序号
|
||||||
(oldValue, newValue) -> oldValue
|
(oldValue, newValue) -> oldValue
|
||||||
));
|
));
|
||||||
systemOrderMap.put("整车参数",0);
|
|
||||||
DataEntryEngineModelPojo dataEntryEngineModelPojo = dataEntryEngineModelService.selectBymodelId(modelID);
|
|
||||||
Map<String, List<String>> collect = parameters.stream()
|
Map<String, List<String>> collect = parameters.stream()
|
||||||
.collect(Collectors.groupingBy(
|
.collect(Collectors.groupingBy(
|
||||||
Parameter::getSubsystemName,
|
Parameter::getSubsystemName,
|
||||||
@ -105,6 +103,9 @@ public class EngineParamDetailServiceImpl implements EngineParamDetailService {
|
|||||||
Collectors.toList()
|
Collectors.toList()
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
if (ObjectUtils.isNotEmpty(modelID)) {
|
||||||
|
systemOrderMap.put("整车参数", 0);
|
||||||
|
DataEntryEngineModelPojo dataEntryEngineModelPojo = dataEntryEngineModelService.selectBymodelId(modelID);
|
||||||
//状态代号
|
//状态代号
|
||||||
String productNumber = dataEntryEngineModelPojo.getProductNumber();
|
String productNumber = dataEntryEngineModelPojo.getProductNumber();
|
||||||
//板块
|
//板块
|
||||||
@ -136,6 +137,7 @@ public class EngineParamDetailServiceImpl implements EngineParamDetailService {
|
|||||||
strings.add("品牌:" + brand);
|
strings.add("品牌:" + brand);
|
||||||
|
|
||||||
collect.put("整车参数", strings);
|
collect.put("整车参数", strings);
|
||||||
|
}
|
||||||
HashMap<String, List<String>> sortedCollect2 = collect.entrySet().stream()
|
HashMap<String, List<String>> sortedCollect2 = collect.entrySet().stream()
|
||||||
.sorted(Comparator.comparing(entry ->
|
.sorted(Comparator.comparing(entry ->
|
||||||
systemOrderMap.getOrDefault(entry.getKey(), Integer.MAX_VALUE)
|
systemOrderMap.getOrDefault(entry.getKey(), Integer.MAX_VALUE)
|
||||||
@ -148,6 +150,7 @@ public class EngineParamDetailServiceImpl implements EngineParamDetailService {
|
|||||||
));
|
));
|
||||||
return sortedCollect2;
|
return sortedCollect2;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Map<String, HashMap<String, List<String>>> selectParamListAndModel(String modelID) {
|
public Map<String, HashMap<String, List<String>>> selectParamListAndModel(String modelID) {
|
||||||
HashMap<String, HashMap<String, List<String>>> map = new HashMap<>();
|
HashMap<String, HashMap<String, List<String>>> map = new HashMap<>();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user