From fc236fc10f2bda6aa9419753c5cb284155026fa2 Mon Sep 17 00:00:00 2001
From: wujianwei <wjw@11.com>
Date: 星期一, 19 一月 2026 18:00:04 +0800
Subject: [PATCH] 新增位运算
---
service/src/main/resources/mapper/cwgl/VoucherSubjectSettingMapper.xml | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/service/src/main/resources/mapper/cwgl/VoucherSubjectSettingMapper.xml b/service/src/main/resources/mapper/cwgl/VoucherSubjectSettingMapper.xml
index 93edfd5..35aceae 100644
--- a/service/src/main/resources/mapper/cwgl/VoucherSubjectSettingMapper.xml
+++ b/service/src/main/resources/mapper/cwgl/VoucherSubjectSettingMapper.xml
@@ -50,7 +50,9 @@
<if test="subjectType != null and subjectType != ''"> and thisTab.subject_type = #{subjectType}</if>
<if test="enabled != null and enabled != ''"> and thisTab.enabled = #{enabled}</if>
<if test="balanceDirection != null and balanceDirection != ''"> and thisTab.balance_direction = #{balanceDirection}</if>
- <if test="accountingItems != null and accountingItems != ''"> and thisTab.accounting_items = #{accountingItems}</if>
+ <if test="accountingItems != null "> and thisTab.accounting_items = #{accountingItems}</if>
+ <if test="accountingItemsContains != null "> and (thisTab.accounting_items & #{accountingItemsContains}) = #{accountingItemsContains}</if>
+ <if test="accountingItemsAny != null "> and (thisTab.accounting_items & #{accountingItemsAny}) != 0</if>
<if test="quantityAmountAccounting != null and quantityAmountAccounting != ''"> and thisTab.quantity_amount_accounting = #{quantityAmountAccounting}</if>
<if test="cashSubject != null and cashSubject != ''"> and thisTab.cash_subject = #{cashSubject}</if>
<if test="bankSubject != null and bankSubject != ''"> and thisTab.bank_subject = #{bankSubject}</if>
--
Gitblit v1.8.0