| 
					
				 | 
			
			
				@@ -1,4 +1,5 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using Microsoft.AspNetCore.Mvc; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+using OASystem.API.OAMethodLib; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using OASystem.Domain.Dtos.CRM; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using OASystem.Domain.Entities.Customer; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 using OASystem.Infrastructure.Repositories.CRM; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -65,6 +66,10 @@ namespace OASystem.API.Controllers 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 Result resultData = await _clientDataRepository.QueryNewClientData(dto); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (resultData.Code == 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    #region 客户资料表操作记录 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    await GeneralMethod.NewClientOperationRecord(dto.PortType,OperationEnum.NoOperation, dto.UserId, 0, ""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    #endregion 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     jw = JsonView(true, "查询成功!", resultData.Data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 else 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -95,6 +100,9 @@ namespace OASystem.API.Controllers 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 Result resultData = await _clientDataRepository._Details(dto.PortType , dto.Id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (resultData.Code == 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    #region 客户资料表操作记录 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    await GeneralMethod.NewClientOperationRecord(dto.PortType,OperationEnum.Details, dto.UserId, dto.Id, ""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    #endregion 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     jw = JsonView(true, "查询成功!", resultData.Data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 else 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -126,6 +134,18 @@ namespace OASystem.API.Controllers 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     return Ok(JsonView(false, result.Msg)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                #region 客户资料操作记录 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                OperationEnum operationEnum = OperationEnum.NoOperation; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (dto.Status == 1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    operationEnum = OperationEnum.Add; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    dto.Id = Convert.ToInt32(result.Data); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                else if (dto.Status == 2) operationEnum = OperationEnum.Edit; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                await GeneralMethod.NewClientOperationRecord(dto.PortType,operationEnum, dto.CreateUserId, dto.Id, ""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                #endregion 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return Ok(JsonView(true, result.Msg)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             catch (Exception) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -148,6 +168,11 @@ namespace OASystem.API.Controllers 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return Ok(JsonView(false, "删除失败")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #region 客户资料表操作记录 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            await GeneralMethod.NewClientOperationRecord(dto.PortType, OperationEnum.Details, dto.DeleteUserId, dto.Id, ""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            #endregion 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return Ok(JsonView(true, "删除成功!")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |