|
|
@@ -280,7 +280,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
|
condition += " and b.MerIdcardNo like '%" + MerIdcardNo + "%'";
|
|
|
}
|
|
|
-
|
|
|
+ var amount = 0.00M;
|
|
|
List<Dictionary<string, object>> diclist = new List<Dictionary<string, object>>();
|
|
|
DataTable dt = OtherMySqlConn.dtable("SELECT a.BrandId,a.PosSn,a.BindMerchantId,a.SeoKeyword,b.KqMerNo,b.MerIdcardNo,b.MerchantName,b.MerchantMobile FROM PosMachinesTwo a,PosMerchantInfo b WHERE a.`Status`>-1 AND a.SeoKeyword!='' AND a.SeoKeyword!='0' AND a.SeoKeyword IS NOT NULL AND a.IsFirst=1 AND b.StandardMonths=10 AND b.StandardStatus=4 AND a.BindMerchantId=b.Id " + condition);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
@@ -295,6 +295,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
|
SeoKeyword = (decimal.Parse(SeoKeyword) / 100).ToString();
|
|
|
}
|
|
|
+ amount += decimal.Parse(SeoKeyword);
|
|
|
var KqMerNo = item["KqMerNo"].ToString();
|
|
|
var IdcardNo = item["MerIdcardNo"].ToString();
|
|
|
var MerchantName = item["MerchantName"].ToString();
|
|
|
@@ -312,6 +313,12 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
}
|
|
|
}
|
|
|
Dictionary<string, object> obj = new Dictionary<string, object>();
|
|
|
+ Dictionary<string, object> other = new Dictionary<string, object>();
|
|
|
+ var ReturnAmount = amount;
|
|
|
+ var fReturnAmount = amount * 0.92M;
|
|
|
+ other.Add("ReturnAmount", ReturnAmount.ToString("f2"));
|
|
|
+ other.Add("fReturnAmount", fReturnAmount.ToString("f2"));
|
|
|
+ obj.Add("other", other);
|
|
|
obj.Add("code", 0);
|
|
|
obj.Add("msg", "");
|
|
|
obj.Add("count", diclist.Count);
|
|
|
@@ -363,7 +370,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
|
condition += " and b.MerIdcardNo like '%" + MerIdcardNo + "%'";
|
|
|
}
|
|
|
-
|
|
|
+ var amount = 0.00M;
|
|
|
List<Dictionary<string, object>> diclist = new List<Dictionary<string, object>>();
|
|
|
DataTable dt = OtherMySqlConn.dtable("SELECT a.BrandId,a.PosSn,a.BindMerchantId,a.SeoKeyword,b.KqMerNo,b.MerIdcardNo,b.MerchantName,b.MerchantMobile FROM PosMachinesTwo a,PosMerchantInfo b WHERE a.`Status`>-1 AND a.SeoKeyword!='' AND a.SeoKeyword!='0' AND a.SeoKeyword IS NOT NULL AND a.IsFirst=0 AND b.StandardMonths=10 AND b.StandardStatus=4 AND a.BindMerchantId=b.Id " + condition);
|
|
|
if (dt.Rows.Count > 0)
|
|
|
@@ -378,6 +385,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
{
|
|
|
SeoKeyword = (decimal.Parse(SeoKeyword) / 100).ToString();
|
|
|
}
|
|
|
+ amount += decimal.Parse(SeoKeyword);
|
|
|
var KqMerNo = item["KqMerNo"].ToString();
|
|
|
var IdcardNo = item["MerIdcardNo"].ToString();
|
|
|
var MerchantName = item["MerchantName"].ToString();
|
|
|
@@ -395,6 +403,12 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
}
|
|
|
}
|
|
|
Dictionary<string, object> obj = new Dictionary<string, object>();
|
|
|
+ Dictionary<string, object> other = new Dictionary<string, object>();
|
|
|
+ var ReturnAmount = amount;
|
|
|
+ var fReturnAmount = amount * 0.92M;
|
|
|
+ other.Add("ReturnAmount", ReturnAmount.ToString("f2"));
|
|
|
+ other.Add("fReturnAmount", fReturnAmount.ToString("f2"));
|
|
|
+ obj.Add("other", other);
|
|
|
obj.Add("code", 0);
|
|
|
obj.Add("msg", "");
|
|
|
obj.Add("count", diclist.Count);
|