| | |
| | | public class sichuanoperation |
| | | { |
| | | public static string api_domain = "http://192.168.0.116:9200"; |
| | | //public static string api_domain = "http://localhost:9200"; |
| | | public static string sichuanpageurll = "https://zfcg.scsczt.cn"; |
| | | public static void operations(WebCrawlerContext _ccontext) |
| | | { |
| | |
| | | { |
| | | foreach (var sichuanjieshoudtl in sichuan.data) |
| | | { |
| | | ZhengfuProject zhengfuProject = _ccontext.ZhengfuProjects.Where(x => x.OpenTenderCode == sichuanjieshoudtl.openTenderCode && x.Gglx == "02" && x.NoticeTime == sichuanjieshoudtl.noticeTime).FirstOrDefault(); |
| | | var pageurl1 = sichuanpageurll + sichuanjieshoudtl.pageurl; |
| | | ZhengfuProject zhengfuProject = _ccontext.ZhengfuProjects.Where(x => x.Pageurl == pageurl1).FirstOrDefault(); |
| | | if (zhengfuProject == null) |
| | | { |
| | | zhengfuProject = new ZhengfuProject(); |
| | |
| | | { |
| | | foreach (var sichuanjieshoudtl in sichuan.data) |
| | | { |
| | | ZhengfuProject zhengfuProject = _ccontext.ZhengfuProjects.Where(x => x.OpenTenderCode == sichuanjieshoudtl.openTenderCode && x.Gglx == "03" && x.NoticeTime == sichuanjieshoudtl.noticeTime).FirstOrDefault(); |
| | | var pageurl1 = sichuanpageurll + sichuanjieshoudtl.pageurl; |
| | | ZhengfuProject zhengfuProject = _ccontext.ZhengfuProjects.Where(x => x.Pageurl == pageurl1).FirstOrDefault(); |
| | | if (zhengfuProject == null) |
| | | { |
| | | zhengfuProject = new ZhengfuProject(); |
| | |
| | | { |
| | | foreach (var sichuanjieshoudtl in sichuan.data) |
| | | { |
| | | ZhengfuProject zhengfuProject = _ccontext.ZhengfuProjects.Where(x => x.OpenTenderCode == sichuanjieshoudtl.openTenderCode && x.Gglx == "04" && x.NoticeTime == sichuanjieshoudtl.noticeTime).FirstOrDefault(); |
| | | var pageurl1 = sichuanpageurll + sichuanjieshoudtl.pageurl; |
| | | ZhengfuProject zhengfuProject = _ccontext.ZhengfuProjects.Where(x => x.Pageurl == pageurl1).FirstOrDefault(); |
| | | if (zhengfuProject == null) |
| | | { |
| | | zhengfuProject = new ZhengfuProject(); |
| | |
| | | { |
| | | foreach (var sichuanjieshoudtl in sichuan.data) |
| | | { |
| | | ZhengfuProject zhengfuProject = _ccontext.ZhengfuProjects.Where(x => x.OpenTenderCode == sichuanjieshoudtl.openTenderCode && x.Gglx == "11" && x.NoticeTime == sichuanjieshoudtl.noticeTime).FirstOrDefault(); |
| | | var pageurl1 = sichuanpageurll + sichuanjieshoudtl.pageurl; |
| | | ZhengfuProject zhengfuProject = _ccontext.ZhengfuProjects.Where(x => x.Pageurl == pageurl1).FirstOrDefault(); |
| | | if (zhengfuProject == null) |
| | | { |
| | | zhengfuProject = new ZhengfuProject(); |
| | |
| | | { |
| | | foreach (var sichuanjieshoudtl in sichuan.data) |
| | | { |
| | | ZhengfuProject zhengfuProject = _ccontext.ZhengfuProjects.Where(x => x.OpenTenderCode == sichuanjieshoudtl.openTenderCode && x.Gglx == "01" && x.NoticeTime == sichuanjieshoudtl.noticeTime).FirstOrDefault(); |
| | | var pageurl1 = sichuanpageurll + sichuanjieshoudtl.pageurl; |
| | | ZhengfuProject zhengfuProject = _ccontext.ZhengfuProjects.Where(x => x.Pageurl == pageurl1).FirstOrDefault(); |
| | | if (zhengfuProject == null) |
| | | { |
| | | zhengfuProject = new ZhengfuProject(); |