TC数据全部替换为数据库数据(补充机型版本)
This commit is contained in:
parent
1ae1dd83f0
commit
e6a58a0633
@ -99,7 +99,8 @@ public class TcDataQueryServiceImpl implements TcDataQueryService {
|
||||
String partsName = subsystemType.split("-")[1];
|
||||
//开始查找系统数据
|
||||
List<EngineParamDetailPojo> pojoList = bd.getBusinessDatabase()
|
||||
.eq("engine_model_id", engineModelID)
|
||||
.eq("engine_model_id", dataEntryEngineModelPojo.getId())
|
||||
.eq("major_version", dataEntryEngineModelPojo.getVersionNumber())
|
||||
.eq("subsystem_name", subsystem)
|
||||
.eq("parts_name", partsName)
|
||||
.doQuery(EngineParamDetailPojo.class);
|
||||
@ -176,7 +177,8 @@ public class TcDataQueryServiceImpl implements TcDataQueryService {
|
||||
List<EngineParamDetailPojo> systemDataList = new ArrayList<>();
|
||||
for (Map.Entry<String, String> subsystemPartsPair : subsystemPartsPairs) {
|
||||
List<EngineParamDetailPojo> pojoList = bd.getBusinessDatabase()
|
||||
.eq("engine_model_id", engineModelID)
|
||||
.eq("engine_model_id", dataEntryEngineModelPojo.getId())
|
||||
.eq("major_version", dataEntryEngineModelPojo.getVersionNumber())
|
||||
.eq("subsystem_name", subsystemPartsPair.getKey())
|
||||
.eq("parts_name", subsystemPartsPair.getValue())
|
||||
.doQuery(EngineParamDetailPojo.class);
|
||||
@ -237,8 +239,7 @@ public class TcDataQueryServiceImpl implements TcDataQueryService {
|
||||
try (ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream()).build()) {
|
||||
setupResponse(response, "参数值导入模板" + (new Date()));
|
||||
ArrayList<EnginePartsCollectionPojo> enginePartsCollections = new ArrayList<>();
|
||||
List<EnginePartsCollectionPojo> lbjmcs = bd.getBusinessDatabase()
|
||||
.doQuery(EnginePartsCollectionPojo.class);
|
||||
List<EnginePartsCollectionPojo> lbjmcs = new ArrayList<>();
|
||||
for (EnginePartsCollectionPojo parameter : lbjmcs) {
|
||||
EnginePartsCollectionPojo engineParamDetailExcel = new EnginePartsCollectionPojo();
|
||||
engineParamDetailExcel.setZtj(parameter.getZtj());
|
||||
@ -264,8 +265,7 @@ public class TcDataQueryServiceImpl implements TcDataQueryService {
|
||||
public void excelExportB(HttpServletResponse response) {
|
||||
try (ExcelWriter excelWriter = EasyExcel.write(response.getOutputStream()).build()) {
|
||||
ArrayList<ClassificationAttributePojo> enginePartsCollections = new ArrayList<>();
|
||||
List<ClassificationAttributePojo> lbjmcs = bd.getBusinessDatabase()
|
||||
.doQuery(ClassificationAttributePojo.class);
|
||||
List<ClassificationAttributePojo> lbjmcs = new ArrayList<>();
|
||||
for (ClassificationAttributePojo parameter : lbjmcs) {
|
||||
ClassificationAttributePojo engineParamDetailExcel = new ClassificationAttributePojo();
|
||||
engineParamDetailExcel.setFieldvalue(parameter.getFieldvalue());
|
||||
@ -521,6 +521,7 @@ public class TcDataQueryServiceImpl implements TcDataQueryService {
|
||||
|
||||
return bd.getBusinessDatabase()
|
||||
.eq("engine_model_id", model.getId())
|
||||
.eq("major_version", model.getVersionNumber())
|
||||
.in("subsystem_name", subsystemSet)
|
||||
.in("parts_name", partsNameSet)
|
||||
.doQuery(EngineParamDetailPojo.class);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user