Commit fbdd5c48 authored by tianyiming's avatar tianyiming

Merge branch 'develop_tzs_ymt' into develop_tzs_register

parents 415ad758 b65a6860
...@@ -10,7 +10,6 @@ import org.springframework.context.annotation.Bean; ...@@ -10,7 +10,6 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
@Configuration @Configuration
@Slf4j @Slf4j
public class RedissonManager { public class RedissonManager {
...@@ -28,22 +27,18 @@ public class RedissonManager { ...@@ -28,22 +27,18 @@ public class RedissonManager {
@Value("${spring.redis.password}") @Value("${spring.redis.password}")
private String password; private String password;
/** //单机环境使用
* 单机环境使用-host @Value("${spring.redis.host:default}")
*/
@Value("${spring.redis.host}")
private String host; private String host;
/** //单机环境使用
* 单机环境使用 @Value("${spring.redis.port:default}")
*/
@Value("${spring.redis.port}")
private String port; private String port;
/** /**
* 单机环境使用 * 单机环境使用
*/ */
@Value("${spring.redis.database}") @Value("${spring.redis.database:0}")
private int database; private int database;
@Bean @Bean
......
...@@ -1511,6 +1511,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD ...@@ -1511,6 +1511,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
LinkedHashMap inspectionForm = (LinkedHashMap) map.get(inspection_form_id); LinkedHashMap inspectionForm = (LinkedHashMap) map.get(inspection_form_id);
List inspectionList = (ArrayList) inspectionForm.get("subForm_pbim1pfid8"); List inspectionList = (ArrayList) inspectionForm.get("subForm_pbim1pfid8");
List<IdxBizJgInspectionDetectionInfo> detectionInfoList = new ArrayList<>(); List<IdxBizJgInspectionDetectionInfo> detectionInfoList = new ArrayList<>();
if(!ObjectUtils.isEmpty(inspectionList)){
for (Object obj : inspectionList) { for (Object obj : inspectionList) {
IdxBizJgInspectionDetectionInfo inspectionDetectionInfo = JSON.parseObject(JSON.toJSONString(obj), IdxBizJgInspectionDetectionInfo.class); IdxBizJgInspectionDetectionInfo inspectionDetectionInfo = JSON.parseObject(JSON.toJSONString(obj), IdxBizJgInspectionDetectionInfo.class);
inspectionDetectionInfo.setRecord(record); inspectionDetectionInfo.setRecord(record);
...@@ -1519,6 +1520,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD ...@@ -1519,6 +1520,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
detectionInfoList.add(inspectionDetectionInfo); detectionInfoList.add(inspectionDetectionInfo);
} }
idxBizJgInspectionDetectionInfoService.saveOrUpdateBatch(detectionInfoList); idxBizJgInspectionDetectionInfoService.saveOrUpdateBatch(detectionInfoList);
}
//施工信息 //施工信息
LinkedHashMap constructionForm = (LinkedHashMap) map.get(construction_form_id); LinkedHashMap constructionForm = (LinkedHashMap) map.get(construction_form_id);
...@@ -1539,7 +1541,8 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD ...@@ -1539,7 +1541,8 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
List<IdxBizJgMainParts> mainPartsList = new ArrayList<>(); List<IdxBizJgMainParts> mainPartsList = new ArrayList<>();
List<IdxBizJgProtectionDevices> protectionDevicesList = new ArrayList<>(); List<IdxBizJgProtectionDevices> protectionDevicesList = new ArrayList<>();
LinkedHashMap registerForm = null; LinkedHashMap registerForm = null;
if (equCategory.startsWith("3")) { String equList = idxBizJgOtherInfo.getAlias().toString();
if (equList.startsWith("3")) {
//维保备案信息 //维保备案信息
LinkedHashMap maintenanceForm = (LinkedHashMap) map.get(maintenance_form_id); LinkedHashMap maintenanceForm = (LinkedHashMap) map.get(maintenance_form_id);
List subFormMaintenanceList = (ArrayList) maintenanceForm.get("subForm_6i16fox27e"); List subFormMaintenanceList = (ArrayList) maintenanceForm.get("subForm_6i16fox27e");
...@@ -1563,7 +1566,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD ...@@ -1563,7 +1566,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
elevator.setSequenceNbr("save".equals(type) ? null : techParamsElevator.getSequenceNbr()); elevator.setSequenceNbr("save".equals(type) ? null : techParamsElevator.getSequenceNbr());
idxBizJgTechParamsElevatorService.saveOrUpdate(elevator); idxBizJgTechParamsElevatorService.saveOrUpdate(elevator);
} }
} else if (equCategory.startsWith("1")) { } else if (equList.startsWith("1")) {
registerForm = (LinkedHashMap) map.get(gl_register_from_id); registerForm = (LinkedHashMap) map.get(gl_register_from_id);
IdxBizJgTechParamsBoiler boiler = JSON.parseObject(JSON.toJSONString(registerForm), IdxBizJgTechParamsBoiler.class); IdxBizJgTechParamsBoiler boiler = JSON.parseObject(JSON.toJSONString(registerForm), IdxBizJgTechParamsBoiler.class);
if (!ObjectUtils.isEmpty(boiler)) { if (!ObjectUtils.isEmpty(boiler)) {
...@@ -1575,7 +1578,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD ...@@ -1575,7 +1578,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
subFormMainPartsList.add("subForm_1hh88r4m69"); subFormMainPartsList.add("subForm_1hh88r4m69");
mainPartsList = getAccessoryEntity(registerForm, subFormMainPartsList, main_parts, record, date, type); mainPartsList = getAccessoryEntity(registerForm, subFormMainPartsList, main_parts, record, date, type);
} }
} else if (equCategory.startsWith("2")) { } else if (equList.startsWith("2")) {
registerForm = (LinkedHashMap) map.get(ylrq_register_from_id); registerForm = (LinkedHashMap) map.get(ylrq_register_from_id);
IdxBizJgTechParamsVessel vessel = JSON.parseObject(JSON.toJSONString(registerForm), IdxBizJgTechParamsVessel.class); IdxBizJgTechParamsVessel vessel = JSON.parseObject(JSON.toJSONString(registerForm), IdxBizJgTechParamsVessel.class);
if (!ObjectUtils.isEmpty(vessel)) { if (!ObjectUtils.isEmpty(vessel)) {
...@@ -1590,7 +1593,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD ...@@ -1590,7 +1593,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
subFormProtectionDevicesList.add("subForm_d4xdzhsgdj"); subFormProtectionDevicesList.add("subForm_d4xdzhsgdj");
protectionDevicesList = getAccessoryEntity(registerForm, subFormProtectionDevicesList, protection_devices, record, date, type); protectionDevicesList = getAccessoryEntity(registerForm, subFormProtectionDevicesList, protection_devices, record, date, type);
} }
} else if (equCategory.startsWith("4")) { } else if (equList.startsWith("4")) {
registerForm = (LinkedHashMap) map.get(qzjx_register_from_id); registerForm = (LinkedHashMap) map.get(qzjx_register_from_id);
IdxBizJgTechParamsLifting lifting = JSON.parseObject(JSON.toJSONString(registerForm), IdxBizJgTechParamsLifting.class); IdxBizJgTechParamsLifting lifting = JSON.parseObject(JSON.toJSONString(registerForm), IdxBizJgTechParamsLifting.class);
if (!ObjectUtils.isEmpty(lifting)) { if (!ObjectUtils.isEmpty(lifting)) {
...@@ -1606,7 +1609,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD ...@@ -1606,7 +1609,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
subFormProtectionDevicesList.add("subForm_h5h4x0zhur"); subFormProtectionDevicesList.add("subForm_h5h4x0zhur");
protectionDevicesList = getAccessoryEntity(registerForm, subFormProtectionDevicesList, protection_devices, record, date, type); protectionDevicesList = getAccessoryEntity(registerForm, subFormProtectionDevicesList, protection_devices, record, date, type);
} }
} else if (equCategory.startsWith("5")) { } else if (equList.startsWith("5")) {
registerForm = (LinkedHashMap) map.get(cc_register_from_id); registerForm = (LinkedHashMap) map.get(cc_register_from_id);
IdxBizJgTechParamsVehicle vehicle = JSON.parseObject(JSON.toJSONString(registerForm), IdxBizJgTechParamsVehicle.class); IdxBizJgTechParamsVehicle vehicle = JSON.parseObject(JSON.toJSONString(registerForm), IdxBizJgTechParamsVehicle.class);
if (!ObjectUtils.isEmpty(vehicle)) { if (!ObjectUtils.isEmpty(vehicle)) {
...@@ -1619,7 +1622,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD ...@@ -1619,7 +1622,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
subFormMainPartsList.add("subForm_tef7yf5fbr"); subFormMainPartsList.add("subForm_tef7yf5fbr");
mainPartsList = getAccessoryEntity(registerForm, subFormMainPartsList, main_parts, record, date, type); mainPartsList = getAccessoryEntity(registerForm, subFormMainPartsList, main_parts, record, date, type);
} }
} else if (equCategory.startsWith("6")) { } else if (equList.startsWith("6")) {
registerForm = (LinkedHashMap) map.get(ylss_register_from_id); registerForm = (LinkedHashMap) map.get(ylss_register_from_id);
IdxBizJgTechParamsRides rides = JSON.parseObject(JSON.toJSONString(registerForm), IdxBizJgTechParamsRides.class); IdxBizJgTechParamsRides rides = JSON.parseObject(JSON.toJSONString(registerForm), IdxBizJgTechParamsRides.class);
if (!ObjectUtils.isEmpty(rides)) { if (!ObjectUtils.isEmpty(rides)) {
...@@ -1628,7 +1631,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD ...@@ -1628,7 +1631,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
rides.setSequenceNbr("save".equals(type) ? null : techParamsRides.getSequenceNbr()); rides.setSequenceNbr("save".equals(type) ? null : techParamsRides.getSequenceNbr());
idxBizJgTechParamsRidesService.saveOrUpdate(rides); idxBizJgTechParamsRidesService.saveOrUpdate(rides);
} }
} else if (equCategory.startsWith("8")) { } else if (equList.startsWith("8")) {
registerForm = (LinkedHashMap) map.get(ylgd_register_from_id); registerForm = (LinkedHashMap) map.get(ylgd_register_from_id);
IdxBizJgTechParamsPipeline pipeline = JSON.parseObject(JSON.toJSONString(registerForm), IdxBizJgTechParamsPipeline.class); IdxBizJgTechParamsPipeline pipeline = JSON.parseObject(JSON.toJSONString(registerForm), IdxBizJgTechParamsPipeline.class);
if (!ObjectUtils.isEmpty(pipeline)) { if (!ObjectUtils.isEmpty(pipeline)) {
...@@ -1654,10 +1657,12 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD ...@@ -1654,10 +1657,12 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
} }
} }
IdxBizJgRegisterInfo registerInfo = JSON.parseObject(JSON.toJSONString(registerForm), IdxBizJgRegisterInfo.class); IdxBizJgRegisterInfo registerInfo = JSON.parseObject(JSON.toJSONString(registerForm), IdxBizJgRegisterInfo.class);
if(!ObjectUtils.isEmpty(registerInfo)){
registerInfo.setRecord(record); registerInfo.setRecord(record);
registerInfo.setRecDate(date); registerInfo.setRecDate(date);
registerInfo.setSequenceNbr("save".equals(type) ? null : registerForm.get("sequenceNbr").toString()); registerInfo.setSequenceNbr("save".equals(type) ? null : registerForm.get("sequenceNbr").toString());
idxBizJgRegisterInfoService.saveOrUpdate(registerInfo); idxBizJgRegisterInfoService.saveOrUpdate(registerInfo);
}
if (!ObjectUtils.isEmpty(mainPartsList)) { if (!ObjectUtils.isEmpty(mainPartsList)) {
idxBizJgMainPartsService.saveOrUpdateBatch(mainPartsList); idxBizJgMainPartsService.saveOrUpdateBatch(mainPartsList);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment