Commit 06a0700d authored by suhuiguang's avatar suhuiguang

1.增加技术参数默认值null时为0

2.报检规则联调
parent d6820b0d
...@@ -140,6 +140,8 @@ public class InspectionOrgRefreshListener extends EmqxListener { ...@@ -140,6 +140,8 @@ public class InspectionOrgRefreshListener extends EmqxListener {
JyjcInspectionApplicationNoAcceptLog jyjcInspectionApplicationNoAcceptLog = getLastNoAcceptLog(equipInfoModel); JyjcInspectionApplicationNoAcceptLog jyjcInspectionApplicationNoAcceptLog = getLastNoAcceptLog(equipInfoModel);
inspectionEquipInfo.setRequestType(this.buildRequestType(equipInfoModel, jyjcInspectionApplicationNoAcceptLog)); inspectionEquipInfo.setRequestType(this.buildRequestType(equipInfoModel, jyjcInspectionApplicationNoAcceptLog));
inspectionEquipInfo.setLastNoAcceptInspectionCode(this.buildLastNoAcceptInspectionCode(jyjcInspectionApplicationNoAcceptLog)); inspectionEquipInfo.setLastNoAcceptInspectionCode(this.buildLastNoAcceptInspectionCode(jyjcInspectionApplicationNoAcceptLog));
// 是否球罐 0 1 转 boolean
inspectionEquipInfo.setIsBallValve(!"0".equals(registrationInfo.getWhetherSphericalTank()));
touchRuleWithApi(inspectionEquipInfo); touchRuleWithApi(inspectionEquipInfo);
} }
...@@ -180,7 +182,7 @@ public class InspectionOrgRefreshListener extends EmqxListener { ...@@ -180,7 +182,7 @@ public class InspectionOrgRefreshListener extends EmqxListener {
private RegistrationInfo fetchRegistrationInfo(String record) { private RegistrationInfo fetchRegistrationInfo(String record) {
return registrationInfoMapper.selectOne( return registrationInfoMapper.selectOne(
Wrappers.<RegistrationInfo>lambdaQuery().select(RegistrationInfo::getRecord, RegistrationInfo::getEquCategory, Wrappers.<RegistrationInfo>lambdaQuery().select(RegistrationInfo::getRecord, RegistrationInfo::getEquCategory,
RegistrationInfo::getEquDefine, RegistrationInfo::getEquList) RegistrationInfo::getEquDefine, RegistrationInfo::getEquList, RegistrationInfo::getWhetherSphericalTank)
.eq(RegistrationInfo::getRecord, record)); .eq(RegistrationInfo::getRecord, record));
} }
......
...@@ -185,4 +185,13 @@ public class RegistrationInfo extends AbstractEquipBaseEntity { ...@@ -185,4 +185,13 @@ public class RegistrationInfo extends AbstractEquipBaseEntity {
@TableField("\"LAST_USE_CERT_FILE_PATH\"") @TableField("\"LAST_USE_CERT_FILE_PATH\"")
private String lastUseCertFilePath; private String lastUseCertFilePath;
/**
* 是否球罐
* 1:是
* 0:不是
*/
@TableField("\"WHETHER_SPHERICAL_TANK\"")
private String whetherSphericalTank;
} }
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
resultType="com.yeejoin.amos.boot.module.ymt.api.entity.EquipTechParamBoiler"> resultType="com.yeejoin.amos.boot.module.ymt.api.entity.EquipTechParamBoiler">
select select
"DEVICE_LEVEL", "DEVICE_LEVEL",
"RATED_EVAPORATION_CAPACITY_THERMAL_POWER", COALESCE("RATED_EVAPORATION_CAPACITY_THERMAL_POWER", 0) as RATED_EVAPORATION_CAPACITY_THERMAL_POWER,
"RATED_WORKING_PRESSURE", COALESCE("RATED_WORKING_PRESSURE", 0) as RATED_WORKING_PRESSURE,
"RATED_OPERATING_TEMPERATURE", "RATED_OPERATING_TEMPERATURE",
"DESIGN_THERMAL_EFFICIENCY", "DESIGN_THERMAL_EFFICIENCY",
"FEEDWATER_TEMPERATURE", "FEEDWATER_TEMPERATURE",
......
...@@ -3,17 +3,17 @@ ...@@ -3,17 +3,17 @@
<mapper namespace="com.yeejoin.amos.boot.module.ymt.api.mapper.EquipTechParamRidesMapper"> <mapper namespace="com.yeejoin.amos.boot.module.ymt.api.mapper.EquipTechParamRidesMapper">
<select id="queryTechParamInUse" resultType="com.yeejoin.amos.boot.module.ymt.api.entity.EquipTechParamRides"> <select id="queryTechParamInUse" resultType="com.yeejoin.amos.boot.module.ymt.api.entity.EquipTechParamRides">
SELECT SELECT
"TRACK_HEIGHT", COALESCE("TRACK_HEIGHT", 0) as TRACK_HEIGHT,
"RUNNING_SPEED", COALESCE("RUNNING_SPEED", 0) as RUNNING_SPEED,
"NUMBER_OF_PASSENGERS", COALESCE("NUMBER_OF_PASSENGERS", 0) as NUMBER_OF_PASSENGERS,
"SLIDE_LENGTH", COALESCE("SLIDE_LENGTH", 0) as SLIDE_LENGTH,
"NUMBER_OF_VEHICLES", "NUMBER_OF_VEHICLES",
"OPERATING_HEIGHT", COALESCE("OPERATING_HEIGHT", 0) as OPERATING_HEIGHT,
"ROTARY_DIAMETER", COALESCE("ROTARY_DIAMETER", 0) as ROTARY_DIAMETER,
"UNILATERAL_SWING_ANGLE", "UNILATERAL_SWING_ANGLE",
"DIP", COALESCE("DIP", 0) as DIP,
"SLEWING_SPEED", "SLEWING_SPEED",
"EQUIPMENT_HEIGHT" COALESCE("EQUIPMENT_HEIGHT", 0) as EQUIPMENT_HEIGHT
FROM FROM
idx_biz_jg_tech_params_rides idx_biz_jg_tech_params_rides
WHERE RECORD = #{record} WHERE RECORD = #{record}
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
heat_treatment_method, heat_treatment_method,
qp_heat_treatment_temperature, qp_heat_treatment_temperature,
installation_position, installation_position,
container_volume, COALESCE(container_volume, 0) as container_volume,
pressure_vessel_diameter, pressure_vessel_diameter,
height, height,
material_cylinder_shell, material_cylinder_shell,
......
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