diff --git a/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/validate/service/impl/ValidateOrderInfoServiceImpl.java b/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/validate/service/impl/ValidateOrderInfoServiceImpl.java index 5d91dd39..138aa863 100644 --- a/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/validate/service/impl/ValidateOrderInfoServiceImpl.java +++ b/order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/validate/service/impl/ValidateOrderInfoServiceImpl.java @@ -280,7 +280,10 @@ public class ValidateOrderInfoServiceImpl implements ValidateOrderInfoService { if (ConfigureConstant.STRING_Y.equals(taxClassCodeEntity.getCpy())) { - if (!OrderInfoEnum.FPHXZ_CODE_1.getKey().equals(orderItemInfo.getFphxz()) && !ConfigureConstant.STRING_DUN.equals(orderItemInfo.getXmdw()) && !ConfigureConstant.STRING_SHENG.equals(orderItemInfo.getXmdw())) { + if (!OrderInfoEnum.FPHXZ_CODE_1.getKey().equals(orderItemInfo.getFphxz()) && + !ConfigureConstant.STRING_DUN.equals(orderItemInfo.getXmdw()) && + !ConfigureConstant.STRING_SHENG.equals(orderItemInfo.getXmdw()) + && StringUtils.isBlank(interfaceType)) { log.error("{}成品油项目单位只能为吨或升", LOGGER_MSG); checkResultMap = CheckParamUtil.generateErrorMap(orderInfo.getFpqqlsh(), errorMsgString, OrderInfoContentEnum.INVOICE_XMXX_XMDW_ERROR); return checkResultMap;