适配2008

This commit is contained in:
lvleigang 2024-07-10 17:26:33 +08:00
parent c122b6a425
commit 6d4b57afcd
3 changed files with 51 additions and 51 deletions

View File

@ -174,24 +174,24 @@
<include refid="AcctVouchInfoEntity_Base_Column_List" />
from acct_vouch_info
<trim prefix="where" prefixOverrides="and">
<if test="acct_year != null and acct_year != ''"> and acct_year like concat('%',#{acct_year},'%') </if>
<if test="acct_month != null and acct_month != ''"> and acct_month like concat('%',#{acct_month},'%') </if>
<if test="dept_code != null and dept_code != ''"> and dept_code like concat('%',#{dept_code},'%') </if>
<if test="dept_name != null and dept_name != ''"> and dept_name like concat('%',#{dept_name},'%') </if>
<if test="acct_subj_code != null and acct_subj_code != ''"> and acct_subj_code like concat('%',#{acct_subj_code},'%') </if>
<if test="acct_subj_name != null and acct_subj_name != ''"> and acct_subj_name like concat('%',#{acct_subj_name},'%') </if>
<if test="check_type_code != null and check_type_code != ''"> and check_type_code like concat('%',#{check_type_code},'%') </if>
<if test="check_type_name != null and check_type_name != ''"> and check_type_name like concat('%',#{check_type_name},'%') </if>
<if test="direction != null and direction != ''"> and direction like concat('%',#{direction},'%') </if>
<if test="amount != null"> and amount like concat('%',#{amount},'%') </if>
<if test="fund_source_code != null and fund_source_code != ''"> and fund_source_code like concat('%',#{fund_source_code},'%') </if>
<if test="vouch_no != null"> and vouch_no like concat('%',#{vouch_no},'%') </if>
<if test="summary != null and summary != ''"> and summary like concat('%',#{summary},'%') </if>
<if test="bookkeeper != null and bookkeeper != ''"> and bookkeeper like concat('%',#{bookkeeper},'%') </if>
<if test="org_code != null and org_code != ''"> and org_code like concat('%',#{org_code},'%') </if>
<if test="org_name != null and org_name != ''"> and org_name like concat('%',#{org_name},'%') </if>
<if test="branch_code != null and branch_code != ''"> and branch_code like concat('%',#{branch_code},'%') </if>
<if test="branch_name != null and branch_name != ''"> and branch_name like concat('%',#{branch_name},'%') </if>
<if test="acct_year != null and acct_year != ''"> and acct_year like '%${acct_year}%' </if>
<if test="acct_month != null and acct_month != ''"> and acct_month like '%${acct_month}%' </if>
<if test="dept_code != null and dept_code != ''"> and dept_code like '%${dept_code}%' </if>
<if test="dept_name != null and dept_name != ''"> and dept_name like '%${dept_name}%' </if>
<if test="acct_subj_code != null and acct_subj_code != ''"> and acct_subj_code like '%${acct_subj_code}%' </if>
<if test="acct_subj_name != null and acct_subj_name != ''"> and acct_subj_name like '%${acct_subj_name}%' </if>
<if test="check_type_code != null and check_type_code != ''"> and check_type_code like '%${check_type_code}%' </if>
<if test="check_type_name != null and check_type_name != ''"> and check_type_name like '%${check_type_name}%' </if>
<if test="direction != null and direction != ''"> and direction like '%${direction}%' </if>
<if test="amount != null"> and amount like '%${amount}%' </if>
<if test="fund_source_code != null and fund_source_code != ''"> and fund_source_code like '%${fund_source_code}%' </if>
<if test="vouch_no != null"> and vouch_no like '%${vouch_no}%' </if>
<if test="summary != null and summary != ''"> and summary like '%${summary}%' </if>
<if test="bookkeeper != null and bookkeeper != ''"> and bookkeeper like '%${bookkeeper}%' </if>
<if test="org_code != null and org_code != ''"> and org_code like '%${org_code}%' </if>
<if test="org_name != null and org_name != ''"> and org_name like '%${org_name}%' </if>
<if test="branch_code != null and branch_code != ''"> and branch_code like '%${branch_code}%' </if>
<if test="branch_name != null and branch_name != ''"> and branch_name like '%${branch_name}%' </if>
</trim>
</select>
</mapper>

View File

@ -237,33 +237,33 @@
<include refid="DictAcctSubjEntity_Base_Column_List" />
from dict_acct_subj
<trim prefix="where" prefixOverrides="and">
<if test="acct_year != null and acct_year != ''"> and acct_year like concat('%',#{acct_year},'%') </if>
<if test="acct_subj_code != null and acct_subj_code != ''"> and acct_subj_code like concat('%',#{acct_subj_code},'%') </if>
<if test="acct_subj_name != null and acct_subj_name != ''"> and acct_subj_name like concat('%',#{acct_subj_name},'%') </if>
<if test="supper_code != null and supper_code != ''"> and supper_code like concat('%',#{supper_code},'%') </if>
<if test="subj_level != null and subj_level != ''"> and subj_level like concat('%',#{subj_level},'%') </if>
<if test="is_last != null and is_last != ''"> and is_last like concat('%',#{is_last},'%') </if>
<if test="subj_type_code != null and subj_type_code != ''"> and subj_type_code like concat('%',#{subj_type_code},'%') </if>
<if test="subj_type_name != null and subj_type_name != ''"> and subj_type_name like concat('%',#{subj_type_name},'%') </if>
<if test="direction != null and direction != ''"> and direction like concat('%',#{direction},'%') </if>
<if test="is_cash != null and is_cash != ''"> and is_cash like concat('%',#{is_cash},'%') </if>
<if test="subj_nature_code != null and subj_nature_code != ''"> and subj_nature_code like concat('%',#{subj_nature_code},'%') </if>
<if test="is_check != null and is_check != ''"> and is_check like concat('%',#{is_check},'%') </if>
<if test="is_stop != null and is_stop != ''"> and is_stop like concat('%',#{is_stop},'%') </if>
<if test="budg_subj_code != null and budg_subj_code != ''"> and budg_subj_code like concat('%',#{budg_subj_code},'%') </if>
<if test="budg_subj_name != null and budg_subj_name != ''"> and budg_subj_name like concat('%',#{budg_subj_name},'%') </if>
<if test="check_type_name1 != null and check_type_name1 != ''"> and check_type_name1 like concat('%',#{check_type_name1},'%') </if>
<if test="check_type_name2 != null and check_type_name2 != ''"> and check_type_name2 like concat('%',#{check_type_name2},'%') </if>
<if test="check_type_name3 != null and check_type_name3 != ''"> and check_type_name3 like concat('%',#{check_type_name3},'%') </if>
<if test="check_type_name4 != null and check_type_name4 != ''"> and check_type_name4 like concat('%',#{check_type_name4},'%') </if>
<if test="check_type_name5 != null and check_type_name5 != ''"> and check_type_name5 like concat('%',#{check_type_name5},'%') </if>
<if test="check_type_name6 != null and check_type_name6 != ''"> and check_type_name6 like concat('%',#{check_type_name6},'%') </if>
<if test="check_type_name7 != null and check_type_name7 != ''"> and check_type_name7 like concat('%',#{check_type_name7},'%') </if>
<if test="check_type_name8 != null and check_type_name8 != ''"> and check_type_name8 like concat('%',#{check_type_name8},'%') </if>
<if test="org_code != null and org_code != ''"> and org_code like concat('%',#{org_code},'%') </if>
<if test="org_name != null and org_name != ''"> and org_name like concat('%',#{org_name},'%') </if>
<if test="branch_code != null and branch_code != ''"> and branch_code like concat('%',#{branch_code},'%') </if>
<if test="branch_name != null and branch_name != ''"> and branch_name like concat('%',#{branch_name},'%') </if>
<if test="acct_year != null and acct_year != ''"> and acct_year like '%${acct_year}%' </if>
<if test="acct_subj_code != null and acct_subj_code != ''"> and acct_subj_code like '%${acct_subj_code}%' </if>
<if test="acct_subj_name != null and acct_subj_name != ''"> and acct_subj_name like '%${acct_subj_name}%' </if>
<if test="supper_code != null and supper_code != ''"> and supper_code like '%${supper_code}%' </if>
<if test="subj_level != null and subj_level != ''"> and subj_level like '%${subj_level}%' </if>
<if test="is_last != null and is_last != ''"> and is_last like '%${is_last}%' </if>
<if test="subj_type_code != null and subj_type_code != ''"> and subj_type_code like '%${subj_type_code}%' </if>
<if test="subj_type_name != null and subj_type_name != ''"> and subj_type_name like '%${subj_type_name}%' </if>
<if test="direction != null and direction != ''"> and direction like '%${direction}%' </if>
<if test="is_cash != null and is_cash != ''"> and is_cash like '%${is_cash}%' </if>
<if test="subj_nature_code != null and subj_nature_code != ''"> and subj_nature_code like '%${subj_nature_code}%' </if>
<if test="is_check != null and is_check != ''"> and is_check like '%${is_check}%' </if>
<if test="is_stop != null and is_stop != ''"> and is_stop like '%${is_stop}%' </if>
<if test="budg_subj_code != null and budg_subj_code != ''"> and budg_subj_code like '%${budg_subj_code}%' </if>
<if test="budg_subj_name != null and budg_subj_name != ''"> and budg_subj_name like '%${budg_subj_name}%' </if>
<if test="check_type_name1 != null and check_type_name1 != ''"> and check_type_name1 like '%${check_type_name1}%' </if>
<if test="check_type_name2 != null and check_type_name2 != ''"> and check_type_name2 like '%${check_type_name2}%' </if>
<if test="check_type_name3 != null and check_type_name3 != ''"> and check_type_name3 like '%${check_type_name3}%' </if>
<if test="check_type_name4 != null and check_type_name4 != ''"> and check_type_name4 like '%${check_type_name4}%' </if>
<if test="check_type_name5 != null and check_type_name5 != ''"> and check_type_name5 like '%${check_type_name5}%' </if>
<if test="check_type_name6 != null and check_type_name6 != ''"> and check_type_name6 like '%${check_type_name6}%' </if>
<if test="check_type_name7 != null and check_type_name7 != ''"> and check_type_name7 like '%${check_type_name7}%' </if>
<if test="check_type_name8 != null and check_type_name8 != ''"> and check_type_name8 like '%${check_type_name8}%' </if>
<if test="org_code != null and org_code != ''"> and org_code like '%${org_code}%' </if>
<if test="org_name != null and org_name != ''"> and org_name like '%${org_name}%' </if>
<if test="branch_code != null and branch_code != ''"> and branch_code like '%${branch_code}%' </if>
<if test="branch_name != null and branch_name != ''"> and branch_name like '%${branch_name}%' </if>
</trim>
</select>
</mapper>

View File

@ -91,12 +91,12 @@
<include refid="DictCheckTypeEntity_Base_Column_List" />
from dict_check_type
<trim prefix="where" prefixOverrides="and">
<if test="check_type_code != null and check_type_code != ''"> and check_type_code like concat('%',#{check_type_code},'%') </if>
<if test="check_type_name != null and check_type_name != ''"> and check_type_name like concat('%',#{check_type_name},'%') </if>
<if test="org_code != null and org_code != ''"> and org_code like concat('%',#{org_code},'%') </if>
<if test="org_name != null and org_name != ''"> and org_name like concat('%',#{org_name},'%') </if>
<if test="branch_code != null and branch_code != ''"> and branch_code like concat('%',#{branch_code},'%') </if>
<if test="branch_name != null and branch_name != ''"> and branch_name like concat('%',#{branch_name},'%') </if>
<if test="check_type_code != null and check_type_code != ''"> and check_type_code like '%${check_type_code}%' </if>
<if test="check_type_name != null and check_type_name != ''"> and check_type_name like '%${check_type_name}%' </if>
<if test="org_code != null and org_code != ''"> and org_code like '%${org_code}%' </if>
<if test="org_name != null and org_name != ''"> and org_name like '%${org_name}%' </if>
<if test="branch_code != null and branch_code != ''"> and branch_code like '%${branch_code}%' </if>
<if test="branch_name != null and branch_name != ''"> and branch_name like '%${branch_name}%' </if>
</trim>
</select>
</mapper>