/*
 * ac_merchant_bigday_dbio.h - ac 모듈 DB 접근 계층 copybook (ac_merchant_bigday_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.
 * Shape: GROUP BY merchant_id HAVING sum(amount) >= 임계.
 */
#ifndef AC_MERCHANT_BIGDAY_DBIO_H
#define AC_MERCHANT_BIGDAY_DBIO_H

typedef struct { char merchant_id[64]; long gross; } ac_bigday_rec_t;

long acdb_bigday_merchant_count(const char *bizdate, long threshold);

#endif /* AC_MERCHANT_BIGDAY_DBIO_H */
