From c7db5bfdd77b43e91270b2bd225f6233636337d7 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 09 十二月 2022 12:33:10 +0800
Subject: [PATCH] 提交

---
 zhengcaioa/Crawler/sichuan/CcgpSichuanoperation.cs |   25 ++++++++++++++++++++-----
 1 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/zhengcaioa/Crawler/sichuan/CcgpSichuanoperation.cs b/zhengcaioa/Crawler/sichuan/CcgpSichuanoperation.cs
index 43be9ad..f29938b 100644
--- a/zhengcaioa/Crawler/sichuan/CcgpSichuanoperation.cs
+++ b/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);
@@ -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);
@@ -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);
@@ -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);

--
Gitblit v1.9.1