From 1f7104a242095e888af2ff6eec3a68fb2abec417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E8=8D=A3=E7=90=B3?= Date: Tue, 12 Dec 2023 16:45:37 +0800 Subject: [PATCH] =?UTF-8?q?feature:=E5=86=B2=E7=BA=A2=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E6=AF=94=E8=BE=83=E5=89=A9=E4=BD=99=E9=87=91=E9=A2=9D=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../invoice/service/impl/OrderInvoiceInfoServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/order-management-invoice/src/main/java/com/dxhy/order/invoice/module/invoice/service/impl/OrderInvoiceInfoServiceImpl.java b/order-management-invoice/src/main/java/com/dxhy/order/invoice/module/invoice/service/impl/OrderInvoiceInfoServiceImpl.java index 369dd886..5a69e88d 100644 --- a/order-management-invoice/src/main/java/com/dxhy/order/invoice/module/invoice/service/impl/OrderInvoiceInfoServiceImpl.java +++ b/order-management-invoice/src/main/java/com/dxhy/order/invoice/module/invoice/service/impl/OrderInvoiceInfoServiceImpl.java @@ -1602,8 +1602,8 @@ public class OrderInvoiceInfoServiceImpl implements OrderInvoiceInfoService { if(sykchbhsje.compareTo(BigDecimal.ZERO) > ConfigureConstant.INT_0 && sykchse.compareTo(BigDecimal.ZERO) > ConfigureConstant.INT_0){ BigDecimal hzddHjbhsje = new BigDecimal(orderInfo.getHjbhsje()).abs(); BigDecimal hzddHjse = new BigDecimal(orderInfo.getHjse()).abs(); - if (hzddHjbhsje.subtract(sykchbhsje).compareTo(BigDecimal.ZERO) >= ConfigureConstant.INT_0 - && hzddHjse.subtract(sykchse).compareTo(BigDecimal.ZERO) >= ConfigureConstant.INT_0){ + if (hzddHjbhsje.subtract(sykchbhsje).compareTo(BigDecimal.ZERO) <= ConfigureConstant.INT_0 + && hzddHjse.subtract(sykchse).compareTo(BigDecimal.ZERO) <= ConfigureConstant.INT_0){ return R.ok().put(OrderManagementConstant.DATA,orderInvoiceData); } else { return R.error("蓝字剩余可冲红不含税金额小于负数订单不含税金额或税额");//改为常量