新增查询招聘公司配置信息接口

master
xiaochanghai 8 months ago
parent 51671221a1
commit 9bccc2c0c2
  1. 15
      Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeController.cs
  2. 6
      Tiobon.Core.Api/Tiobon.Core.xml
  3. 689
      Tiobon.Core.Api/appsettings.json
  4. 2
      Tiobon.Core.IServices/Ghrh/IGhrh_ResumeServices.cs
  5. 75
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs
  6. 6
      Tiobon.Core/Tiobon.Core.xml

@ -134,11 +134,24 @@ public class Ghrh_ResumeController : BaseController<IGhrh_ResumeServices, Ghrh_R
/// 查询简历是否存在 /// 查询简历是否存在
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[HttpPost("CheckIsExist")] [HttpPost("CheckIsExist"), AllowAnonymous]
public async Task<ServiceResult<long>> CheckIsExist([FromBody] InsertGhrh_ResumeInput input) public async Task<ServiceResult<long>> CheckIsExist([FromBody] InsertGhrh_ResumeInput input)
{ {
return await _service.CheckIsExist(input); return await _service.CheckIsExist(input);
} }
#endregion #endregion
#region 查询公司配置信息
/// <summary>
/// 查询简历是否存在
/// </summary>
/// <returns></returns>
[HttpPost("QueryCompanyInfo/{companySpecCode}"), AllowAnonymous]
public async Task<ServiceResult<Dictionary<string, string>>> QueryCompanyInfo(string companySpecCode)
{
return await _service.QueryCompanyInfo(companySpecCode);
}
#endregion
} }

@ -1211,6 +1211,12 @@
</summary> </summary>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:Tiobon.Core.Api.Controllers.Ghrh_ResumeController.QueryCompanyInfo(System.String)">
<summary>
查询简历是否存在
</summary>
<returns></returns>
</member>
<member name="T:Tiobon.Core.Api.Controllers.Ghrh_ResumeEduBGController"> <member name="T:Tiobon.Core.Api.Controllers.Ghrh_ResumeEduBGController">
<summary> <summary>
教育背景(Controller) 教育背景(Controller)

