username@email.com
2025-04-27 15eb82df2d6ec539e9d4245bfe08d531e8eb6379
zhengcaioa/zhengcaioa/Controllers/Customer/CooperVisitController.cs
@@ -129,14 +129,35 @@
            {
                dto = _cooperVisitService.Get(id);
                var cooperatecustomCustomerDTO = _cooperatecustomCustomerService.Get(dto.Viscustomer);
                if (cooperatecustomCustomerDTO != null)
                {
                    dto.ViscustomerName = cooperatecustomCustomerDTO.Name;
                }
            }
            else
            {
                dto.Viscustomer = Viscustomer;
                dto.Vistime = DateTime.Now;
                if (!string.IsNullOrWhiteSpace(Viscustomer))
                {
                    var cooperatecustomCustomerDTO = _cooperatecustomCustomerService.Get(Viscustomer);
                    if (cooperatecustomCustomerDTO != null)
                    {
                        dto.ViscustomerName = cooperatecustomCustomerDTO.Name;
                    }
                }
            }
            ViewData["customer"] = _cooperatecustomCustomerService.GetList();
            if (!string.IsNullOrWhiteSpace(dto.Viscustomer))
            {
                ViewData["customer"] = new List<CooperatecustomCustomerDTO>();
            }
            else
            {
                ViewData["customer"] = _cooperatecustomCustomerService.GetList();
            }