This commit is contained in:
linfso 2024-09-23 17:53:08 +08:00
parent ec1865db85
commit 9721f4c30b
2 changed files with 8 additions and 8 deletions

View File

@ -89,8 +89,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND FIND_IN_SET( x2.settle_bill_no, x1.settle_bill_no )
AND FIND_IN_SET( x2.settle_bill_no, #{settleBillNo})
)
AND EXISTS (
select 1 from emis_settle_sub_bill essb where a.bill_no=essb.bill_no and essb.del_flag='0' and FIND_IN_SET( essb.settle_bill_no, #{settleBillNo})
AND a.bill_no IN (
select essb.bill_no from emis_settle_sub_bill essb where essb.del_flag='0' and FIND_IN_SET( essb.settle_bill_no, #{settleBillNo})
)
</select>
@ -108,8 +108,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND FIND_IN_SET( x2.settle_bill_no, x1.settle_bill_no )
AND FIND_IN_SET( x2.settle_bill_no, #{settleBillNo})
)
AND EXISTS (
select 1 from emis_settle_sub_bill essb where a.bill_no=essb.bill_no and essb.del_flag='0' and FIND_IN_SET( essb.settle_bill_no, #{settleBillNo})
AND a.bill_no IN (
select essb.bill_no from emis_settle_sub_bill essb where essb.del_flag='0' and FIND_IN_SET( essb.settle_bill_no, #{settleBillNo})
)
group by bill_no
</select>

View File

@ -48,8 +48,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND FIND_IN_SET( x2.settle_bill_no, x1.settle_bill_no )
AND FIND_IN_SET( x2.settle_bill_no, #{settleBillNo})
)
AND EXISTS (
select 1 from emis_settle_sub_bill essb where a.bill_no=essb.bill_no and essb.del_flag='0' and FIND_IN_SET( essb.settle_bill_no, #{settleBillNo})
AND a.bill_no IN (
select essb.bill_no from emis_settle_sub_bill essb where essb.del_flag='0' and FIND_IN_SET( essb.settle_bill_no, #{settleBillNo})
)
</select>
@ -68,8 +68,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND FIND_IN_SET( x2.settle_bill_no, x1.settle_bill_no )
AND FIND_IN_SET( x2.settle_bill_no, #{settleBillNo})
)
AND EXISTS (
select 1 from emis_settle_sub_bill essb where a.bill_no=essb.bill_no and essb.del_flag='0' and FIND_IN_SET( essb.settle_bill_no, #{settleBillNo})
AND a.bill_no IN (
select essb.bill_no from emis_settle_sub_bill essb where essb.del_flag='0' and FIND_IN_SET( essb.settle_bill_no, #{settleBillNo})
)
group by bill_no
</select>