You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
922 B
26 lines
922 B
using log4net;
|
|
using System.Data;
|
|
|
|
namespace Repository.Coupon
|
|
{
|
|
public class CouponRepository : ICouponRepository
|
|
{
|
|
private readonly Dao _dao = new Dao();
|
|
private static readonly ILog Log = LogManager.GetLogger(typeof(CouponRepository));
|
|
|
|
string ICouponRepository.GetCouponDiscountValue(string schemeId, string serviceCharge)
|
|
{
|
|
// 동대문 코드 1034
|
|
var sql = "EXEC proc_CouponOperation @flag='SearchCoupon'";
|
|
sql += " ,@schemeId=" + _dao.FilterString(schemeId);
|
|
sql += " ,@serviceCharge=" + _dao.FilterString(serviceCharge);
|
|
var dbdataset = _dao.ExecuteDataset(sql);
|
|
string discountValue = null;
|
|
foreach (DataRow row in dbdataset.Tables[0].Rows)
|
|
{
|
|
discountValue = row["discountValue"].ToString();
|
|
}
|
|
return discountValue;
|
|
}
|
|
}
|
|
}
|