|
@@ -31,7 +31,7 @@ namespace MySystem
|
|
|
PxcModels.WebCMSEntities db = new PxcModels.WebCMSEntities();
|
|
|
DateTime start = DateTime.Now.AddDays(-30);
|
|
|
int StartId = int.Parse(function.CheckInt(function.ReadInstance("/SycnSp/MerchantRecordId.txt")));
|
|
|
- var Mers = spdb.MerchantRecord.Where(m => m.Id >= StartId && m.CreateTime >= start && m.Status == 1 && m.ProductType == "12").OrderByDescending(m => m.Id).Take(10).ToList();
|
|
|
+ var Mers = spdb.MerchantRecord.Where(m => m.Id >= StartId && m.CreateTime >= start && m.Status == 1 && (m.ProductType == "12" || m.ProductType == "30")).OrderByDescending(m => m.Id).Take(10).ToList();
|
|
|
foreach (var Mer in Mers)
|
|
|
{
|
|
|
var tran = db.Database.BeginTransaction();
|
|
@@ -58,25 +58,6 @@ namespace MySystem
|
|
|
string startNo = Mer.LegalIdCard.Substring(0, 6);
|
|
|
string endNo = Mer.LegalIdCard.Substring(Mer.LegalIdCard.Length - 4, 4).ToUpper();
|
|
|
string Name = Mer.MerName;
|
|
|
- if (Mer.ProductType == "2")
|
|
|
- {
|
|
|
- if (Name.Contains("-"))
|
|
|
- {
|
|
|
- Name = Name.Split('-')[1];
|
|
|
- }
|
|
|
- else if (Name.Contains("_"))
|
|
|
- {
|
|
|
- Name = Name.Split('_')[1];
|
|
|
- }
|
|
|
- }
|
|
|
- else if (Mer.ProductType == "4" || Mer.ProductType == "8" || Mer.ProductType == "9")
|
|
|
- {
|
|
|
- Name = Mer.SeoTitle;
|
|
|
- }
|
|
|
- else if (Mer.ProductType == "10")
|
|
|
- {
|
|
|
- Name = Name.Replace("*", "");
|
|
|
- }
|
|
|
Name = Name.Replace("个体户", "");
|
|
|
Name = Name.Replace("个体商户", "");
|
|
|
Name = Name.Replace("企业户", "");
|
|
@@ -95,13 +76,6 @@ namespace MySystem
|
|
|
}
|
|
|
pos.IsFirst = IsFirst;
|
|
|
db.SaveChanges();
|
|
|
-
|
|
|
- // if(pos.PrizeParams == "0")
|
|
|
- // {
|
|
|
- // int RecordId = PublicFunction.FeeSetRecord(db, pos, merinfo, 0.63M);
|
|
|
- // string info = "{\"RecordId\":\"" + RecordId + "\",\"PosId\":\"" + pos.Id + "\",\"Fee\": \"0.63\",\"Kind\": \"2\",\"OpMan\": \""+"系统"+"\"}";
|
|
|
- // RedisDbconn.Instance.AddList("SetDepositQueue", info);
|
|
|
- // }
|
|
|
|
|
|
MerchantRecord edit = spdb.MerchantRecord.FirstOrDefault(m => m.Id == Mer.Id);
|
|
|
if (edit != null)
|