From 439f10462e6b1ab0ebd454f53c2156c6fab24266 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期一, 14 十一月 2022 11:12:46 +0800 Subject: [PATCH] 抓取的项目, 已确认,未确认 未确认为橙色 客户档案管理 有无手机号,未确认为橙色 客户资料页面查看访问记录 --- zhengcaioa/zhengcaioa/Controllers/Customer/IntentionCustomerController.cs | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionCustomerController.cs b/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionCustomerController.cs index 11d978b..dc80ff0 100644 --- a/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionCustomerController.cs +++ b/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionCustomerController.cs @@ -36,10 +36,11 @@ private readonly IMapper _mapper; private readonly IHrDeptService _hrDeptService; private readonly IPltPageService _pltPageService; - + private readonly IIntentionVisitService _intentionVisitService; public IntentionCustomerController(ILogger<IntentionCustomerController> logger, IProjectService projectService, ILiaotianService liaotianService, IIntentionCustomerService intentionCustomerService, IUserService userService - , ICooperatecustomCustomerService cooperatecustomCustomerService, IMapper mapper, IHrDeptService hrDeptService, IPltPageService pltPageService) + , ICooperatecustomCustomerService cooperatecustomCustomerService, IMapper mapper, IHrDeptService hrDeptService, IPltPageService pltPageService + , IIntentionVisitService intentionVisitService) { _logger = logger; _projectService = projectService; @@ -50,6 +51,7 @@ _mapper = mapper; _hrDeptService = hrDeptService; _pltPageService = pltPageService; + _intentionVisitService = intentionVisitService; } public IActionResult Index() @@ -182,6 +184,10 @@ areaDTOsic.ParentId = "0 "; areaDTOs.Insert(1, areaDTOsic); ViewBag.ShengDropDown = areaDTOs.Select(x => new { code = x.CodeId, label = x.Name }).ToList(); + + ViewBag.Baomingtimebegin = DateTime.Now.AddMonths(-6).ToString("yyyy-MM-dd"); + ViewBag.Baomingtimeend = DateTime.Now.ToString("yyyy-MM-dd"); + return View(); } @@ -390,6 +396,12 @@ { intentionCustomerDTO = _intentionCustomerService.Get(id); + IntentionVisitDTOSearch searchEntity = new IntentionVisitDTOSearch(); + searchEntity.page = 1; + searchEntity.rows = 1000; + searchEntity.Viscustomer = id; + var resultDataEntity = _intentionVisitService.SearchByPaging(searchEntity); + ViewData["visitlishi"] = resultDataEntity.DataList; } else { @@ -400,6 +412,8 @@ intentionCustomerDTO.AreaId = "510107"; intentionCustomerDTO.Name = namecus; + ViewData["visitlishi"] = new List<IntentionVisitDTO>(); + } var areaDTOs = _projectService.Getsheng().ToList(); -- Gitblit v1.9.1