登记收款加银行账户,允许额度欠费。
This commit is contained in:
@@ -36,4 +36,34 @@
|
||||
and status = '0'
|
||||
order by is_default desc, bank_account_id limit 1
|
||||
</select>
|
||||
|
||||
<sql id="enabledColumns">
|
||||
select bank_account_id,
|
||||
account_name,
|
||||
account_no,
|
||||
bank_name,
|
||||
currency,
|
||||
is_default,
|
||||
status,
|
||||
remark,
|
||||
create_by,
|
||||
create_time,
|
||||
update_by,
|
||||
update_time
|
||||
from ar_bank_account
|
||||
where status = '0'
|
||||
</sql>
|
||||
|
||||
<select id="selectEnabledById" resultMap="ArBankAccountResult">
|
||||
<include refid="enabledColumns"/>
|
||||
and bank_account_id = #{bankAccountId}
|
||||
</select>
|
||||
|
||||
<select id="selectEnabledList" resultMap="ArBankAccountResult">
|
||||
<include refid="enabledColumns"/>
|
||||
<if test="currency != null and currency != ''">
|
||||
and currency = #{currency}
|
||||
</if>
|
||||
order by is_default desc, currency asc, bank_account_id asc
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user