| | |
| | | { |
| | | _logger.LogInformation("TimerGetShopUsersService 开始执行"); |
| | | _logger.LogInformation(datenow.ToString("yyyy-MM-dd HH:mm:ss")); |
| | | if (datenowfasongxiaoxi.Day == DateTime.Now.Day && DateTime.Now.Hour == 20) |
| | | if (datenowfasongxiaoxi.Day == DateTime.Now.Day && DateTime.Now.Hour == 12) |
| | | //if (true) |
| | | { |
| | | |
| | | try |
| | | { |
| | | datenowfasongxiaoxi.AddDays(1); |
| | | this.fasongxiaoxi(); |
| | | |
| | | } |
| | |
| | | { |
| | | _logger.LogInformation(ex.ToString()); |
| | | } |
| | | datenowfasongxiaoxi.AddDays(1); |
| | | } |
| | | |
| | | //每个小时计算一次 |
| | |
| | | } |
| | | } |
| | | |
| | | //发送短信 |
| | | foreach (var ywjl in Ywjl) |
| | | { |
| | | var projectfasongxiaoxisywjl = projectfasongxiaoxiDTOsduanxinzuizhong.Where(x => x.Ywjl == ywjl.Id && x.Tel != null && x.Tel.StartsWith("1")).ToList(); |
| | | if (projectfasongxiaoxisywjl.Count >= 100) |
| | | { |
| | | int j = 0; |
| | | while (j * 1000 <= projectfasongxiaoxisywjl.Count) |
| | | { |
| | | j = j + 1; |
| | | string numberstring = ""; |
| | | string customename = ""; |
| | | if (projectfasongxiaoxisywjl != null && projectfasongxiaoxisywjl.Count > 0) |
| | | { |
| | | int countt = (j * 1000); |
| | | if (countt > projectfasongxiaoxisywjl.Count) |
| | | { |
| | | countt = projectfasongxiaoxisywjl.Count; |
| | | } |
| | | |
| | | for (int i = 0; i < countt; i++) |
| | | { |
| | | if (numberstring.IndexOf(projectfasongxiaoxisywjl[i + j - 1].Tel) >= 0) |
| | | { |
| | | continue; |
| | | } |
| | | numberstring += projectfasongxiaoxisywjl[i + j - 1].Tel + ","; |
| | | customename += projectfasongxiaoxisywjl[i + j - 1].Khname + ","; |
| | | |
| | | } |
| | | } |
| | | |
| | | if (numberstring.EndsWith(",")) |
| | | { |
| | | numberstring = numberstring.Substring(0, numberstring.Length - 1); |
| | | } |
| | | |
| | | if (numberstring.Split(',').Length >= 100) |
| | | { |
| | | string sss = SMSHelper.PushWToUserMES(numberstring, "政采咨询公司的“标书预评审”服务,由3位退休资深评审专家在开标前按照评标流程为您交叉检查标书,杜绝废标 、帮助您得到全部综合评审得分,经政采咨询公司检查过的标书,不可能被废标,详情请咨询:" + ywjl.Phone); |
| | | if (int.Parse(sss) >= 0) |
| | | { |
| | | foreach (var projectfasongxiaoDTO in projectfasongxiaoxisywjl) |
| | | { |
| | | var projectfasongxiaoxi = new Projectfasongxiaoxi(); |
| | | projectfasongxiaoxi.Id = Guid.NewGuid().ToString(); |
| | | projectfasongxiaoxi.ProjectId = projectfasongxiaoDTO.ProjectId; |
| | | projectfasongxiaoxi.ProjectmingxiId = projectfasongxiaoDTO.ProjectmingxiId; |
| | | projectfasongxiaoxi.Xiaoxileixing = projectfasongxiaoDTO.Xiaoxileixing; |
| | | projectfasongxiaoxi.Xiaoxizhonglei = projectfasongxiaoDTO.Xiaoxizhonglei; |
| | | projectfasongxiaoxi.Gyszl = projectfasongxiaoDTO.Gyszl; |
| | | projectfasongxiaoxi.Khname = projectfasongxiaoDTO.Khname; |
| | | projectfasongxiaoxi.RecStatus = "A"; |
| | | projectfasongxiaoxi.Createtime = DateTime.Now; |
| | | _context.Projectfasongxiaoxis.Add(projectfasongxiaoxi); |
| | | } |
| | | _context.SaveChanges(); |
| | | } |
| | | _logger.LogInformation(ywjl.UserName + "发送短信给客户" + customename); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | | //业务经理为空 |
| | | if (true) |
| | | { |
| | | var projectfasongxiaoxisywjl = projectfasongxiaoxiDTOsduanxinzuizhong.Where(x => x.Ywjl == null && x.Tel != null && x.Tel.StartsWith("1")).ToList(); |
| | | if (projectfasongxiaoxisywjl.Count >= 100) |
| | | { |
| | | int j = 0; |
| | | while (j * 1000 <= projectfasongxiaoxisywjl.Count) |
| | | { |
| | | j = j + 1; |
| | | string numberstring = ""; |
| | | string customename = ""; |
| | | if (projectfasongxiaoxisywjl != null && projectfasongxiaoxisywjl.Count > 0) |
| | | { |
| | | int countt = (j * 1000); |
| | | if (countt > projectfasongxiaoxisywjl.Count) |
| | | { |
| | | countt = projectfasongxiaoxisywjl.Count; |
| | | } |
| | | for (int i = 0; i < countt; i++) |
| | | { |
| | | if (numberstring.IndexOf(projectfasongxiaoxisywjl[i + j - 1].Tel) >= 0) |
| | | { |
| | | continue; |
| | | } |
| | | numberstring += projectfasongxiaoxisywjl[i + j - 1].Tel + ","; |
| | | customename += projectfasongxiaoxisywjl[i + j - 1].Khname + ","; |
| | | |
| | | } |
| | | } |
| | | |
| | | if (numberstring.EndsWith(",")) |
| | | { |
| | | numberstring = numberstring.Substring(0, numberstring.Length - 1); |
| | | } |
| | | |
| | | if (numberstring.Split(',').Length >= 100) |
| | | { |
| | | string sss = SMSHelper.PushWToUserMES(numberstring, "政采咨询公司的“标书预评审”服务,由3位退休资深评审专家在开标前按照评标流程为您交叉检查标书,杜绝废标 、帮助您得到全部综合评审得分,经政采咨询公司检查过的标书,不可能被废标,详情请咨询:400-028-8080"); |
| | | if (int.Parse(sss) >= 0) |
| | | { |
| | | foreach (var projectfasongxiaoDTO in projectfasongxiaoxisywjl) |
| | | { |
| | | var projectfasongxiaoxi = new Projectfasongxiaoxi(); |
| | | projectfasongxiaoxi.Id = Guid.NewGuid().ToString(); |
| | | projectfasongxiaoxi.ProjectId = projectfasongxiaoDTO.ProjectId; |
| | | projectfasongxiaoxi.ProjectmingxiId = projectfasongxiaoDTO.ProjectmingxiId; |
| | | projectfasongxiaoxi.Xiaoxileixing = projectfasongxiaoDTO.Xiaoxileixing; |
| | | projectfasongxiaoxi.Xiaoxizhonglei = projectfasongxiaoDTO.Xiaoxizhonglei; |
| | | projectfasongxiaoxi.Gyszl = projectfasongxiaoDTO.Gyszl; |
| | | projectfasongxiaoxi.Khname = projectfasongxiaoDTO.Khname; |
| | | projectfasongxiaoxi.RecStatus = "A"; |
| | | projectfasongxiaoxi.Createtime = DateTime.Now; |
| | | _context.Projectfasongxiaoxis.Add(projectfasongxiaoxi); |
| | | } |
| | | _context.SaveChanges(); |
| | | } |
| | | _logger.LogInformation("无客户经理发送短信给客户" + customename); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | |
| | | //推送App |
| | | foreach (var ywjl in Ywjl) |
| | |
| | | |
| | | |
| | | |
| | | //发送短信 |
| | | foreach (var ywjl in Ywjl) |
| | | { |
| | | var projectfasongxiaoxisywjl = projectfasongxiaoxiDTOsduanxinzuizhong.Where(x => x.Ywjl == ywjl.Id && x.Tel != null && x.Tel.StartsWith("1")).ToList(); |
| | | if (projectfasongxiaoxisywjl.Count >= 100) |
| | | { |
| | | int j = 0; |
| | | while (j*1000<= projectfasongxiaoxisywjl.Count) |
| | | { |
| | | j = j + 1; |
| | | string numberstring = ""; |
| | | string customename = ""; |
| | | if (projectfasongxiaoxisywjl != null && projectfasongxiaoxisywjl.Count > 0) |
| | | { |
| | | int countt = (j * 1000); |
| | | if(countt> projectfasongxiaoxisywjl.Count) |
| | | { |
| | | countt = projectfasongxiaoxisywjl.Count; |
| | | } |
| | | |
| | | for (int i = 0; i < countt; i++) |
| | | { |
| | | if (numberstring.IndexOf(projectfasongxiaoxisywjl[i+j-1].Tel) >= 0) |
| | | { |
| | | continue; |
| | | } |
| | | numberstring += projectfasongxiaoxisywjl[i + j - 1].Tel + ","; |
| | | customename += projectfasongxiaoxisywjl[i + j - 1].Khname + ","; |
| | | |
| | | } |
| | | } |
| | | |
| | | if (numberstring.EndsWith(",")) |
| | | { |
| | | numberstring = numberstring.Substring(0, numberstring.Length - 1); |
| | | } |
| | | |
| | | if (numberstring.Split(',').Length >= 100) |
| | | { |
| | | string sss = SMSHelper.PushWToUserMES(numberstring, "政采咨询公司的“标书预评审”服务,由3位退休资深评审专家在开标前按照评标流程为您交叉检查标书,杜绝废标 、帮助您得到全部综合评审得分,经政采咨询公司检查过的标书,不可能被废标,详情请咨询:" + ywjl.Phone); |
| | | if (int.Parse(sss) >= 0) |
| | | { |
| | | foreach (var projectfasongxiaoDTO in projectfasongxiaoxisywjl) |
| | | { |
| | | var projectfasongxiaoxi = new Projectfasongxiaoxi(); |
| | | projectfasongxiaoxi.Id = Guid.NewGuid().ToString(); |
| | | projectfasongxiaoxi.ProjectId = projectfasongxiaoDTO.ProjectId; |
| | | projectfasongxiaoxi.ProjectmingxiId = projectfasongxiaoDTO.ProjectmingxiId; |
| | | projectfasongxiaoxi.Xiaoxileixing = projectfasongxiaoDTO.Xiaoxileixing; |
| | | projectfasongxiaoxi.Xiaoxizhonglei = projectfasongxiaoDTO.Xiaoxizhonglei; |
| | | projectfasongxiaoxi.Gyszl = projectfasongxiaoDTO.Gyszl; |
| | | projectfasongxiaoxi.Khname = projectfasongxiaoDTO.Khname; |
| | | projectfasongxiaoxi.RecStatus = "A"; |
| | | projectfasongxiaoxi.Createtime = DateTime.Now; |
| | | _context.Projectfasongxiaoxis.Add(projectfasongxiaoxi); |
| | | } |
| | | _context.SaveChanges(); |
| | | } |
| | | _logger.LogInformation(ywjl.UserName + "发送短信给客户" + customename); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | | //业务经理为空 |
| | | if (true) |
| | | { |
| | | var projectfasongxiaoxisywjl = projectfasongxiaoxiDTOsduanxinzuizhong.Where(x => x.Ywjl == null && x.Tel != null && x.Tel.StartsWith("1")).ToList(); |
| | | if (projectfasongxiaoxisywjl.Count >= 100) |
| | | { |
| | | int j = 0; |
| | | while (j * 1000 <= projectfasongxiaoxisywjl.Count) |
| | | { |
| | | j = j + 1; |
| | | string numberstring = ""; |
| | | string customename = ""; |
| | | if (projectfasongxiaoxisywjl != null && projectfasongxiaoxisywjl.Count > 0) |
| | | { |
| | | int countt = (j * 1000); |
| | | if (countt > projectfasongxiaoxisywjl.Count) |
| | | { |
| | | countt = projectfasongxiaoxisywjl.Count; |
| | | } |
| | | for (int i = 0; i < countt; i++) |
| | | { |
| | | if (numberstring.IndexOf(projectfasongxiaoxisywjl[i + j - 1].Tel) >= 0) |
| | | { |
| | | continue; |
| | | } |
| | | numberstring += projectfasongxiaoxisywjl[i + j - 1].Tel + ","; |
| | | customename += projectfasongxiaoxisywjl[i + j - 1].Khname + ","; |
| | | |
| | | } |
| | | } |
| | | |
| | | if (numberstring.EndsWith(",")) |
| | | { |
| | | numberstring = numberstring.Substring(0, numberstring.Length - 1); |
| | | } |
| | | |
| | | if (numberstring.Split(',').Length >= 100) |
| | | { |
| | | string sss = SMSHelper.PushWToUserMES(numberstring, "政采咨询公司的“标书预评审”服务,由3位退休资深评审专家在开标前按照评标流程为您交叉检查标书,杜绝废标 、帮助您得到全部综合评审得分,经政采咨询公司检查过的标书,不可能被废标,详情请咨询:400-028-8080"); |
| | | if (int.Parse(sss) >= 0) |
| | | { |
| | | foreach (var projectfasongxiaoDTO in projectfasongxiaoxisywjl) |
| | | { |
| | | var projectfasongxiaoxi = new Projectfasongxiaoxi(); |
| | | projectfasongxiaoxi.Id = Guid.NewGuid().ToString(); |
| | | projectfasongxiaoxi.ProjectId = projectfasongxiaoDTO.ProjectId; |
| | | projectfasongxiaoxi.ProjectmingxiId = projectfasongxiaoDTO.ProjectmingxiId; |
| | | projectfasongxiaoxi.Xiaoxileixing = projectfasongxiaoDTO.Xiaoxileixing; |
| | | projectfasongxiaoxi.Xiaoxizhonglei = projectfasongxiaoDTO.Xiaoxizhonglei; |
| | | projectfasongxiaoxi.Gyszl = projectfasongxiaoDTO.Gyszl; |
| | | projectfasongxiaoxi.Khname = projectfasongxiaoDTO.Khname; |
| | | projectfasongxiaoxi.RecStatus = "A"; |
| | | projectfasongxiaoxi.Createtime = DateTime.Now; |
| | | _context.Projectfasongxiaoxis.Add(projectfasongxiaoxi); |
| | | } |
| | | _context.SaveChanges(); |
| | | } |
| | | _logger.LogInformation("无客户经理发送短信给客户" + customename); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | //推送App |
| | | foreach (var ywjl in Ywjl) |
| | | { |
| | | |
| | | var projectfasongxiaoxisywjl = projectfasongxiaoxiDTOsappzuizhong.Where(x => x.Ywjl == ywjl.Id && x.Tel != null && x.Tel.StartsWith("1")).ToList(); |
| | | |
| | | |
| | | for (int i = 0; i < projectfasongxiaoxisywjl.Count; i++) |
| | | { |
| | | string conment = "{" |
| | | + "\"title\": \"政采咨询公司专业“标书检查”、“标书指导”\"," |
| | | + "\"content\": \"政采咨询公司专业“标书检查”、“标书指导”,退休资深评审专家在开标前按照评标流程为您交叉检查、指导标书,让评审专家找不出主观方案扣分理由,如果您在参加“" + projectfasongxiaoxisywjl[i].Projectname + "”投标前找政采咨询检查标书,至少提升评审得分5-8分,也许中标的就是贵公司。了解详情请咨询:" + ywjl.Phone + " \"," |
| | | + "\"getui_alias\": \"" + projectfasongxiaoxisywjl[i].Tel + "\"," |
| | | + "\"payload\": {\"text\": \"政采咨询公司专业“标书检查”、“标书指导”,退休资深评审专家在开标前按照评标流程为您交叉检查、指导标书,让评审专家找不出主观方案扣分理由,如果您在参加“" + projectfasongxiaoxisywjl[i].Projectname + "”投标前找政采咨询检查标书,至少提升评审得分5-8分,也许中标的就是贵公司。了解详情请咨询:" + ywjl.Phone + " \"}," |
| | | + "\"force_notification\": true" |
| | | + "}"; |
| | | |
| | | string result2 = SMSHelper.PushApp(conment); |
| | | _logger.LogInformation("result2:" + result2); |
| | | JObject jobjectresult = (JObject)JsonConvert.DeserializeObject(result2); |
| | | |
| | | if (jobjectresult["code"] != null && jobjectresult["code"].ToString() == "1") |
| | | { |
| | | var isOK = jobjectresult["isOK"].ToString(); |
| | | |
| | | |
| | | if (isOK.IndexOf(projectfasongxiaoxisywjl[i].Tel) >= 0) |
| | | { |
| | | var projectfasongxiaoxi = new Projectfasongxiaoxi(); |
| | | projectfasongxiaoxi.Id = Guid.NewGuid().ToString(); |
| | | projectfasongxiaoxi.ProjectmingxiId = projectfasongxiaoxisywjl[i].ProjectmingxiId; |
| | | projectfasongxiaoxi.Xiaoxileixing = projectfasongxiaoxisywjl[i].Xiaoxileixing; |
| | | projectfasongxiaoxi.Xiaoxizhonglei = projectfasongxiaoxisywjl[i].Xiaoxizhonglei; |
| | | projectfasongxiaoxi.Gyszl = projectfasongxiaoxisywjl[i].Gyszl; |
| | | projectfasongxiaoxi.Khname = projectfasongxiaoxisywjl[i].Khname; |
| | | projectfasongxiaoxi.RecStatus = "A"; |
| | | projectfasongxiaoxi.Createtime = DateTime.Now; |
| | | _context.Projectfasongxiaoxis.Add(projectfasongxiaoxi); |
| | | } |
| | | } |
| | | _context.SaveChanges(); |
| | | _logger.LogInformation(ywjl.UserName + "推送app给客户" + projectfasongxiaoxisywjl[i].Khname); |
| | | |
| | | } |
| | | } |
| | | //业务经理为空 |
| | | if (true) |
| | | { |
| | | var projectfasongxiaoxisywjl = projectfasongxiaoxiDTOsappzuizhong.Where(x => x.Ywjl == null && x.Tel != null && x.Tel.StartsWith("1")).ToList(); |
| | | |
| | | for (int i = 0; i < projectfasongxiaoxisywjl.Count; i++) |
| | | { |
| | | string conment = "{" |
| | | + "\"title\": \"政采咨询公司专业“标书检查”、“标书指导”\"," |
| | | + "\"content\": \"政采咨询公司专业“标书检查”、“标书指导”,退休资深评审专家在开标前按照评标流程为您交叉检查、指导标书,让评审专家找不出主观方案扣分理由,如果您在参加“" + projectfasongxiaoxisywjl[i].Projectname + "”投标前找政采咨询检查标书,至少提升评审得分5-8分,也许中标的就是贵公司。了解详情请咨询:400-028-8080 \"," |
| | | + "\"getui_alias\": \"" + projectfasongxiaoxisywjl[i].Tel + "\"," |
| | | + "\"payload\": {\"text\": \"政采咨询公司专业“标书检查”、“标书指导”,退休资深评审专家在开标前按照评标流程为您交叉检查、指导标书,让评审专家找不出主观方案扣分理由,如果您在参加“" + projectfasongxiaoxisywjl[i].Projectname + "”投标前找政采咨询检查标书,至少提升评审得分5-8分,也许中标的就是贵公司。了解详情请咨询:400-028-8080 \"}," |
| | | + "\"force_notification\": true" |
| | | + "}"; |
| | | |
| | | string result2 = SMSHelper.PushApp(conment); |
| | | _logger.LogInformation("result2:" + result2); |
| | | JObject jobjectresult = (JObject)JsonConvert.DeserializeObject(result2); |
| | | |
| | | if (jobjectresult["code"] != null && jobjectresult["code"].ToString() == "1") |
| | | { |
| | | var isOK = jobjectresult["isOK"].ToString(); |
| | | |
| | | |
| | | if (isOK.IndexOf(projectfasongxiaoxisywjl[i].Tel) >= 0) |
| | | { |
| | | var projectfasongxiaoxi = new Projectfasongxiaoxi(); |
| | | projectfasongxiaoxi.Id = Guid.NewGuid().ToString(); |
| | | projectfasongxiaoxi.ProjectmingxiId = projectfasongxiaoxisywjl[i].ProjectmingxiId; |
| | | projectfasongxiaoxi.Xiaoxileixing = projectfasongxiaoxisywjl[i].Xiaoxileixing; |
| | | projectfasongxiaoxi.Xiaoxizhonglei = projectfasongxiaoxisywjl[i].Xiaoxizhonglei; |
| | | projectfasongxiaoxi.Gyszl = projectfasongxiaoxisywjl[i].Gyszl; |
| | | projectfasongxiaoxi.Khname = projectfasongxiaoxisywjl[i].Khname; |
| | | projectfasongxiaoxi.RecStatus = "A"; |
| | | projectfasongxiaoxi.Createtime = DateTime.Now; |
| | | _context.Projectfasongxiaoxis.Add(projectfasongxiaoxi); |
| | | } |
| | | } |
| | | _context.SaveChanges(); |
| | | _logger.LogInformation( "无业务经理推送app给客户" + projectfasongxiaoxisywjl[i].Khname); |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | //发送短信 |
| | | foreach (var ywjl in Ywjl) |
| | | { |
| | |
| | | |
| | | } |
| | | } |
| | | |
| | | //推送App |
| | | foreach (var ywjl in Ywjl) |
| | | { |
| | | |
| | | var projectfasongxiaoxisywjl = projectfasongxiaoxiDTOsappzuizhong.Where(x => x.Ywjl == ywjl.Id && x.Tel != null && x.Tel.StartsWith("1")).ToList(); |
| | | |
| | | |
| | | for (int i = 0; i < projectfasongxiaoxisywjl.Count; i++) |
| | | { |
| | | string conment = "{" |
| | | + "\"title\": \"政采咨询公司专业“标书检查”、“标书指导”\"," |
| | | + "\"content\": \"政采咨询公司专业“标书检查”、“标书指导”,退休资深评审专家在开标前按照评标流程为您交叉检查、指导标书,让评审专家找不出主观方案扣分理由,如果您在参加“" + projectfasongxiaoxisywjl[i].Projectname + "”投标前找政采咨询检查标书,至少提升评审得分5-8分,也许中标的就是贵公司。了解详情请咨询:" + ywjl.Phone + " \"," |
| | | + "\"getui_alias\": \"" + projectfasongxiaoxisywjl[i].Tel + "\"," |
| | | + "\"payload\": {\"text\": \"政采咨询公司专业“标书检查”、“标书指导”,退休资深评审专家在开标前按照评标流程为您交叉检查、指导标书,让评审专家找不出主观方案扣分理由,如果您在参加“" + projectfasongxiaoxisywjl[i].Projectname + "”投标前找政采咨询检查标书,至少提升评审得分5-8分,也许中标的就是贵公司。了解详情请咨询:" + ywjl.Phone + " \"}," |
| | | + "\"force_notification\": true" |
| | | + "}"; |
| | | |
| | | string result2 = SMSHelper.PushApp(conment); |
| | | _logger.LogInformation("result2:" + result2); |
| | | JObject jobjectresult = (JObject)JsonConvert.DeserializeObject(result2); |
| | | |
| | | if (jobjectresult["code"] != null && jobjectresult["code"].ToString() == "1") |
| | | { |
| | | var isOK = jobjectresult["isOK"].ToString(); |
| | | |
| | | |
| | | if (isOK.IndexOf(projectfasongxiaoxisywjl[i].Tel) >= 0) |
| | | { |
| | | var projectfasongxiaoxi = new Projectfasongxiaoxi(); |
| | | projectfasongxiaoxi.Id = Guid.NewGuid().ToString(); |
| | | projectfasongxiaoxi.ProjectmingxiId = projectfasongxiaoxisywjl[i].ProjectmingxiId; |
| | | projectfasongxiaoxi.Xiaoxileixing = projectfasongxiaoxisywjl[i].Xiaoxileixing; |
| | | projectfasongxiaoxi.Xiaoxizhonglei = projectfasongxiaoxisywjl[i].Xiaoxizhonglei; |
| | | projectfasongxiaoxi.Gyszl = projectfasongxiaoxisywjl[i].Gyszl; |
| | | projectfasongxiaoxi.Khname = projectfasongxiaoxisywjl[i].Khname; |
| | | projectfasongxiaoxi.RecStatus = "A"; |
| | | projectfasongxiaoxi.Createtime = DateTime.Now; |
| | | _context.Projectfasongxiaoxis.Add(projectfasongxiaoxi); |
| | | } |
| | | } |
| | | _context.SaveChanges(); |
| | | _logger.LogInformation(ywjl.UserName + "推送app给客户" + projectfasongxiaoxisywjl[i].Khname); |
| | | |
| | | } |
| | | } |
| | | //业务经理为空 |
| | | if (true) |
| | | { |
| | | var projectfasongxiaoxisywjl = projectfasongxiaoxiDTOsappzuizhong.Where(x => x.Ywjl == null && x.Tel != null && x.Tel.StartsWith("1")).ToList(); |
| | | |
| | | for (int i = 0; i < projectfasongxiaoxisywjl.Count; i++) |
| | | { |
| | | string conment = "{" |
| | | + "\"title\": \"政采咨询公司专业“标书检查”、“标书指导”\"," |
| | | + "\"content\": \"政采咨询公司专业“标书检查”、“标书指导”,退休资深评审专家在开标前按照评标流程为您交叉检查、指导标书,让评审专家找不出主观方案扣分理由,如果您在参加“" + projectfasongxiaoxisywjl[i].Projectname + "”投标前找政采咨询检查标书,至少提升评审得分5-8分,也许中标的就是贵公司。了解详情请咨询:400-028-8080 \"," |
| | | + "\"getui_alias\": \"" + projectfasongxiaoxisywjl[i].Tel + "\"," |
| | | + "\"payload\": {\"text\": \"政采咨询公司专业“标书检查”、“标书指导”,退休资深评审专家在开标前按照评标流程为您交叉检查、指导标书,让评审专家找不出主观方案扣分理由,如果您在参加“" + projectfasongxiaoxisywjl[i].Projectname + "”投标前找政采咨询检查标书,至少提升评审得分5-8分,也许中标的就是贵公司。了解详情请咨询:400-028-8080 \"}," |
| | | + "\"force_notification\": true" |
| | | + "}"; |
| | | |
| | | string result2 = SMSHelper.PushApp(conment); |
| | | _logger.LogInformation("result2:" + result2); |
| | | JObject jobjectresult = (JObject)JsonConvert.DeserializeObject(result2); |
| | | |
| | | if (jobjectresult["code"] != null && jobjectresult["code"].ToString() == "1") |
| | | { |
| | | var isOK = jobjectresult["isOK"].ToString(); |
| | | |
| | | |
| | | if (isOK.IndexOf(projectfasongxiaoxisywjl[i].Tel) >= 0) |
| | | { |
| | | var projectfasongxiaoxi = new Projectfasongxiaoxi(); |
| | | projectfasongxiaoxi.Id = Guid.NewGuid().ToString(); |
| | | projectfasongxiaoxi.ProjectmingxiId = projectfasongxiaoxisywjl[i].ProjectmingxiId; |
| | | projectfasongxiaoxi.Xiaoxileixing = projectfasongxiaoxisywjl[i].Xiaoxileixing; |
| | | projectfasongxiaoxi.Xiaoxizhonglei = projectfasongxiaoxisywjl[i].Xiaoxizhonglei; |
| | | projectfasongxiaoxi.Gyszl = projectfasongxiaoxisywjl[i].Gyszl; |
| | | projectfasongxiaoxi.Khname = projectfasongxiaoxisywjl[i].Khname; |
| | | projectfasongxiaoxi.RecStatus = "A"; |
| | | projectfasongxiaoxi.Createtime = DateTime.Now; |
| | | _context.Projectfasongxiaoxis.Add(projectfasongxiaoxi); |
| | | } |
| | | } |
| | | _context.SaveChanges(); |
| | | _logger.LogInformation( "无业务经理推送app给客户" + projectfasongxiaoxisywjl[i].Khname); |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | catch (Exception ex) |
| | |
| | | } |
| | | } |
| | | |
| | | //发送短信 |
| | | foreach (var ywjl in Ywjl) |
| | | { |
| | | var projectfasongxiaoxisywjl = projectfasongxiaoxiDTOsduanxinzuizhong.Where(x => x.Ywjl == ywjl.Id && x.Tel != null && x.Tel.StartsWith("1")).ToList(); |
| | | if (projectfasongxiaoxisywjl.Count >= 100) |
| | | { |
| | | int j = 0; |
| | | while (j * 1000 <= projectfasongxiaoxisywjl.Count) |
| | | { |
| | | j = j + 1; |
| | | string numberstring = ""; |
| | | string customename = ""; |
| | | if (projectfasongxiaoxisywjl != null && projectfasongxiaoxisywjl.Count > 0) |
| | | { |
| | | int countt = (j * 1000); |
| | | if (countt > projectfasongxiaoxisywjl.Count) |
| | | { |
| | | countt = projectfasongxiaoxisywjl.Count; |
| | | } |
| | | |
| | | for (int i = 0; i < countt; i++) |
| | | { |
| | | if (numberstring.IndexOf(projectfasongxiaoxisywjl[i + j - 1].Tel) >= 0) |
| | | { |
| | | continue; |
| | | } |
| | | numberstring += projectfasongxiaoxisywjl[i + j - 1].Tel + ","; |
| | | customename += projectfasongxiaoxisywjl[i + j - 1].Khname + ","; |
| | | |
| | | } |
| | | } |
| | | |
| | | if (numberstring.EndsWith(",")) |
| | | { |
| | | numberstring = numberstring.Substring(0, numberstring.Length - 1); |
| | | } |
| | | |
| | | if (numberstring.Split(',').Length >= 100) |
| | | { |
| | | string sss = SMSHelper.PushWToUserMES(numberstring, "政采咨询公司专业“标书检查”、“标书指导”,退休资深评审专家在开标前按照评标流程为您交叉检查、指导标书,让评审专家找不出主观方案扣分理由,至少助您提升综合评审得分5-10分。了解详情请咨询:" + ywjl.Phone); |
| | | if (int.Parse(sss) >= 0) |
| | | { |
| | | foreach (var projectfasongxiaoDTO in projectfasongxiaoxisywjl) |
| | | { |
| | | var projectfasongxiaoxi = new Projectfasongxiaoxi(); |
| | | projectfasongxiaoxi.Id = Guid.NewGuid().ToString(); |
| | | projectfasongxiaoxi.ProjectId = projectfasongxiaoDTO.ProjectId; |
| | | projectfasongxiaoxi.ProjectmingxiId = projectfasongxiaoDTO.ProjectmingxiId; |
| | | projectfasongxiaoxi.Xiaoxileixing = projectfasongxiaoDTO.Xiaoxileixing; |
| | | projectfasongxiaoxi.Xiaoxizhonglei = projectfasongxiaoDTO.Xiaoxizhonglei; |
| | | projectfasongxiaoxi.Gyszl = projectfasongxiaoDTO.Gyszl; |
| | | projectfasongxiaoxi.Khname = projectfasongxiaoDTO.Khname; |
| | | projectfasongxiaoxi.RecStatus = "A"; |
| | | projectfasongxiaoxi.Createtime = DateTime.Now; |
| | | _context.Projectfasongxiaoxis.Add(projectfasongxiaoxi); |
| | | } |
| | | _context.SaveChanges(); |
| | | } |
| | | _logger.LogInformation(ywjl.UserName + "发送短信给客户" + customename); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | | //业务经理为空 |
| | | if (true) |
| | | { |
| | | var projectfasongxiaoxisywjl = projectfasongxiaoxiDTOsduanxinzuizhong.Where(x => x.Ywjl == null && x.Tel != null && x.Tel.StartsWith("1")).ToList(); |
| | | if (projectfasongxiaoxisywjl.Count >= 100) |
| | | { |
| | | int j = 0; |
| | | while (j * 1000 <= projectfasongxiaoxisywjl.Count) |
| | | { |
| | | j = j + 1; |
| | | string numberstring = ""; |
| | | string customename = ""; |
| | | if (projectfasongxiaoxisywjl != null && projectfasongxiaoxisywjl.Count > 0) |
| | | { |
| | | int countt = (j * 1000); |
| | | if (countt > projectfasongxiaoxisywjl.Count) |
| | | { |
| | | countt = projectfasongxiaoxisywjl.Count; |
| | | } |
| | | for (int i = 0; i < countt; i++) |
| | | { |
| | | if (numberstring.IndexOf(projectfasongxiaoxisywjl[i + j - 1].Tel) >= 0) |
| | | { |
| | | continue; |
| | | } |
| | | numberstring += projectfasongxiaoxisywjl[i + j - 1].Tel + ","; |
| | | customename += projectfasongxiaoxisywjl[i + j - 1].Khname + ","; |
| | | |
| | | } |
| | | } |
| | | |
| | | if (numberstring.EndsWith(",")) |
| | | { |
| | | numberstring = numberstring.Substring(0, numberstring.Length - 1); |
| | | } |
| | | |
| | | if (numberstring.Split(',').Length >= 100) |
| | | { |
| | | string sss = SMSHelper.PushWToUserMES(numberstring, "政采咨询公司专业“标书检查”、“标书指导”,退休资深评审专家在开标前按照评标流程为您交叉检查、指导标书,让评审专家找不出主观方案扣分理由,至少助您提升综合评审得分5-10分。了解详情请咨询:400-028-8080"); |
| | | if (int.Parse(sss) >= 0) |
| | | { |
| | | foreach (var projectfasongxiaoDTO in projectfasongxiaoxisywjl) |
| | | { |
| | | var projectfasongxiaoxi = new Projectfasongxiaoxi(); |
| | | projectfasongxiaoxi.Id = Guid.NewGuid().ToString(); |
| | | projectfasongxiaoxi.ProjectId = projectfasongxiaoDTO.ProjectId; |
| | | projectfasongxiaoxi.ProjectmingxiId = projectfasongxiaoDTO.ProjectmingxiId; |
| | | projectfasongxiaoxi.Xiaoxileixing = projectfasongxiaoDTO.Xiaoxileixing; |
| | | projectfasongxiaoxi.Xiaoxizhonglei = projectfasongxiaoDTO.Xiaoxizhonglei; |
| | | projectfasongxiaoxi.Gyszl = projectfasongxiaoDTO.Gyszl; |
| | | projectfasongxiaoxi.Khname = projectfasongxiaoDTO.Khname; |
| | | projectfasongxiaoxi.RecStatus = "A"; |
| | | projectfasongxiaoxi.Createtime = DateTime.Now; |
| | | _context.Projectfasongxiaoxis.Add(projectfasongxiaoxi); |
| | | } |
| | | _context.SaveChanges(); |
| | | } |
| | | _logger.LogInformation("无客户经理发送短信给客户" + customename); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | |
| | | //推送App |
| | | foreach (var ywjl in Ywjl) |
| | |
| | | |
| | | |
| | | |
| | | //发送短信 |
| | | foreach (var ywjl in Ywjl) |
| | | { |
| | | var projectfasongxiaoxisywjl = projectfasongxiaoxiDTOsduanxinzuizhong.Where(x => x.Ywjl == ywjl.Id && x.Tel != null && x.Tel.StartsWith("1")).ToList(); |
| | | if (projectfasongxiaoxisywjl.Count >= 100) |
| | | { |
| | | int j = 0; |
| | | while (j * 1000 <= projectfasongxiaoxisywjl.Count) |
| | | { |
| | | j = j + 1; |
| | | string numberstring = ""; |
| | | string customename = ""; |
| | | if (projectfasongxiaoxisywjl != null && projectfasongxiaoxisywjl.Count > 0) |
| | | { |
| | | int countt = (j * 1000); |
| | | if (countt > projectfasongxiaoxisywjl.Count) |
| | | { |
| | | countt = projectfasongxiaoxisywjl.Count; |
| | | } |
| | | |
| | | for (int i = 0; i < countt; i++) |
| | | { |
| | | if (numberstring.IndexOf(projectfasongxiaoxisywjl[i + j - 1].Tel) >= 0) |
| | | { |
| | | continue; |
| | | } |
| | | numberstring += projectfasongxiaoxisywjl[i + j - 1].Tel + ","; |
| | | customename += projectfasongxiaoxisywjl[i + j - 1].Khname + ","; |
| | | |
| | | } |
| | | } |
| | | |
| | | if (numberstring.EndsWith(",")) |
| | | { |
| | | numberstring = numberstring.Substring(0, numberstring.Length - 1); |
| | | } |
| | | |
| | | if (numberstring.Split(',').Length >= 100) |
| | | { |
| | | string sss = SMSHelper.PushWToUserMES(numberstring, "政采咨询公司专业“标书检查”、“标书指导”,退休资深评审专家在开标前按照评标流程为您交叉检查、指导标书,让评审专家找不出主观方案扣分理由,至少助您提升综合评审得分5-10分。了解详情请咨询:" + ywjl.Phone); |
| | | if (int.Parse(sss) >= 0) |
| | | { |
| | | foreach (var projectfasongxiaoDTO in projectfasongxiaoxisywjl) |
| | | { |
| | | var projectfasongxiaoxi = new Projectfasongxiaoxi(); |
| | | projectfasongxiaoxi.Id = Guid.NewGuid().ToString(); |
| | | projectfasongxiaoxi.ProjectId = projectfasongxiaoDTO.ProjectId; |
| | | projectfasongxiaoxi.ProjectmingxiId = projectfasongxiaoDTO.ProjectmingxiId; |
| | | projectfasongxiaoxi.Xiaoxileixing = projectfasongxiaoDTO.Xiaoxileixing; |
| | | projectfasongxiaoxi.Xiaoxizhonglei = projectfasongxiaoDTO.Xiaoxizhonglei; |
| | | projectfasongxiaoxi.Gyszl = projectfasongxiaoDTO.Gyszl; |
| | | projectfasongxiaoxi.Khname = projectfasongxiaoDTO.Khname; |
| | | projectfasongxiaoxi.RecStatus = "A"; |
| | | projectfasongxiaoxi.Createtime = DateTime.Now; |
| | | _context.Projectfasongxiaoxis.Add(projectfasongxiaoxi); |
| | | } |
| | | _context.SaveChanges(); |
| | | } |
| | | _logger.LogInformation(ywjl.UserName + "发送短信给客户" + customename); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | | //业务经理为空 |
| | | if (true) |
| | | { |
| | | var projectfasongxiaoxisywjl = projectfasongxiaoxiDTOsduanxinzuizhong.Where(x => x.Ywjl == null && x.Tel != null && x.Tel.StartsWith("1")).ToList(); |
| | | if (projectfasongxiaoxisywjl.Count >= 100) |
| | | { |
| | | int j = 0; |
| | | while (j * 1000 <= projectfasongxiaoxisywjl.Count) |
| | | { |
| | | j = j + 1; |
| | | string numberstring = ""; |
| | | string customename = ""; |
| | | if (projectfasongxiaoxisywjl != null && projectfasongxiaoxisywjl.Count > 0) |
| | | { |
| | | int countt = (j * 1000); |
| | | if (countt > projectfasongxiaoxisywjl.Count) |
| | | { |
| | | countt = projectfasongxiaoxisywjl.Count; |
| | | } |
| | | for (int i = 0; i < countt; i++) |
| | | { |
| | | if (numberstring.IndexOf(projectfasongxiaoxisywjl[i + j - 1].Tel) >= 0) |
| | | { |
| | | continue; |
| | | } |
| | | numberstring += projectfasongxiaoxisywjl[i + j - 1].Tel + ","; |
| | | customename += projectfasongxiaoxisywjl[i + j - 1].Khname + ","; |
| | | |
| | | } |
| | | } |
| | | |
| | | if (numberstring.EndsWith(",")) |
| | | { |
| | | numberstring = numberstring.Substring(0, numberstring.Length - 1); |
| | | } |
| | | |
| | | if (numberstring.Split(',').Length >= 100) |
| | | { |
| | | string sss = SMSHelper.PushWToUserMES(numberstring, "政采咨询公司专业“标书检查”、“标书指导”,退休资深评审专家在开标前按照评标流程为您交叉检查、指导标书,让评审专家找不出主观方案扣分理由,至少助您提升综合评审得分5-10分。了解详情请咨询:400-028-8080"); |
| | | if (int.Parse(sss) >= 0) |
| | | { |
| | | foreach (var projectfasongxiaoDTO in projectfasongxiaoxisywjl) |
| | | { |
| | | var projectfasongxiaoxi = new Projectfasongxiaoxi(); |
| | | projectfasongxiaoxi.Id = Guid.NewGuid().ToString(); |
| | | projectfasongxiaoxi.ProjectId = projectfasongxiaoDTO.ProjectId; |
| | | projectfasongxiaoxi.ProjectmingxiId = projectfasongxiaoDTO.ProjectmingxiId; |
| | | projectfasongxiaoxi.Xiaoxileixing = projectfasongxiaoDTO.Xiaoxileixing; |
| | | projectfasongxiaoxi.Xiaoxizhonglei = projectfasongxiaoDTO.Xiaoxizhonglei; |
| | | projectfasongxiaoxi.Gyszl = projectfasongxiaoDTO.Gyszl; |
| | | projectfasongxiaoxi.Khname = projectfasongxiaoDTO.Khname; |
| | | projectfasongxiaoxi.RecStatus = "A"; |
| | | projectfasongxiaoxi.Createtime = DateTime.Now; |
| | | _context.Projectfasongxiaoxis.Add(projectfasongxiaoxi); |
| | | } |
| | | _context.SaveChanges(); |
| | | } |
| | | _logger.LogInformation("无客户经理发送短信给客户" + customename); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | catch (Exception ex) |
| | |
| | | } |
| | | } |
| | | |
| | | //发送短信 |
| | | foreach (var ywjl in Ywjl) |
| | | { |
| | | var projectfasongxiaoxisywjl = projectfasongxiaoxiDTOsduanxinzuizhong.Where(x => x.Ywjl == ywjl.Id && x.Tel != null && x.Tel.StartsWith("1")).ToList(); |
| | | if (projectfasongxiaoxisywjl.Count >= 100) |
| | | { |
| | | int j = 0; |
| | | while (j * 1000 <= projectfasongxiaoxisywjl.Count) |
| | | { |
| | | j = j + 1; |
| | | string numberstring = ""; |
| | | string customename = ""; |
| | | if (projectfasongxiaoxisywjl != null && projectfasongxiaoxisywjl.Count > 0) |
| | | { |
| | | int countt = (j * 1000); |
| | | if (countt > projectfasongxiaoxisywjl.Count) |
| | | { |
| | | countt = projectfasongxiaoxisywjl.Count; |
| | | } |
| | | |
| | | for (int i = 0; i < countt; i++) |
| | | { |
| | | if (numberstring.IndexOf(projectfasongxiaoxisywjl[i + j - 1].Tel) >= 0) |
| | | { |
| | | continue; |
| | | } |
| | | numberstring += projectfasongxiaoxisywjl[i + j - 1].Tel + ","; |
| | | customename += projectfasongxiaoxisywjl[i + j - 1].Khname + ","; |
| | | |
| | | } |
| | | } |
| | | |
| | | if (numberstring.EndsWith(",")) |
| | | { |
| | | numberstring = numberstring.Substring(0, numberstring.Length - 1); |
| | | } |
| | | |
| | | if (numberstring.Split(',').Length >= 100) |
| | | { |
| | | string sss = SMSHelper.PushWToUserMES(numberstring, "政采咨询公司专业“标书检查”、“标书指导”,退休资深评审专家在开标前按照评标流程为您交叉检查、指导标书,让您得齐全部客观分和主观分,从此不再为标书制作操心。了解详情请咨询:" + ywjl.Phone); |
| | | if (int.Parse(sss) >= 0) |
| | | { |
| | | foreach (var projectfasongxiaoDTO in projectfasongxiaoxisywjl) |
| | | { |
| | | var projectfasongxiaoxi = new Projectfasongxiaoxi(); |
| | | projectfasongxiaoxi.Id = Guid.NewGuid().ToString(); |
| | | projectfasongxiaoxi.ProjectId = projectfasongxiaoDTO.ProjectId; |
| | | projectfasongxiaoxi.ProjectmingxiId = projectfasongxiaoDTO.ProjectmingxiId; |
| | | projectfasongxiaoxi.Xiaoxileixing = projectfasongxiaoDTO.Xiaoxileixing; |
| | | projectfasongxiaoxi.Xiaoxizhonglei = projectfasongxiaoDTO.Xiaoxizhonglei; |
| | | projectfasongxiaoxi.Gyszl = projectfasongxiaoDTO.Gyszl; |
| | | projectfasongxiaoxi.Khname = projectfasongxiaoDTO.Khname; |
| | | projectfasongxiaoxi.RecStatus = "A"; |
| | | projectfasongxiaoxi.Createtime = DateTime.Now; |
| | | _context.Projectfasongxiaoxis.Add(projectfasongxiaoxi); |
| | | } |
| | | _context.SaveChanges(); |
| | | } |
| | | _logger.LogInformation(ywjl.UserName + "发送短信给客户" + customename); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | | //业务经理为空 |
| | | if (true) |
| | | { |
| | | var projectfasongxiaoxisywjl = projectfasongxiaoxiDTOsduanxinzuizhong.Where(x => x.Ywjl == null && x.Tel != null && x.Tel.StartsWith("1")).ToList(); |
| | | if (projectfasongxiaoxisywjl.Count >= 100) |
| | | { |
| | | int j = 0; |
| | | while (j * 1000 <= projectfasongxiaoxisywjl.Count) |
| | | { |
| | | j = j + 1; |
| | | string numberstring = ""; |
| | | string customename = ""; |
| | | if (projectfasongxiaoxisywjl != null && projectfasongxiaoxisywjl.Count > 0) |
| | | { |
| | | int countt = (j * 1000); |
| | | if (countt > projectfasongxiaoxisywjl.Count) |
| | | { |
| | | countt = projectfasongxiaoxisywjl.Count; |
| | | } |
| | | for (int i = 0; i < countt; i++) |
| | | { |
| | | if (numberstring.IndexOf(projectfasongxiaoxisywjl[i + j - 1].Tel) >= 0) |
| | | { |
| | | continue; |
| | | } |
| | | numberstring += projectfasongxiaoxisywjl[i + j - 1].Tel + ","; |
| | | customename += projectfasongxiaoxisywjl[i + j - 1].Khname + ","; |
| | | |
| | | } |
| | | } |
| | | |
| | | if (numberstring.EndsWith(",")) |
| | | { |
| | | numberstring = numberstring.Substring(0, numberstring.Length - 1); |
| | | } |
| | | |
| | | if (numberstring.Split(',').Length >= 100) |
| | | { |
| | | string sss = SMSHelper.PushWToUserMES(numberstring, "政采咨询公司专业“标书检查”、“标书指导”,退休资深评审专家在开标前按照评标流程为您交叉检查、指导标书,让您得齐全部客观分和主观分,从此不再为标书制作操心。了解详情请咨询:400-028-8080"); |
| | | if (int.Parse(sss) >= 0) |
| | | { |
| | | foreach (var projectfasongxiaoDTO in projectfasongxiaoxisywjl) |
| | | { |
| | | var projectfasongxiaoxi = new Projectfasongxiaoxi(); |
| | | projectfasongxiaoxi.Id = Guid.NewGuid().ToString(); |
| | | projectfasongxiaoxi.ProjectId = projectfasongxiaoDTO.ProjectId; |
| | | projectfasongxiaoxi.ProjectmingxiId = projectfasongxiaoDTO.ProjectmingxiId; |
| | | projectfasongxiaoxi.Xiaoxileixing = projectfasongxiaoDTO.Xiaoxileixing; |
| | | projectfasongxiaoxi.Xiaoxizhonglei = projectfasongxiaoDTO.Xiaoxizhonglei; |
| | | projectfasongxiaoxi.Gyszl = projectfasongxiaoDTO.Gyszl; |
| | | projectfasongxiaoxi.Khname = projectfasongxiaoDTO.Khname; |
| | | projectfasongxiaoxi.RecStatus = "A"; |
| | | projectfasongxiaoxi.Createtime = DateTime.Now; |
| | | _context.Projectfasongxiaoxis.Add(projectfasongxiaoxi); |
| | | } |
| | | _context.SaveChanges(); |
| | | } |
| | | _logger.LogInformation("无客户经理发送短信给客户" + customename); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | |
| | | //推送App |
| | | foreach (var ywjl in Ywjl) |
| | |
| | | |
| | | |
| | | |
| | | //发送短信 |
| | | foreach (var ywjl in Ywjl) |
| | | { |
| | | var projectfasongxiaoxisywjl = projectfasongxiaoxiDTOsduanxinzuizhong.Where(x => x.Ywjl == ywjl.Id && x.Tel != null && x.Tel.StartsWith("1")).ToList(); |
| | | if (projectfasongxiaoxisywjl.Count >= 100) |
| | | { |
| | | int j = 0; |
| | | while (j * 1000 <= projectfasongxiaoxisywjl.Count) |
| | | { |
| | | j = j + 1; |
| | | string numberstring = ""; |
| | | string customename = ""; |
| | | if (projectfasongxiaoxisywjl != null && projectfasongxiaoxisywjl.Count > 0) |
| | | { |
| | | int countt = (j * 1000); |
| | | if (countt > projectfasongxiaoxisywjl.Count) |
| | | { |
| | | countt = projectfasongxiaoxisywjl.Count; |
| | | } |
| | | |
| | | for (int i = 0; i < countt; i++) |
| | | { |
| | | if (numberstring.IndexOf(projectfasongxiaoxisywjl[i + j - 1].Tel) >= 0) |
| | | { |
| | | continue; |
| | | } |
| | | numberstring += projectfasongxiaoxisywjl[i + j - 1].Tel + ","; |
| | | customename += projectfasongxiaoxisywjl[i + j - 1].Khname + ","; |
| | | |
| | | } |
| | | } |
| | | |
| | | if (numberstring.EndsWith(",")) |
| | | { |
| | | numberstring = numberstring.Substring(0, numberstring.Length - 1); |
| | | } |
| | | |
| | | if (numberstring.Split(',').Length >= 100) |
| | | { |
| | | string sss = SMSHelper.PushWToUserMES(numberstring, "政采咨询公司专业“标书检查”、“标书指导”,退休资深评审专家在开标前按照评标流程为您交叉检查、指导标书,让您得齐全部客观分和主观分,从此不再为标书制作操心。了解详情请咨询:" + ywjl.Phone); |
| | | if (int.Parse(sss) >= 0) |
| | | { |
| | | foreach (var projectfasongxiaoDTO in projectfasongxiaoxisywjl) |
| | | { |
| | | var projectfasongxiaoxi = new Projectfasongxiaoxi(); |
| | | projectfasongxiaoxi.Id = Guid.NewGuid().ToString(); |
| | | projectfasongxiaoxi.ProjectId = projectfasongxiaoDTO.ProjectId; |
| | | projectfasongxiaoxi.ProjectmingxiId = projectfasongxiaoDTO.ProjectmingxiId; |
| | | projectfasongxiaoxi.Xiaoxileixing = projectfasongxiaoDTO.Xiaoxileixing; |
| | | projectfasongxiaoxi.Xiaoxizhonglei = projectfasongxiaoDTO.Xiaoxizhonglei; |
| | | projectfasongxiaoxi.Gyszl = projectfasongxiaoDTO.Gyszl; |
| | | projectfasongxiaoxi.Khname = projectfasongxiaoDTO.Khname; |
| | | projectfasongxiaoxi.RecStatus = "A"; |
| | | projectfasongxiaoxi.Createtime = DateTime.Now; |
| | | _context.Projectfasongxiaoxis.Add(projectfasongxiaoxi); |
| | | } |
| | | _context.SaveChanges(); |
| | | } |
| | | _logger.LogInformation(ywjl.UserName + "发送短信给客户" + customename); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | | //业务经理为空 |
| | | if (true) |
| | | { |
| | | var projectfasongxiaoxisywjl = projectfasongxiaoxiDTOsduanxinzuizhong.Where(x => x.Ywjl == null && x.Tel != null && x.Tel.StartsWith("1")).ToList(); |
| | | if (projectfasongxiaoxisywjl.Count >= 100) |
| | | { |
| | | int j = 0; |
| | | while (j * 1000 <= projectfasongxiaoxisywjl.Count) |
| | | { |
| | | j = j + 1; |
| | | string numberstring = ""; |
| | | string customename = ""; |
| | | if (projectfasongxiaoxisywjl != null && projectfasongxiaoxisywjl.Count > 0) |
| | | { |
| | | int countt = (j * 1000); |
| | | if (countt > projectfasongxiaoxisywjl.Count) |
| | | { |
| | | countt = projectfasongxiaoxisywjl.Count; |
| | | } |
| | | for (int i = 0; i < countt; i++) |
| | | { |
| | | if (numberstring.IndexOf(projectfasongxiaoxisywjl[i + j - 1].Tel) >= 0) |
| | | { |
| | | continue; |
| | | } |
| | | numberstring += projectfasongxiaoxisywjl[i + j - 1].Tel + ","; |
| | | customename += projectfasongxiaoxisywjl[i + j - 1].Khname + ","; |
| | | |
| | | } |
| | | } |
| | | |
| | | if (numberstring.EndsWith(",")) |
| | | { |
| | | numberstring = numberstring.Substring(0, numberstring.Length - 1); |
| | | } |
| | | |
| | | if (numberstring.Split(',').Length >= 100) |
| | | { |
| | | string sss = SMSHelper.PushWToUserMES(numberstring, "政采咨询公司专业“标书检查”、“标书指导”,退休资深评审专家在开标前按照评标流程为您交叉检查、指导标书,让您得齐全部客观分和主观分,从此不再为标书制作操心。了解详情请咨询:400-028-8080"); |
| | | if (int.Parse(sss) >= 0) |
| | | { |
| | | foreach (var projectfasongxiaoDTO in projectfasongxiaoxisywjl) |
| | | { |
| | | var projectfasongxiaoxi = new Projectfasongxiaoxi(); |
| | | projectfasongxiaoxi.Id = Guid.NewGuid().ToString(); |
| | | projectfasongxiaoxi.ProjectId = projectfasongxiaoDTO.ProjectId; |
| | | projectfasongxiaoxi.ProjectmingxiId = projectfasongxiaoDTO.ProjectmingxiId; |
| | | projectfasongxiaoxi.Xiaoxileixing = projectfasongxiaoDTO.Xiaoxileixing; |
| | | projectfasongxiaoxi.Xiaoxizhonglei = projectfasongxiaoDTO.Xiaoxizhonglei; |
| | | projectfasongxiaoxi.Gyszl = projectfasongxiaoDTO.Gyszl; |
| | | projectfasongxiaoxi.Khname = projectfasongxiaoDTO.Khname; |
| | | projectfasongxiaoxi.RecStatus = "A"; |
| | | projectfasongxiaoxi.Createtime = DateTime.Now; |
| | | _context.Projectfasongxiaoxis.Add(projectfasongxiaoxi); |
| | | } |
| | | _context.SaveChanges(); |
| | | } |
| | | _logger.LogInformation("无客户经理发送短信给客户" + customename); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | catch (Exception ex) |
| | |
| | | } |
| | | } |
| | | |
| | | //发送短信 |
| | | foreach (var ywjl in Ywjl) |
| | | { |
| | | var projectfasongxiaoxisywjl = projectfasongxiaoxiDTOsduanxinzuizhong.Where(x => x.Ywjl == ywjl.Id && x.Tel != null && x.Tel.StartsWith("1")).ToList(); |
| | | if (projectfasongxiaoxisywjl.Count >= 100) |
| | | { |
| | | int j = 0; |
| | | while (j * 1000 <= projectfasongxiaoxisywjl.Count) |
| | | { |
| | | j = j + 1; |
| | | string numberstring = ""; |
| | | string customename = ""; |
| | | if (projectfasongxiaoxisywjl != null && projectfasongxiaoxisywjl.Count > 0) |
| | | { |
| | | int countt = (j * 1000); |
| | | if (countt > projectfasongxiaoxisywjl.Count) |
| | | { |
| | | countt = projectfasongxiaoxisywjl.Count; |
| | | } |
| | | |
| | | for (int i = 0; i < countt; i++) |
| | | { |
| | | if (numberstring.IndexOf(projectfasongxiaoxisywjl[i + j - 1].Tel) >= 0) |
| | | { |
| | | continue; |
| | | } |
| | | numberstring += projectfasongxiaoxisywjl[i + j - 1].Tel + ","; |
| | | customename += projectfasongxiaoxisywjl[i + j - 1].Khname + ","; |
| | | |
| | | } |
| | | } |
| | | |
| | | if (numberstring.EndsWith(",")) |
| | | { |
| | | numberstring = numberstring.Substring(0, numberstring.Length - 1); |
| | | } |
| | | |
| | | if (numberstring.Split(',').Length >= 100) |
| | | { |
| | | string sss = SMSHelper.PushWToUserMES(numberstring, "政采咨询公司专业为供应商代拟质疑函、投诉书,资深政府采购法律专家、3000多件质疑投诉成功案例,找政采咨询,花钱更少、胜算更高,接受推风险代理,质疑投诉成功再收费。了解详情请咨询:" + ywjl.Phone); |
| | | if (int.Parse(sss) >= 0) |
| | | { |
| | | foreach (var projectfasongxiaoDTO in projectfasongxiaoxisywjl) |
| | | { |
| | | var projectfasongxiaoxi = new Projectfasongxiaoxi(); |
| | | projectfasongxiaoxi.Id = Guid.NewGuid().ToString(); |
| | | projectfasongxiaoxi.ProjectId = projectfasongxiaoDTO.ProjectId; |
| | | projectfasongxiaoxi.ProjectmingxiId = projectfasongxiaoDTO.ProjectmingxiId; |
| | | projectfasongxiaoxi.Xiaoxileixing = projectfasongxiaoDTO.Xiaoxileixing; |
| | | projectfasongxiaoxi.Xiaoxizhonglei = projectfasongxiaoDTO.Xiaoxizhonglei; |
| | | projectfasongxiaoxi.Gyszl = projectfasongxiaoDTO.Gyszl; |
| | | projectfasongxiaoxi.Khname = projectfasongxiaoDTO.Khname; |
| | | projectfasongxiaoxi.RecStatus = "A"; |
| | | projectfasongxiaoxi.Createtime = DateTime.Now; |
| | | _context.Projectfasongxiaoxis.Add(projectfasongxiaoxi); |
| | | } |
| | | _context.SaveChanges(); |
| | | } |
| | | _logger.LogInformation(ywjl.UserName + "发送短信给客户" + customename); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | | //业务经理为空 |
| | | if (true) |
| | | { |
| | | var projectfasongxiaoxisywjl = projectfasongxiaoxiDTOsduanxinzuizhong.Where(x => x.Ywjl == null && x.Tel != null && x.Tel.StartsWith("1")).ToList(); |
| | | if (projectfasongxiaoxisywjl.Count >= 100) |
| | | { |
| | | int j = 0; |
| | | while (j * 1000 <= projectfasongxiaoxisywjl.Count) |
| | | { |
| | | j = j + 1; |
| | | string numberstring = ""; |
| | | string customename = ""; |
| | | if (projectfasongxiaoxisywjl != null && projectfasongxiaoxisywjl.Count > 0) |
| | | { |
| | | int countt = (j * 1000); |
| | | if (countt > projectfasongxiaoxisywjl.Count) |
| | | { |
| | | countt = projectfasongxiaoxisywjl.Count; |
| | | } |
| | | for (int i = 0; i < countt; i++) |
| | | { |
| | | if (numberstring.IndexOf(projectfasongxiaoxisywjl[i + j - 1].Tel) >= 0) |
| | | { |
| | | continue; |
| | | } |
| | | numberstring += projectfasongxiaoxisywjl[i + j - 1].Tel + ","; |
| | | customename += projectfasongxiaoxisywjl[i + j - 1].Khname + ","; |
| | | |
| | | } |
| | | } |
| | | if (numberstring.EndsWith(",")) |
| | | { |
| | | numberstring = numberstring.Substring(0, numberstring.Length - 1); |
| | | } |
| | | |
| | | if (numberstring.Split(',').Length >= 100) |
| | | { |
| | | string sss = SMSHelper.PushWToUserMES(numberstring, "政采咨询公司专业为供应商代拟质疑函、投诉书,资深政府采购法律专家、3000多件质疑投诉成功案例,找政采咨询,花钱更少、胜算更高,接受推风险代理,质疑投诉成功再收费。了解详情请咨询:400-028-8080"); |
| | | if (int.Parse(sss) >= 0) |
| | | { |
| | | foreach (var projectfasongxiaoDTO in projectfasongxiaoxisywjl) |
| | | { |
| | | var projectfasongxiaoxi = new Projectfasongxiaoxi(); |
| | | projectfasongxiaoxi.Id = Guid.NewGuid().ToString(); |
| | | projectfasongxiaoxi.ProjectId = projectfasongxiaoDTO.ProjectId; |
| | | projectfasongxiaoxi.ProjectmingxiId = projectfasongxiaoDTO.ProjectmingxiId; |
| | | projectfasongxiaoxi.Xiaoxileixing = projectfasongxiaoDTO.Xiaoxileixing; |
| | | projectfasongxiaoxi.Xiaoxizhonglei = projectfasongxiaoDTO.Xiaoxizhonglei; |
| | | projectfasongxiaoxi.Gyszl = projectfasongxiaoDTO.Gyszl; |
| | | projectfasongxiaoxi.Khname = projectfasongxiaoDTO.Khname; |
| | | projectfasongxiaoxi.RecStatus = "A"; |
| | | projectfasongxiaoxi.Createtime = DateTime.Now; |
| | | _context.Projectfasongxiaoxis.Add(projectfasongxiaoxi); |
| | | } |
| | | _context.SaveChanges(); |
| | | } |
| | | _logger.LogInformation("无客户经理发送短信给客户" + customename); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | //推送App |
| | | foreach (var ywjl in Ywjl) |
| | |
| | | |
| | | |
| | | |
| | | //发送短信 |
| | | foreach (var ywjl in Ywjl) |
| | | { |
| | | var projectfasongxiaoxisywjl = projectfasongxiaoxiDTOsduanxinzuizhong.Where(x => x.Ywjl == ywjl.Id && x.Tel != null && x.Tel.StartsWith("1")).ToList(); |
| | | if (projectfasongxiaoxisywjl.Count >= 100) |
| | | { |
| | | int j = 0; |
| | | while (j * 1000 <= projectfasongxiaoxisywjl.Count) |
| | | { |
| | | j = j + 1; |
| | | string numberstring = ""; |
| | | string customename = ""; |
| | | if (projectfasongxiaoxisywjl != null && projectfasongxiaoxisywjl.Count > 0) |
| | | { |
| | | int countt = (j * 1000); |
| | | if (countt > projectfasongxiaoxisywjl.Count) |
| | | { |
| | | countt = projectfasongxiaoxisywjl.Count; |
| | | } |
| | | |
| | | for (int i = 0; i < countt; i++) |
| | | { |
| | | if (numberstring.IndexOf(projectfasongxiaoxisywjl[i + j - 1].Tel) >= 0) |
| | | { |
| | | continue; |
| | | } |
| | | numberstring += projectfasongxiaoxisywjl[i + j - 1].Tel + ","; |
| | | customename += projectfasongxiaoxisywjl[i + j - 1].Khname + ","; |
| | | |
| | | } |
| | | } |
| | | |
| | | if (numberstring.EndsWith(",")) |
| | | { |
| | | numberstring = numberstring.Substring(0, numberstring.Length - 1); |
| | | } |
| | | |
| | | if (numberstring.Split(',').Length >= 100) |
| | | { |
| | | string sss = SMSHelper.PushWToUserMES(numberstring, "政采咨询公司专业为供应商代拟质疑函、投诉书,资深政府采购法律专家、3000多件质疑投诉成功案例,找政采咨询,花钱更少、胜算更高,接受推风险代理,质疑投诉成功再收费。了解详情请咨询:" + ywjl.Phone); |
| | | if (int.Parse(sss) >= 0) |
| | | { |
| | | foreach (var projectfasongxiaoDTO in projectfasongxiaoxisywjl) |
| | | { |
| | | var projectfasongxiaoxi = new Projectfasongxiaoxi(); |
| | | projectfasongxiaoxi.Id = Guid.NewGuid().ToString(); |
| | | projectfasongxiaoxi.ProjectId = projectfasongxiaoDTO.ProjectId; |
| | | projectfasongxiaoxi.ProjectmingxiId = projectfasongxiaoDTO.ProjectmingxiId; |
| | | projectfasongxiaoxi.Xiaoxileixing = projectfasongxiaoDTO.Xiaoxileixing; |
| | | projectfasongxiaoxi.Xiaoxizhonglei = projectfasongxiaoDTO.Xiaoxizhonglei; |
| | | projectfasongxiaoxi.Gyszl = projectfasongxiaoDTO.Gyszl; |
| | | projectfasongxiaoxi.Khname = projectfasongxiaoDTO.Khname; |
| | | projectfasongxiaoxi.RecStatus = "A"; |
| | | projectfasongxiaoxi.Createtime = DateTime.Now; |
| | | _context.Projectfasongxiaoxis.Add(projectfasongxiaoxi); |
| | | } |
| | | _context.SaveChanges(); |
| | | } |
| | | _logger.LogInformation(ywjl.UserName + "发送短信给客户" + customename); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | | //业务经理为空 |
| | | if (true) |
| | | { |
| | | var projectfasongxiaoxisywjl = projectfasongxiaoxiDTOsduanxinzuizhong.Where(x => x.Ywjl == null && x.Tel != null && x.Tel.StartsWith("1")).ToList(); |
| | | if (projectfasongxiaoxisywjl.Count >= 100) |
| | | { |
| | | int j = 0; |
| | | while (j * 1000 <= projectfasongxiaoxisywjl.Count) |
| | | { |
| | | j = j + 1; |
| | | string numberstring = ""; |
| | | string customename = ""; |
| | | if (projectfasongxiaoxisywjl != null && projectfasongxiaoxisywjl.Count > 0) |
| | | { |
| | | int countt = (j * 1000); |
| | | if (countt > projectfasongxiaoxisywjl.Count) |
| | | { |
| | | countt = projectfasongxiaoxisywjl.Count; |
| | | } |
| | | for (int i = 0; i < countt; i++) |
| | | { |
| | | if (numberstring.IndexOf(projectfasongxiaoxisywjl[i + j - 1].Tel) >= 0) |
| | | { |
| | | continue; |
| | | } |
| | | numberstring += projectfasongxiaoxisywjl[i + j - 1].Tel + ","; |
| | | customename += projectfasongxiaoxisywjl[i + j - 1].Khname + ","; |
| | | |
| | | } |
| | | } |
| | | if (numberstring.EndsWith(",")) |
| | | { |
| | | numberstring = numberstring.Substring(0, numberstring.Length - 1); |
| | | } |
| | | |
| | | if (numberstring.Split(',').Length >= 100) |
| | | { |
| | | string sss = SMSHelper.PushWToUserMES(numberstring, "政采咨询公司专业为供应商代拟质疑函、投诉书,资深政府采购法律专家、3000多件质疑投诉成功案例,找政采咨询,花钱更少、胜算更高,接受推风险代理,质疑投诉成功再收费。了解详情请咨询:400-028-8080"); |
| | | if (int.Parse(sss) >= 0) |
| | | { |
| | | foreach (var projectfasongxiaoDTO in projectfasongxiaoxisywjl) |
| | | { |
| | | var projectfasongxiaoxi = new Projectfasongxiaoxi(); |
| | | projectfasongxiaoxi.Id = Guid.NewGuid().ToString(); |
| | | projectfasongxiaoxi.ProjectId = projectfasongxiaoDTO.ProjectId; |
| | | projectfasongxiaoxi.ProjectmingxiId = projectfasongxiaoDTO.ProjectmingxiId; |
| | | projectfasongxiaoxi.Xiaoxileixing = projectfasongxiaoDTO.Xiaoxileixing; |
| | | projectfasongxiaoxi.Xiaoxizhonglei = projectfasongxiaoDTO.Xiaoxizhonglei; |
| | | projectfasongxiaoxi.Gyszl = projectfasongxiaoDTO.Gyszl; |
| | | projectfasongxiaoxi.Khname = projectfasongxiaoDTO.Khname; |
| | | projectfasongxiaoxi.RecStatus = "A"; |
| | | projectfasongxiaoxi.Createtime = DateTime.Now; |
| | | _context.Projectfasongxiaoxis.Add(projectfasongxiaoxi); |
| | | } |
| | | _context.SaveChanges(); |
| | | } |
| | | _logger.LogInformation("无客户经理发送短信给客户" + customename); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |