|
|
@ -135,6 +135,7 @@ public class ValidateOrderInfoServiceImpl implements ValidateOrderInfoService { |
|
|
|
checkResultMap.put(OrderManagementConstant.ERRORCODE, OrderInfoContentEnum.SUCCESS.getKey()); |
|
|
|
checkResultMap.put(OrderManagementConstant.ERRORCODE, OrderInfoContentEnum.SUCCESS.getKey()); |
|
|
|
|
|
|
|
|
|
|
|
OrderInfo orderInfo = commonOrderInfo.getOrderInfo(); |
|
|
|
OrderInfo orderInfo = commonOrderInfo.getOrderInfo(); |
|
|
|
|
|
|
|
orderInfo.setInterfaceType(commonOrderInfo.getInterfaceType()); |
|
|
|
List<OrderItemInfo> orderItemInfo = commonOrderInfo.getOrderItemInfo(); |
|
|
|
List<OrderItemInfo> orderItemInfo = commonOrderInfo.getOrderItemInfo(); |
|
|
|
if (Double.parseDouble(orderInfo.getKphjje()) <= 0) { |
|
|
|
if (Double.parseDouble(orderInfo.getKphjje()) <= 0) { |
|
|
|
checkResultMap = CheckParamUtil.generateErrorMap(orderInfo.getFpqqlsh(), "", OrderInfoContentEnum.INVOICE_HJJE_ZERO_ERROR); |
|
|
|
checkResultMap = CheckParamUtil.generateErrorMap(orderInfo.getFpqqlsh(), "", OrderInfoContentEnum.INVOICE_HJJE_ZERO_ERROR); |
|
|
@ -270,7 +271,7 @@ public class ValidateOrderInfoServiceImpl implements ValidateOrderInfoService { |
|
|
|
} |
|
|
|
} |
|
|
|
//成品油的单位只能为吨或者升
|
|
|
|
//成品油的单位只能为吨或者升
|
|
|
|
TaxClassCodeEntity taxClassCodeEntity = taxClassCodeService.queryTaxClassCodeFromCache(orderItemInfo.getSpbm()); |
|
|
|
TaxClassCodeEntity taxClassCodeEntity = taxClassCodeService.queryTaxClassCodeFromCache(orderItemInfo.getSpbm()); |
|
|
|
|
|
|
|
String interfaceType = orderInfo.getInterfaceType(); |
|
|
|
if (ObjectUtil.isNotNull(taxClassCodeEntity)) { |
|
|
|
if (ObjectUtil.isNotNull(taxClassCodeEntity)) { |
|
|
|
|
|
|
|
|
|
|
|
if (i == 0) { |
|
|
|
if (i == 0) { |
|
|
@ -292,8 +293,8 @@ public class ValidateOrderInfoServiceImpl implements ValidateOrderInfoService { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//项目定制化,后期如有运维问题找松哥
|
|
|
|
if (orderItemInfos.size() > ConfigureConstant.INT_8) { |
|
|
|
if ((orderItemInfos.size() > ConfigureConstant.INT_8) && StringUtils.isBlank(interfaceType)) { |
|
|
|
checkResultMap = CheckParamUtil.generateErrorMap(orderInfo.getFpqqlsh(), "", OrderInfoContentEnum.ORDER__CPY_XMMX_SL_OVER_8_ERROR); |
|
|
|
checkResultMap = CheckParamUtil.generateErrorMap(orderInfo.getFpqqlsh(), "", OrderInfoContentEnum.ORDER__CPY_XMMX_SL_OVER_8_ERROR); |
|
|
|
log.error("{}成品油明细不能超过8行", LOGGER_MSG); |
|
|
|
log.error("{}成品油明细不能超过8行", LOGGER_MSG); |
|
|
|
return checkResultMap; |
|
|
|
return checkResultMap; |
|
|
@ -301,12 +302,12 @@ public class ValidateOrderInfoServiceImpl implements ValidateOrderInfoService { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
//放到生成预制发票时校验
|
|
|
|
//放到生成预制发票时校验
|
|
|
|
/*if (!isCpySpbm.equals(taxClassCodeEntity.getCpy())) { |
|
|
|
if (!isCpySpbm.equals(taxClassCodeEntity.getCpy()) && StringUtils.isBlank(interfaceType)) { |
|
|
|
//成品油商品编码和非成品油商品编码混开
|
|
|
|
//成品油商品编码和非成品油商品编码混开
|
|
|
|
log.error("{}发票只能为成品油或者非成品油", LOGGER_MSG); |
|
|
|
log.error("{}发票只能为成品油或者非成品油", LOGGER_MSG); |
|
|
|
checkResultMap = CheckParamUtil.generateErrorMap(orderInfo.getFpqqlsh(), errorMsgString, OrderInfoContentEnum.ORDER_SPBM_CPY_ERROR); |
|
|
|
checkResultMap = CheckParamUtil.generateErrorMap(orderInfo.getFpqqlsh(), errorMsgString, OrderInfoContentEnum.ORDER_SPBM_CPY_ERROR); |
|
|
|
return checkResultMap; |
|
|
|
return checkResultMap; |
|
|
|
}*/ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|