From db227144dedfb5fb5b1e94e8c8b14eab9eb7462f Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期四, 01 十二月 2022 13:32:50 +0800 Subject: [PATCH] 中国政采网的四川数据 发送验证码 --- zhengcaioa/zhengcaioa/Controllers/Customer/CooperatecustomCustomerController.cs | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Controllers/Customer/CooperatecustomCustomerController.cs b/zhengcaioa/zhengcaioa/Controllers/Customer/CooperatecustomCustomerController.cs index 6b97fdb..abc77a8 100644 --- a/zhengcaioa/zhengcaioa/Controllers/Customer/CooperatecustomCustomerController.cs +++ b/zhengcaioa/zhengcaioa/Controllers/Customer/CooperatecustomCustomerController.cs @@ -30,11 +30,12 @@ private readonly IHrDeptService _hrDeptService; private readonly ISysAttachmentService _sysAttachmentService; private readonly IPltPageService _pltPageService; - + private readonly ICooperVisitService _cooperVisitService; public CooperatecustomCustomerController(ILogger<CooperatecustomCustomerController> logger, IProjectService projectService, ILiaotianService liaotianService, ICooperatecustomCustomerService cooperatecustomCustomerService, IUserService userService, IHrDeptService hrDeptService , ISysAttachmentService sysAttachmentService - , IPltPageService pltPageService) + , IPltPageService pltPageService + , ICooperVisitService cooperVisitService) { _logger = logger; _projectService = projectService; @@ -44,6 +45,7 @@ _hrDeptService = hrDeptService; _sysAttachmentService = sysAttachmentService; _pltPageService = pltPageService; + _cooperVisitService = cooperVisitService; } public IActionResult Index() @@ -157,7 +159,7 @@ ViewBag.ShengDropDown = areaDTOs.Select(x => new { code = x.CodeId, label = x.Name }).ToList(); - ViewBag.Baomingtimebegin = DateTime.Now.AddYears(-1).ToString("yyyy-MM-dd"); + ViewBag.Baomingtimebegin = DateTime.Now.AddMonths(-6).ToString("yyyy-MM-dd"); ViewBag.Baomingtimeend = DateTime.Now.ToString("yyyy-MM-dd"); @@ -183,6 +185,13 @@ { cooperatecustomCustomerDTO = _cooperatecustomCustomerService.Get(id); + + CooperVisitDTOSearch searchEntity = new CooperVisitDTOSearch(); + searchEntity.page = 1; + searchEntity.rows = 1000; + searchEntity.Viscustomer = id; + var resultDataEntity = _cooperVisitService.SearchByPaging(searchEntity); + ViewData["visitlishi"] = resultDataEntity.DataList; } else { @@ -191,7 +200,9 @@ cooperatecustomCustomerDTO.Sheng = "510000"; cooperatecustomCustomerDTO.City = "510100"; cooperatecustomCustomerDTO.AreaId = "510107"; - + + ViewData["visitlishi"] = new List<CooperVisitDTO>(); + } var areaDTOs = _projectService.Getsheng().ToList(); -- Gitblit v1.9.1