From 0aa123c9fa93e05cff749a482b8a3bc26af666a0 Mon Sep 17 00:00:00 2001 From: jishenghua <752718920@qq.com> Date: Mon, 6 Jan 2025 23:02:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E5=AF=B9=E8=B4=A6=E5=8D=95=E7=9A=84=E6=98=8E=E7=BB=86=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=8E=A5=E5=8F=A3=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper_xml/DepotHeadMapperEx.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jshERP-boot/src/main/resources/mapper_xml/DepotHeadMapperEx.xml b/jshERP-boot/src/main/resources/mapper_xml/DepotHeadMapperEx.xml index 48fb50b0..21aa1dca 100644 --- a/jshERP-boot/src/main/resources/mapper_xml/DepotHeadMapperEx.xml +++ b/jshERP-boot/src/main/resources/mapper_xml/DepotHeadMapperEx.xml @@ -1203,8 +1203,8 @@ ) - and (abs(dh.change_amount)+(select ifnull(sum(abs(ai.each_amount)),0) from jsh_account_item ai where ai.bill_id=dh.id and ifnull(ai.delete_flag,'0') !='1')) - < (dh.discount_last_money + dh.other_money - ifnull(dh.deposit,0)) + and (ifnull(abs(dh.change_amount),0)+(select ifnull(sum(abs(ai.each_amount)),0) from jsh_account_item ai where ai.bill_id=dh.id and ifnull(ai.delete_flag,'0') !='1')) + < (ifnull(dh.discount_last_money,0) + ifnull(dh.other_money,0) - ifnull(dh.deposit,0)) and ifnull(dh.delete_flag,'0') !='1' order by dh.oper_time desc @@ -1257,8 +1257,8 @@ ) - and (abs(dh.change_amount)+(select ifnull(sum(abs(ai.each_amount)),0) from jsh_account_item ai where ai.bill_id=dh.id and ifnull(ai.delete_flag,'0') !='1')) - < (dh.discount_last_money + dh.other_money - ifnull(dh.deposit,0)) + and (ifnull(abs(dh.change_amount),0)+(select ifnull(sum(abs(ai.each_amount)),0) from jsh_account_item ai where ai.bill_id=dh.id and ifnull(ai.delete_flag,'0') !='1')) + < (ifnull(dh.discount_last_money,0) + ifnull(dh.other_money,0) - ifnull(dh.deposit,0)) and ifnull(dh.delete_flag,'0') !='1' ) tb