Parcourir la source

完善部分细节

yuanrf il y a 1 an
Parent
commit
b187023eb4

+ 3 - 0
OASystem/OASystem.Api/Controllers/MarketCustomerResourcesController.cs

@@ -6,6 +6,9 @@ using static OASystem.Domain.Dtos.CRM.NewClientDataQueryDto;
 
 namespace OASystem.API.Controllers
 {
+    /// <summary>
+    /// 市场客户资料
+    /// </summary>
     [Route("api/[controller]/[action]")]
     public class MarketCustomerResourcesController : ControllerBase
     {

+ 4 - 0
OASystem/OASystem.Infrastructure/Repositories/CRM/NewClientDataRepository.cs

@@ -406,6 +406,10 @@ namespace OASystem.Infrastructure.Repositories.CRM
                     var NewClientData = await _sqlSugar.SqlQueryable<Crm_NewClientData>(selectSql).FirstAsync();//查询是否存在
                     if (NewClientData == null)
                     {
+                        if (string.IsNullOrWhiteSpace(dto.PassportDate))
+                        {
+                            dto.PassportDate = null;
+                        }
                         Crm_NewClientData _NewClientData = _mapper.Map<Crm_NewClientData>(dto);
                         int id = await AddAsyncReturnId(_NewClientData); //添加市场客户资料表数据