Commit 841adbb9 authored by 韩桐桐's avatar 韩桐桐

fix(openai):西安对接接口字段调整

parent f1bcf543
......@@ -313,7 +313,6 @@ public class XiAnDataDockServiceImpl {
if (isGasCylinder) { // 是气瓶
if (!isSpecialGasCylinder) { // 不是特种气瓶
data.setWhetherVehicleCylinder("");
data.setWhetherSphericalTank("");
checkNotBlank(data.getInformationSituation(), "信息化管理情况不能为空;", rowError);
if (!ObjectUtils.isEmpty(data.getInformationSituation())) {
checkNotBlank(data.getInformationManageCode(), "二维码或者电子标签编号不能为空;", rowError);
......@@ -333,20 +332,24 @@ public class XiAnDataDockServiceImpl {
checkFactoryNumUniqueness(data, rowError);// 校验出厂编号/产品编码唯一性
}
}
data.setWhetherSphericalTank("");
data.setWhetherSkidMountedPressureVessel("");
}
if (isFixedGasCylinder) { // 是固定式压力容器
checkNotBlank(data.getWhetherSphericalTank(), "是否球罐不能为空;", rowError);
data.setWhetherSkidMountedPressureVessel("0");
checkNotBlank(data.getWhetherSkidMountedPressureVessel(), "是否撬装式压力容器不能为空;", rowError);
data.setInformationSituation("");
data.setInformationManageCode("");
}
if (isMobilePressureVessel) {// 是移动式压力容器
data.setWhetherSkidMountedPressureVessel("");
data.setWhetherVehicleCylinder("");
data.setWhetherSphericalTank("");
data.setInformationSituation("");
data.setInformationManageCode("");
}
if (isOxygenChamber) {//是氧舱
data.setWhetherSkidMountedPressureVessel("");
data.setWhetherVehicleCylinder("");
data.setWhetherSphericalTank("");
data.setInformationSituation("");
......
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