username@email.com
2022-12-16 6108fe7c4f3a329e8d309d00ee0b1761b8c5ad8f
zhengcaioa/Crawler/sichuan/CcgpSichuanoperation.cs
@@ -256,7 +256,10 @@
                                    }
                                    using (HttpClient clientdtl = new HttpClient())
                                    {
                                        var zhengfuProjectcount = _ccontext.ZhengfuProjects.Count(x => (x.RecStatus == "A" && x.Pageurl == aaaaaaaa.pageurl) || (x.RecStatus == "A" && x.Title == aaaaaaaa.title && x.Gglx == "02" && x.OpenTenderTime == DateTime.Parse(NoticeTime)));
                                        var notime = DateTime.Parse(NoticeTime).ToString("yyyy-MM-dd");
                                        var notimestart = DateTime.Parse(notime);
                                        var notimeend = notimestart.AddDays(1);
                                        var zhengfuProjectcount = _ccontext.ZhengfuProjects.Count(x => (x.RecStatus == "A" && x.Pageurl == aaaaaaaa.pageurl) || (x.RecStatus == "A" && x.Title == aaaaaaaa.title && x.Gglx == "02" && x.NoticeTime >= notimestart && x.NoticeTime < notimeend) );
                                        if (zhengfuProjectcount <= 0)
@@ -621,7 +624,10 @@
                                    }
                                    using (HttpClient clientdtl = new HttpClient())
                                    {
                                        var zhengfuProjectCount = _ccontext.ZhengfuProjects.Count(x => (x.RecStatus == "A" && x.Pageurl == aaaaaaaa.pageurl) || (x.RecStatus == "A" && x.Title == aaaaaaaa.title && x.Gglx == "01" && x.OpenTenderTime == DateTime.Parse(NoticeTime)));
                                        var notime = DateTime.Parse(NoticeTime).ToString("yyyy-MM-dd");
                                        var notimestart = DateTime.Parse(notime);
                                        var notimeend = notimestart.AddDays(1);
                                        var zhengfuProjectCount = _ccontext.ZhengfuProjects.Count(x => (x.RecStatus == "A" && x.Pageurl == aaaaaaaa.pageurl) || (x.RecStatus == "A" && x.Title == aaaaaaaa.title && x.Gglx == "01" && x.NoticeTime >= notimestart && x.NoticeTime < notimeend));
                                        if (zhengfuProjectCount <= 0)
                                        {
                                            clientdtl.Timeout = TimeSpan.FromSeconds(60);
@@ -666,8 +672,8 @@
                                                {
                                                    if (td[i].TextContent.IndexOf("项目编号:") >= 0)
                                                    {
                                                        OpenTenderCode = td[i].TextContent.Replace("项目编号:", "").Replace("/", "").Trim();
                                                        if (string.IsNullOrEmpty(OpenTenderCode))
                                                            OpenTenderCode = td[i].TextContent.Replace("项目编号:", "").Replace("/", "").Trim();
                                                    }
                                                    if (td[i].TextContent.IndexOf("预算金额:") >= 0)
@@ -934,7 +940,10 @@
                                    }
                                    using (HttpClient clientdtl = new HttpClient())
                                    {
                                        var zhengfuProjectCount = _ccontext.ZhengfuProjects.Count(x => (x.RecStatus == "A" && x.Pageurl == aaaaaaaa.pageurl) || (x.RecStatus == "A" && x.Title == aaaaaaaa.title && x.Gglx == "03" && x.OpenTenderTime == DateTime.Parse(NoticeTime)));
                                        var notime = DateTime.Parse(NoticeTime).ToString("yyyy-MM-dd");
                                        var notimestart = DateTime.Parse(notime);
                                        var notimeend = notimestart.AddDays(1);
                                        var zhengfuProjectCount = _ccontext.ZhengfuProjects.Count(x => (x.RecStatus == "A" && x.Pageurl == aaaaaaaa.pageurl) || (x.RecStatus == "A" && x.Title == aaaaaaaa.title && x.Gglx == "03" && x.NoticeTime >= notimestart && x.NoticeTime < notimeend));
                                        if (zhengfuProjectCount <= 0)
                                        {
                                            clientdtl.Timeout = TimeSpan.FromSeconds(60);
@@ -979,8 +988,8 @@
                                                {
                                                    if (td[i].TextContent.IndexOf("项目编号:") >= 0)
                                                    {
                                                        OpenTenderCode = td[i].TextContent.Replace("项目编号:", "").Replace("一、", "").Trim();
                                                        if (string.IsNullOrEmpty(OpenTenderCode))
                                                            OpenTenderCode = td[i].TextContent.Replace("项目编号:", "").Replace("一、", "").Trim();
                                                        if (OpenTenderCode.IndexOf("(招标文件编号") >= 0)
                                                        {
@@ -1027,8 +1036,8 @@
                                                {
                                                    if (td[i].TextContent.IndexOf("项目编号:") >= 0)
                                                    {
                                                        OpenTenderCode = td[i].TextContent.Replace("项目编号:", "").Replace("一、", "").Trim();
                                                        if (string.IsNullOrEmpty(OpenTenderCode))
                                                            OpenTenderCode = td[i].TextContent.Replace("项目编号:", "").Replace("一、", "").Trim();
                                                        if (OpenTenderCode.IndexOf("(招标文件编号") >= 0)
                                                        {
@@ -1298,7 +1307,10 @@
                                    }
                                    using (HttpClient clientdtl = new HttpClient())
                                    {
                                        var zhengfuProjectCount = _ccontext.ZhengfuProjects.Count(x => (x.RecStatus == "A" && x.Pageurl == aaaaaaaa.pageurl) || (x.RecStatus == "A" && x.Title == aaaaaaaa.title && x.Gglx == "04" && x.OpenTenderTime == DateTime.Parse(NoticeTime)));
                                        var notime = DateTime.Parse(NoticeTime).ToString("yyyy-MM-dd");
                                        var notimestart = DateTime.Parse(notime);
                                        var notimeend = notimestart.AddDays(1);
                                        var zhengfuProjectCount = _ccontext.ZhengfuProjects.Count(x => (x.RecStatus == "A" && x.Pageurl == aaaaaaaa.pageurl) || (x.RecStatus == "A" && x.Title == aaaaaaaa.title && x.Gglx == "04" && x.NoticeTime >= notimestart && x.NoticeTime < notimeend));
                                        if (zhengfuProjectCount <= 0)
                                        {
                                            clientdtl.Timeout = TimeSpan.FromSeconds(60);
@@ -1343,8 +1355,8 @@
                                                {
                                                    if (td[i].TextContent.IndexOf("原公告的采购项目编号:") >= 0)
                                                    {
                                                        OpenTenderCode = td[i].TextContent.Replace("原公告的采购项目编号:", "").Trim();
                                                        if (string.IsNullOrEmpty(OpenTenderCode))
                                                            OpenTenderCode = td[i].TextContent.Replace("原公告的采购项目编号:", "").Trim();
                                                    }
                                                    if (td[i].TextContent.IndexOf("预算金额:") >= 0)
@@ -1610,7 +1622,10 @@
                                    }
                                    using (HttpClient clientdtl = new HttpClient())
                                    {
                                        var zhengfuProjectCount = _ccontext.ZhengfuProjects.Count(x => (x.RecStatus == "A" && x.Pageurl == aaaaaaaa.pageurl) || (x.RecStatus == "A" && x.Title == aaaaaaaa.title && x.Gglx == "11" && x.OpenTenderTime == DateTime.Parse(NoticeTime)));
                                        var notime = DateTime.Parse(NoticeTime).ToString("yyyy-MM-dd");
                                        var notimestart = DateTime.Parse(notime);
                                        var notimeend = notimestart.AddDays(1);
                                        var zhengfuProjectCount = _ccontext.ZhengfuProjects.Count(x => (x.RecStatus == "A" && x.Pageurl == aaaaaaaa.pageurl) || (x.RecStatus == "A" && x.Title == aaaaaaaa.title && x.Gglx == "11" && x.NoticeTime >= notimestart && x.NoticeTime < notimeend));
                                        if (zhengfuProjectCount <= 0)
                                        {
                                            clientdtl.Timeout = TimeSpan.FromSeconds(60);
@@ -1655,8 +1670,8 @@
                                                {
                                                    if (td[i].TextContent.IndexOf("采购项目编号:") >= 0)
                                                    {
                                                        OpenTenderCode = td[i].TextContent.Replace("采购项目编号:", "").Trim();
                                                        if (string.IsNullOrEmpty(OpenTenderCode))
                                                            OpenTenderCode = td[i].TextContent.Replace("采购项目编号:", "").Trim();
                                                    }
                                                    if (td[i].TextContent.IndexOf("预算金额:") >= 0)