@ -1,99 +1,99 @@
{ {
"urls": "http://*:9292", //webIIS "urls": "http://*:9292", //webIIS
"Serilog": { "Serilog": {
"MinimumLevel": { "MinimumLevel": {
"Default": "Debug", "Default": "Debug",
"Override": { "Override": {
"Microsoft": "Information", "Microsoft": "Information",
"Microsoft.AspNetCore": "Warning", "Microsoft.AspNetCore": "Warning",
"System": "Warning", "System": "Warning",
"System.Net.Http.HttpClient": "Warning", "System.Net.Http.HttpClient": "Warning",
"Hangfire": "Information", "Hangfire": "Information",
"Magicodes": "Warning", "Magicodes": "Warning",
"DotNetCore.CAP": "Information", "DotNetCore.CAP": "Information",
"Savorboard.CAP": "Information", "Savorboard.CAP": "Information",
"Quartz": "Information" "Quartz": "Information"
} }
} }
}, },
"AllowedHosts": "*", "AllowedHosts": "*",
"Redis": { "Redis": {
"Enable": false, "Enable": false,
"ConnectionString": "127.0.0.1:6379", "ConnectionString": "127.0.0.1:6379",
"InstanceName": "" // "InstanceName": "" //
},
"RabbitMQ": {
"Enabled": true,
"Connection": "101xxxx57",
"UserName": "xxxx",
"Password": "xxxxx",
"Port": "5672",
"RetryCount": 2
},
"Kafka": {
"Enabled": false,
"Servers": "localhost:9092",
"Topic": "Tiobon",
"GroupId": "Tiobon-consumer",
"NumPartitions": 3 //
},
"EventBus": {
"Enabled": false,
"SubscriptionClientName": "Tiobon.Core"
},
"AppSettings": {
"CachingAOP": {
"Enabled": true
}, },
"RabbitMQ": { "LogToDb": true,
"Enabled": true, "LogAOP": {
"Connection": "101xxxx57", "Enabled": false,
"UserName": "xxxx", "LogToFile": {
"Password": "xxxxx", "Enabled": true
"Port": "5672", },
"RetryCount": 2 "LogToDB": {
"Enabled": true
}
}, },
"Kafka": { "TranAOP": {
"Enabled": false, "Enabled": true
"Servers": "localhost:9092",
"Topic": "Tiobon",
"GroupId": "Tiobon-consumer",
"NumPartitions": 3 //
}, },
"EventBus": { "UserAuditAOP": {
"Enabled": false, "Enabled": false
"SubscriptionClientName": "Tiobon.Core"
}, },
"AppSettings": { "SqlAOP": {
"CachingAOP": { "Enabled": true,
"Enabled": true "LogToFile": {
}, "Enabled": true
"LogToDb": true, },
"LogAOP": { "LogToDB": {
"Enabled": false, "Enabled": true
"LogToFile": { },
"Enabled": true "LogToConsole": {
}, "Enabled": true
"LogToDB": { }
"Enabled": true
}
},
"TranAOP": {
"Enabled": true
},
"UserAuditAOP": {
"Enabled": false
},
"SqlAOP": {
"Enabled": true,
"LogToFile": {
"Enabled": true
},
"LogToDB": {
"Enabled": true
},
"LogToConsole": {
"Enabled": true
}
},
"Date": "2018-08-28",
"SeedDBEnabled": false, //
"SeedDBDataEnabled": false, //,
"Author": "Tiobon.Core",
"SvcName": "", // /svc/Tiobon
"UseLoadTest": false
}, },
"Date": "2018-08-28",
"SeedDBEnabled": false, //
"SeedDBDataEnabled": false, //,
"Author": "Tiobon.Core",
"SvcName": "", // /svc/Tiobon
"UseLoadTest": false
},
//DB //DB
//MainDbEnabledtrue //MainDbEnabledtrue
//Log:Enabledtrue //Log:Enabledtrue
//Slaves,!SqlServer //Slaves,!SqlServer
// //
//, //,
//,(+) //,(+)
//ConnIdConnId+,ConnIdMain,ConnIdMian1 //ConnIdConnId+,ConnIdMain,ConnIdMian1
//! //!
//, //,
"MainDB": "WMTiobon_MSSQL_Main", //Enabledtrue "MainDB": "WMTiobon_MSSQL_Main", //Enabledtrue
"DBS": [ "DBS": [
/* /*
DBType DBType
MySql = 0, MySql = 0,
SqlServer = 1, SqlServer = 1,
@ -103,270 +103,275 @@
Dm = 5,// Dm = 5,//
Kdbndp = 6,// Kdbndp = 6,//
*/ */
{
"ConnId": "WMTiobon_MSSQL_Main",
"DBType": 1,
"Enabled": true,
"Connection": "Data Source=47.99.54.186;User ID=GHR;Password=Tiobon20190101;Database=GHR30;Encrypt=True;TrustServerCertificate=True;",
//"Connection": "Data Source=116.204.98.209;User ID=Tiobon;Password=&($!4UGUyU#$2sp9O;Database=Tiobon;Encrypt=True;TrustServerCertificate=True;",
"ProviderName": "System.Data.SqlClient"
},
{
"ConnId": "Main",
"DBType": 2,
"Enabled": false,
"Connection": "WMTiobon.db", //sqlite
"Slaves": [
{ {
"ConnId": "WMTiobon_MSSQL_Main", "HitRate": 0, // 0使
"DBType": 1, "Connection": "WMTiobon2.db"
"Enabled": true, }
"Connection": "Data Source=47.99.54.186;User ID=GHR;Password=Tiobon20190101;Database=GHR30;Encrypt=True;TrustServerCertificate=True;", ]
//"Connection": "Data Source=116.204.98.209;User ID=Tiobon;Password=&($!4UGUyU#$2sp9O;Database=Tiobon;Encrypt=True;TrustServerCertificate=True;", },
"ProviderName": "System.Data.SqlClient" {
}, "ConnId": "Main2",
{ "DBType": 2,
"ConnId": "Main", "Enabled": false,
"DBType": 2, "Connection": "WMTiobon3.db", //sqlite
"Enabled": false, "Slaves": [
"Connection": "WMTiobon.db", //sqlite
"Slaves": [
{
"HitRate": 0, // 0使
"Connection": "WMTiobon2.db"
}
]
},
{
"ConnId": "Main2",
"DBType": 2,
"Enabled": false,
"Connection": "WMTiobon3.db", //sqlite
"Slaves": [
{
"HitRate": 0, // 0使
"Connection": "WMTiobon4.db"
}
]
},
{
"ConnId": "Log", //,
"DBType": 1,
"Enabled": true,
"HitRate": 50,
"Connection": "Data Source=47.99.54.186;User ID=GHR;Password=Tiobon20190101;Database=GHR30;Encrypt=True;TrustServerCertificate=True;",
"ProviderName": "System.Data.SqlClient"
},
{
"ConnId": "WMTiobon_MSSQL_1",
"DBType": 1,
"Enabled": false,
"Connection": "Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=WMTiobon_MSSQL_1;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False",
"ProviderName": "System.Data.SqlClient"
},
{
"ConnId": "WMTiobon_MSSQL_2",
"DBType": 1,
"Enabled": false,
"Connection": "Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=WMTiobon_MSSQL_2;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False",
"ProviderName": "System.Data.SqlClient"
},
{
"ConnId": "WMTiobon_MYSQL",
"DBType": 0,
"Enabled": false,
"Connection": "server=localhost;Database=Tiobon;Uid=root;Pwd=root;Port=3306;Allow User Variables=True;"
},
{
"ConnId": "WMTiobon_MYSQL_2",
"DBType": 0,
"Enabled": false,
"Connection": "server=localhost;Database=Tioboncore001;Uid=root;Pwd=root;Port=3306;Allow User Variables=True;"
},
{
"ConnId": "WMTiobon_ORACLE",
"DBType": 3,
"Enabled": false,
"Connection": "Data Source=127.0.0.1/ops;User ID=OPS;Password=123456;Persist Security Info=True;Connection Timeout=60;"
},
{
"ConnId": "WMTiobon_DM",
"DBType": 5,
"Enabled": false,
"Connection": "Server=xxxxx:5236;User Id=xxxxx;PWD=xxxxx;SCHEMA=TESTDBA;"
},
{ {
"ConnId": "WMTiobon_KDBNDP", "HitRate": 0, // 0使
"DBType": 6, "Connection": "WMTiobon4.db"
"Enabled": false,
"Connection": "Server=127.0.0.1;Port=54321;UID=SYSTEM;PWD=system;database=SQLSUGAR4XTEST1;"
} }
], ]
"Audience": {
"Secret": "sdfsdfsrty45634kkhllghtdgdfss345t678fs", //16+
"SecretFile": "C:\\my-file\\Tiobon.core.audience.secret.txt", //Secret
"Issuer": "Tiobon.Core", //
"Audience": "wr", //
"ExpirationHour": 72 //
}, },
"Mongo": { {
"ConnectionString": "mongodb://nosql.data", "ConnId": "Log", //,
"Database": "TiobonCoreDb" "DBType": 1,
"Enabled": true,
"HitRate": 50,
"Connection": "Data Source=47.99.54.186;User ID=GHR;Password=Tiobon20190101;Database=GHR30;Encrypt=True;TrustServerCertificate=True;",
"ProviderName": "System.Data.SqlClient"
}, },
"Startup": { {
"Domain": "http://localhost:9291", "ConnId": "WMTiobon_MSSQL_1",
"Cors": { "DBType": 1,
"PolicyName": "CorsIpAccess", // "Enabled": false,
"EnableAllIPs": false, //trueIP访 "Connection": "Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=WMTiobon_MSSQL_1;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False",
// /localhost:8000/ "ProviderName": "System.Data.SqlClient"
// http://127.0.0.1:1818 http://localhost:1818
"IPs": "http://127.0.0.1:2364,http://localhost:2364,http://127.0.0.1:6688,http://localhost:6688"
},
"AppConfigAlert": {
"Enabled": true
},
"IdentityServer4": {
"Enabled": false, // false使jwttrue使Ids4
"AuthorizationUrl": "http://localhost:5004", //
"ApiName": "Tiobon.core.api" //
},
"Authing": {
"Enabled": false,
"Issuer": "https://uldr24esx31h-demo.authing.cn/oidc",
"Audience": "63d51c4205c2849803be5178",
"JwksUri": "https://uldr24esx31h-demo.authing.cn/oidc/.well-known/jwks.json"
},
"RedisMq": {
"Enabled": false //redis
},
"MiniProfiler": {
"Enabled": false //
},
"Nacos": {
"Enabled": false //Nacos
}
}, },
"Middleware": { {
"RequestResponseLog": { "ConnId": "WMTiobon_MSSQL_2",
"Enabled": true, "DBType": 1,
"LogToFile": { "Enabled": false,
"Enabled": true "Connection": "Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=WMTiobon_MSSQL_2;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False",
}, "ProviderName": "System.Data.SqlClient"
"LogToDB": {
"Enabled": true
}
},
"IPLog": {
"Enabled": true,
"LogToFile": {
"Enabled": true
},
"LogToDB": {
"Enabled": true
}
},
"RecordAccessLogs": {
"Enabled": true,
"LogToFile": {
"Enabled": true
},
"LogToDB": {
"Enabled": true
},
"IgnoreApis": "/api/permission/getnavigationbar,/api/monitor/getids4users,/api/monitor/getaccesslogs,/api/monitor/server,/api/monitor/getactiveusers,/api/monitor/server,"
},
"SignalR": {
"Enabled": false
},
"SignalRSendLog": {
"Enabled": false
},
"QuartzNetJob": {
"Enabled": true
},
"Consul": {
"Enabled": false
},
"IpRateLimit": {
"Enabled": false
},
"EncryptionResponse": {
"Enabled": true,
"AllApis": false,
"LimitApis": [
"/api/Login/GetJwtTokenSecret"
]
},
"EncryptionRequest": {
"Enabled": true,
"AllApis": false,
"LimitApis": [
"/api/Login/GetJwtTokenSecret"
]
}
}, },
"IpRateLimiting": { {
"EnableEndpointRateLimiting": false, //False: globally executed, true: executed for each "ConnId": "WMTiobon_MYSQL",
"StackBlockedRequests": false, //False: Number of rejections should be recorded on another counter "DBType": 0,
"RealIpHeader": "X-Real-IP", "Enabled": false,
"ClientIdHeader": "X-ClientId", "Connection": "server=localhost;Database=Tiobon;Uid=root;Pwd=root;Port=3306;Allow User Variables=True;"
"IpWhitelist": [], //
"EndpointWhitelist": [ "get:/api/xxx", "*:/api/yyy" ],
"ClientWhitelist": [ "dev-client-1", "dev-client-2" ],
"QuotaExceededResponse": {
"Content": "{{\"status\":429,\"msg\":\"访问过于频繁,请稍后重试\",\"success\":false}}",
"ContentType": "application/json",
"StatusCode": 429
},
"HttpStatusCode": 429, //
"GeneralRules": [ //api,*
{
"Endpoint": "*:/api/Tiobon*",
"Period": "1m",
"Limit": 20
},
{
"Endpoint": "*/api/*",
"Period": "1s",
"Limit": 3
},
{
"Endpoint": "*/api/*",
"Period": "1m",
"Limit": 30
},
{
"Endpoint": "*/api/*",
"Period": "12h",
"Limit": 500
}
]
}, },
"ConsulSetting": { {
"ServiceName": "TiobonCoreService", "ConnId": "WMTiobon_MYSQL_2",
"ServiceIP": "localhost", "DBType": 0,
"ServicePort": "9291", "Enabled": false,
"ServiceHealthCheck": "/healthcheck", "Connection": "server=localhost;Database=Tioboncore001;Uid=root;Pwd=root;Port=3306;Allow User Variables=True;"
"ConsulAddress": "http://localhost:8500"
}, },
"PayInfo": { // {
"MERCHANTID": "", // "ConnId": "WMTiobon_ORACLE",
"POSID": "", // "DBType": 3,
"BRANCHID": "", // "Enabled": false,
"pubKey": "", // "Connection": "Data Source=127.0.0.1/ops;User ID=OPS;Password=123456;Persist Security Info=True;Connection Timeout=60;"
"USER_ID": "", //
"PASSWORD": "", //
"OutAddress": "http://127.0.0.1:12345" //
}, },
"nacos": { {
"ServerAddresses": [ "http://localhost:8848" ], // nacos "ConnId": "WMTiobon_DM",
"DefaultTimeOut": 15000, // "DBType": 5,
"Namespace": "public", // "Enabled": false,
"ListenInterval": 10000, // "Connection": "Server=xxxxx:5236;User Id=xxxxx;PWD=xxxxx;SCHEMA=TESTDBA;"
"ServiceName": "Tiobon.Core.Api", //
"Port": "9291", //
"RegisterEnabled": true // nacos
}, },
"LogFiedOutPutConfigs": { {
"tcpAddressHost": "", // elktcp "ConnId": "WMTiobon_KDBNDP",
"tcpAddressPort": 0, // elktcp "DBType": 6,
"ConfigsInfo": [ // elk "Enabled": false,
{ "Connection": "Server=127.0.0.1;Port=54321;UID=SYSTEM;PWD=system;database=SQLSUGAR4XTEST1;"
"FiedName": "applicationName", }
"FiedValue": "Tiobon.Core.Api" ],
} "Audience": {
] "Secret": "sdfsdfsrty45634kkhllghtdgdfss345t678fs", //16+
"SecretFile": "C:\\my-file\\Tiobon.core.audience.secret.txt", //Secret
"Issuer": "Tiobon.Core", //
"Audience": "wr", //
"ExpirationHour": 72 //
},
"Mongo": {
"ConnectionString": "mongodb://nosql.data",
"Database": "TiobonCoreDb"
},
"Startup": {
"Domain": "http://localhost:9291",
"Cors": {
"PolicyName": "CorsIpAccess", //
"EnableAllIPs": false, //trueIP访
// /localhost:8000/
// http://127.0.0.1:1818 http://localhost:1818
"IPs": "http://127.0.0.1:2364,http://localhost:2364,http://127.0.0.1:6688,http://localhost:6688"
},
"AppConfigAlert": {
"Enabled": true
},
"IdentityServer4": {
"Enabled": false, // false使jwttrue使Ids4
"AuthorizationUrl": "http://localhost:5004", //
"ApiName": "Tiobon.core.api" //
},
"Authing": {
"Enabled": false,
"Issuer": "https://uldr24esx31h-demo.authing.cn/oidc",
"Audience": "63d51c4205c2849803be5178",
"JwksUri": "https://uldr24esx31h-demo.authing.cn/oidc/.well-known/jwks.json"
},
"RedisMq": {
"Enabled": false //redis
},
"MiniProfiler": {
"Enabled": false //
},
"Nacos": {
"Enabled": false //Nacos
}
},
"Middleware": {
"RequestResponseLog": {
"Enabled": true,
"LogToFile": {
"Enabled": true
},
"LogToDB": {
"Enabled": true
}
},
"IPLog": {
"Enabled": true,
"LogToFile": {
"Enabled": true
},
"LogToDB": {
"Enabled": true
}
}, },
"Seq": { "RecordAccessLogs": {
"Enabled": true, "Enabled": true,
"Address": "http://localhost:5341/", "LogToFile": {
"ApiKey": "" "Enabled": true
},
"LogToDB": {
"Enabled": true
},
"IgnoreApis": "/api/permission/getnavigationbar,/api/monitor/getids4users,/api/monitor/getaccesslogs,/api/monitor/server,/api/monitor/getactiveusers,/api/monitor/server,"
},
"SignalR": {
"Enabled": false
},
"SignalRSendLog": {
"Enabled": false
},
"QuartzNetJob": {
"Enabled": true
},
"Consul": {
"Enabled": false
},
"IpRateLimit": {
"Enabled": false
},
"EncryptionResponse": {
"Enabled": true,
"AllApis": false,
"LimitApis": [
"/api/Login/GetJwtTokenSecret"
]
},
"EncryptionRequest": {
"Enabled": true,
"AllApis": false,
"LimitApis": [
"/api/Login/GetJwtTokenSecret"
]
} }
},
"IpRateLimiting": {
"EnableEndpointRateLimiting": false, //False: globally executed, true: executed for each
"StackBlockedRequests": false, //False: Number of rejections should be recorded on another counter
"RealIpHeader": "X-Real-IP",
"ClientIdHeader": "X-ClientId",
"IpWhitelist": [], //
"EndpointWhitelist": [ "get:/api/xxx", "*:/api/yyy" ],
"ClientWhitelist": [ "dev-client-1", "dev-client-2" ],
"QuotaExceededResponse": {
"Content": "{{\"status\":429,\"msg\":\"访问过于频繁,请稍后重试\",\"success\":false}}",
"ContentType": "application/json",
"StatusCode": 429
},
"HttpStatusCode": 429, //
"GeneralRules": [ //api,*
{
"Endpoint": "*:/api/Tiobon*",
"Period": "1m",
"Limit": 20
},
{
"Endpoint": "*/api/*",
"Period": "1s",
"Limit": 3
},
{
"Endpoint": "*/api/*",
"Period": "1m",
"Limit": 30
},
{
"Endpoint": "*/api/*",
"Period": "12h",
"Limit": 500
}
]
},
"ConsulSetting": {
"ServiceName": "TiobonCoreService",
"ServiceIP": "localhost",
"ServicePort": "9291",
"ServiceHealthCheck": "/healthcheck",
"ConsulAddress": "http://localhost:8500"
},
"PayInfo": { //
"MERCHANTID": "", //
"POSID": "", //
"BRANCHID": "", //
"pubKey": "", //
"USER_ID": "", //
"PASSWORD": "", //
"OutAddress": "http://127.0.0.1:12345" //
},
"nacos": {
"ServerAddresses": [ "http://localhost:8848" ], // nacos
"DefaultTimeOut": 15000, //
"Namespace": "public", //
"ListenInterval": 10000, //
"ServiceName": "Tiobon.Core.Api", //
"Port": "9291", //
"RegisterEnabled": true // nacos
},
"LogFiedOutPutConfigs": {
"tcpAddressHost": "", // elktcp
"tcpAddressPort": 0, // elktcp
"ConfigsInfo": [ // elk
{
"FiedName": "applicationName",
"FiedValue": "Tiobon.Core.Api"
}
]
},
"Seq": {
"Enabled": true,
"Address": "http://localhost:5341/",
"ApiKey": ""
},
"Resume": {
"CompanyName": "乔邦科技",
"LoginDesc": "应聘人员简历登记表",
"LoginTitle": "欢迎访问"
}
} }

