/*
 * ac_merchsum_query_dbio.h - ac 모듈 DB 접근 계층 copybook (ac_merchsum_query_dbio, part of libacdbio.a).
 * ECPG functions; run on the caller's XA branch (no EXEC SQL CONNECT).
 * Return convention: >=0 ok, -1 = SQL error.
 */
#ifndef AC_MERCHSUM_QUERY_DBIO_H
#define AC_MERCHSUM_QUERY_DBIO_H

typedef struct { char merchant_id[64]; long gross_amount; long fee_amount; long txn_count; } ac_merchsum_q_rec_t;

long acdb_merchsum_peak_gross(const char *bizdate);
long acdb_merchsum_avg_fee(const char *bizdate);

#endif /* AC_MERCHSUM_QUERY_DBIO_H */
