/*
 * au_summary_riskmerch_dbio.h - au 모듈 DB 접근 계층 copybook (au_summary_riskmerch_dbio, part of libaudbio.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(decline) > sum(approve).
 */
#ifndef AU_SUMMARY_RISKMERCH_DBIO_H
#define AU_SUMMARY_RISKMERCH_DBIO_H

typedef struct { char merchant_id[64]; long declines; long approves; } au_riskmerch_rec_t;

long audb_decline_heavy_merchants(const char *bizdate);

#endif /* AU_SUMMARY_RISKMERCH_DBIO_H */
