add:获取服务商code根据客户id
This commit is contained in:
parent
576b379dde
commit
ed9730ed55
@ -135,6 +135,18 @@ public class TrackPushService : ApplicationService
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取服务商code根据客户id
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="customerId"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpGet("GetServiceCodeByCustomerId")]
|
||||||
|
public async Task<string?> GetServiceCodeByCustomerId(int customerId)
|
||||||
|
{
|
||||||
|
return await _trackPushConfigRepository.GetServiceCodeByCustomerIdAsync(customerId);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 轨迹推送配置内容编辑
|
/// 轨迹推送配置内容编辑
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -38,4 +38,5 @@ public interface ITrackPushConfigRepository : IBasicRepository<TrackPushConfigEn
|
|||||||
|
|
||||||
Task<List<QueryTrackPullMappingsInfoVO>> QueryTrackPullMappingsAsync(QueryTrackPullMappingsInputVO input);
|
Task<List<QueryTrackPullMappingsInfoVO>> QueryTrackPullMappingsAsync(QueryTrackPullMappingsInputVO input);
|
||||||
Task<List<GetTrackPushContentListVo>> GetTrackPushContentListAsync(int subSystemId, int customerId);
|
Task<List<GetTrackPushContentListVo>> GetTrackPushContentListAsync(int subSystemId, int customerId);
|
||||||
|
Task<string?> GetServiceCodeByCustomerIdAsync(int customerId);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
namespace SJZY.Track.Domain.VEntities;
|
namespace SJZY.Track.Domain.VEntities;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 外部主体
|
/// 外部主体
|
||||||
@ -125,4 +125,10 @@ public class VExternalSubjectEntity : IFullAuditedBasicEntitys
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarColumn(ColumnName = "VerifiedName")]
|
[SugarColumn(ColumnName = "VerifiedName")]
|
||||||
public string VerifiedName { get; set; }
|
public string VerifiedName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// api服务商代码
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "ApiServiceCode")]
|
||||||
|
public string ApiServiceCode { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@ -217,4 +217,12 @@ public class TrackPushConfigRepository : BasicRepository<TrackPushConfigEntity>,
|
|||||||
})
|
})
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async Task<string?> GetServiceCodeByCustomerIdAsync(int customerId)
|
||||||
|
{
|
||||||
|
return await Context.Queryable<VExternalSubjectEntity>()
|
||||||
|
.Where(x => x.Id == customerId)
|
||||||
|
.Select(x => x.ApiServiceCode)
|
||||||
|
.FirstAsync();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user