# 取得機關銀行帳號 ## 更新紀錄 * 2021/03/25 初始版本。 ## 使用說明 1. 使用common-api(>=21.3.15-DEV) ``` <dependency> <groupId>geps3</groupId> <artifactId>common-api-fwk</artifactId> <version>21.3.15-DEV</version> </dependency> ``` 2. Import **QdcsApiconfig** ``` @Import({ WebConfig.class, JpaConfig.class, CachingConfig.class, AsyncConfig.class, OoiClient.class, OsmApiClientConfig.class, CcsAppConfig.class, VmsApiConfig.class, QdcsApiConfig.class}) @SpringBootApplication @EnableScheduling public class Application extends SpringBootServletInitializer implements WebApplicationInitializer { public static void main(String[] args) { SpringApplication.run(Application.class, args); } } ``` 3. @Autowired **BankAccountService** ``` @Autowired private BankAccountService bankAccountService; ``` 4. 用法: ``` public interface BankAccountService { /** * 取得押標金收款帳號清單 * * @param account * 機關代碼 * @return */ List<OrgBankAccount> getDepositAccount(String orgId); /** * 取得文件代收費用帳號清單 * * @param account * 機關代碼 * @return */ List<OrgBankAccount> getDocChargeAccount(String orgId); /** * 帳戶是否屬於設定押標金收款帳號 * * @param account * @return */ boolean isDepositUsage(OrgBankAccount account); /** * 帳戶是否屬於設定文件代收費用帳號 * * @param account * @return */ boolean isDocCharge(OrgBankAccount account); /** * 帳戶是否屬於中央銀行國庫局「國庫存款戶」之指定收款帳戶 * * @param account * @return */ boolean isNationalTreasury(OrgBankAccount account); /** * 帳戶是否屬於台灣票據交換所線上繳納之指定收款帳戶 * * @param account * @return */ boolean isTwnch(OrgBankAccount account); /** * 帳戶是否可用於招標公告之線上繳納押標金 * * @param account * @return */ boolean canBeSelectedBidBond(OrgBankAccount account); /** * 帳戶是否支援線上繳納 * * @param account * @return */ boolean supportOnlineTransfer(OrgBankAccount account); /** * 帳戶是否啟用 * * @param account * @return */ boolean isEnable(OrgBankAccount account) ; } ``` ###### tags: GEPS3 銀行帳號