Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
d81a08a0dd
@ -15,11 +15,19 @@ public class AnalysisCommonController {
|
||||
@Autowired
|
||||
AnalysisCommonParametersService analysisCommonParametersService;
|
||||
|
||||
//机型常用返回机型数据
|
||||
//机型常用返回机型数据 暂未使用
|
||||
@PostMapping("/selectModelParamByCommon")
|
||||
public Response selectModelParamByCommon(@RequestBody AnalysisRequest analysisRequest) {
|
||||
ArrayList<AnalysisModelParamterView> lists = analysisCommonParametersService.selectModelParamByCommon(analysisRequest);
|
||||
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")
|
||||
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);
|
||||
return Response.ok().data(list);
|
||||
}
|
||||
|
||||
@ -18,6 +18,9 @@ public class DataEntryEngineModelPageRequest {
|
||||
private String projectName;
|
||||
private String projectNumber;
|
||||
private String brand;
|
||||
private String emission;
|
||||
private String burnType;
|
||||
private String engineCapacity;
|
||||
private String department;
|
||||
private String resPerson;
|
||||
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 partsName;
|
||||
|
||||
/**
|
||||
* 参数名称
|
||||
|
||||
@ -95,8 +95,6 @@ public class EngineParamDetailServiceImpl implements EngineParamDetailService {
|
||||
Template::getOrderNum, // value: 排序号
|
||||
(oldValue, newValue) -> oldValue
|
||||
));
|
||||
systemOrderMap.put("整车参数",0);
|
||||
DataEntryEngineModelPojo dataEntryEngineModelPojo = dataEntryEngineModelService.selectBymodelId(modelID);
|
||||
Map<String, List<String>> collect = parameters.stream()
|
||||
.collect(Collectors.groupingBy(
|
||||
Parameter::getSubsystemName,
|
||||
@ -105,6 +103,9 @@ public class EngineParamDetailServiceImpl implements EngineParamDetailService {
|
||||
Collectors.toList()
|
||||
)
|
||||
));
|
||||
if (ObjectUtils.isNotEmpty(modelID)) {
|
||||
systemOrderMap.put("整车参数", 0);
|
||||
DataEntryEngineModelPojo dataEntryEngineModelPojo = dataEntryEngineModelService.selectBymodelId(modelID);
|
||||
//状态代号
|
||||
String productNumber = dataEntryEngineModelPojo.getProductNumber();
|
||||
//板块
|
||||
@ -136,6 +137,7 @@ public class EngineParamDetailServiceImpl implements EngineParamDetailService {
|
||||
strings.add("品牌:" + brand);
|
||||
|
||||
collect.put("整车参数", strings);
|
||||
}
|
||||
HashMap<String, List<String>> sortedCollect2 = collect.entrySet().stream()
|
||||
.sorted(Comparator.comparing(entry ->
|
||||
systemOrderMap.getOrDefault(entry.getKey(), Integer.MAX_VALUE)
|
||||
@ -148,6 +150,7 @@ public class EngineParamDetailServiceImpl implements EngineParamDetailService {
|
||||
));
|
||||
return sortedCollect2;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, HashMap<String, List<String>>> selectParamListAndModel(String modelID) {
|
||||
HashMap<String, HashMap<String, List<String>>> map = new HashMap<>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user