@ -21,5 +21,7 @@ namespace Tiobon.Core.IServices
Task<bool> MarkTags(List<long> ids, List<long> tags); Task<bool> MarkTags(List<long> ids, List<long> tags);
Task<ServiceResult<long>> CheckIsExist(InsertGhrh_ResumeInput input); Task<ServiceResult<long>> CheckIsExist(InsertGhrh_ResumeInput input);
Task<ServiceResult<Dictionary<string, string>>> QueryCompanyInfo(string companySpecCode);
} }
} }

@ -2,6 +2,7 @@
using AgileObjects.AgileMapper; using AgileObjects.AgileMapper;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
using SqlSugar; using SqlSugar;
using System.Collections.Generic;
using System.Linq.Expressions; using System.Linq.Expressions;
using Tiobon.Core.Common; using Tiobon.Core.Common;
using Tiobon.Core.Common.Caches; using Tiobon.Core.Common.Caches;
@ -201,6 +202,59 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins
} }
public override async Task<Ghrh_ResumeDto> QueryById(object objId)
{
var result = await base.QueryById(objId);
List<Ghrh_ResumeDto> list = [result];
var ids = list.Select(x => x.Id).ToList();
var titleIds = list.Where(x => x.TitleId != null).Select(x => x.TitleId.Value).Distinct().ToList();
var titles = await Db.Queryable<Ghra_Title>().Where(x => x.TitleID != null && titleIds.Contains(x.TitleID.Value)).ToListAsync();
var eduBGs = await _ghre_ResumeEduBGServices.QueryDto(x => x.ResumeId != null && ids.Contains(x.ResumeId.Value));
var workExps = await _ghre_ResumeWorkExpServices.QueryDto(x => x.ResumeId != null && ids.Contains(x.ResumeId.Value));
eduBGs.ForEach(async x =>
{
x.DegreeLevelLabel = await GetParaLabel("EducationalBGLevel", x.DegreeLevel);
x.BeginDate1 = DateTimeHelper.ConvertToDayString(x.BeginDate);
x.EndDate1 = DateTimeHelper.ConvertToDayString(x.EndDate);
});
workExps.ForEach(x =>
{
x.BeginDate1 = DateTimeHelper.ConvertToDayString(x.BeginDate);
x.EndDate1 = DateTimeHelper.ConvertToDayString(x.EndDate);
});
var tagIds = new List<long>();
list.ForEach(x =>
{
if (x.Tags.IsNotEmptyOrNull())
tagIds.AddRange(JsonHelper.JsonToObj<List<long>>(x.Tags));
});
tagIds = tagIds.Distinct().ToList();
var tags = await _ghre_ResumeTagServices.QueryDto(x => tagIds.Contains(x.Id));
list.ForEach(async x =>
{
if (x.TitleId != null) x.TitleName = titles.Where(o => o.TitleID == x.TitleId).FirstOrDefault()?.TitleName;
x.GenderLabel = await GetParaLabel("Gender", x.Gender);
x.EducationLabel = await GetParaLabel("EducationalBGLevel", x.Education);
x.NationLabel = await GetParaLabel("A02", x.Nation);
x.MaritalStatusLabel = await GetParaLabel("A03", x.MaritalStatus);
x.PoliticStatusLabel = await GetParaLabel("A04", x.PoliticStatus);
x.UrgentRelationLabel = await GetParaLabel("SocialRelationType", x.UrgentRelation);
x.EduBG = eduBGs.Where(o => x.Id == o.ResumeId).ToList();
x.WorkExp = workExps.Where(o => x.Id == o.ResumeId).ToList();
if (x.Tags.IsNotEmptyOrNull())
{
var tagIds1 = JsonHelper.JsonToObj<List<long>>(x.Tags);
x.TagList = tags.Where(o => tagIds1.Contains(o.Id)).Select(o => o.TagName).ToList();
}
});
return list[0];
}
#region 获取简历Tabs接口 #region 获取简历Tabs接口
public ServiceResult<List<ResumeViewTab>> QueryViewTab() public ServiceResult<List<ResumeViewTab>> QueryViewTab()
{ {
@ -311,4 +365,25 @@ public class Ghrh_ResumeServices : BaseServices<Ghrh_Resume, Ghrh_ResumeDto, Ins
} }
#endregion #endregion
#region 查询简历公司新增
public async Task<ServiceResult<Dictionary<string, string>>> QueryCompanyInfo(string companySpecCode)
{
var url = await Db.Ado.GetStringAsync("SELECT LogoUrl FROM Ghrs_LoginPageSetting");
Dictionary<string, string> dict = new Dictionary<string, string>()
{
{ "CompanyName", AppSettings.app(new string[] { "Resume", "CompanyName" }) },
{ "LoginDesc", AppSettings.app(new string[] { "Resume", "LoginDesc" }) },
{ "LoginTitle", AppSettings.app(new string[] { "Resume", "LoginTitle" }) },
{ "StaffName", "姓名" },
{ "Mobile", "手机号" },
{ "IdCardNo", "身份证后六位" },
{ "AgainLoginText", "二次登录" },
{ "LoginBtnText", "登录" },
{ "LogoUrl", url }
};
return ServiceResult<Dictionary<string, string>>.OprateSuccess("查询成功", dict);
}
#endregion
} }

@ -1211,6 +1211,12 @@
</summary> </summary>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:Tiobon.Core.Api.Controllers.Ghrh_ResumeController.QueryCompanyInfo(System.String)">
<summary>
查询简历是否存在
</summary>
<returns></returns>
</member>
<member name="T:Tiobon.Core.Api.Controllers.Ghrh_ResumeEduBGController"> <member name="T:Tiobon.Core.Api.Controllers.Ghrh_ResumeEduBGController">
<summary> <summary>
教育背景(Controller) 教育背景(Controller)

Loading…
Cancel
Save