master
xiaochanghai 6 months ago
parent 0c218f1330
commit f8c499024f
  1. 12
      Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeTemplatePreviewController.cs
  2. 19
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs

@ -1,8 +1,6 @@
using Com.Ctrip.Framework.Apollo.Enums; using SqlSugar;
using SqlSugar;
using System.Dynamic; using System.Dynamic;
using Tiobon.Core.Common.DB.Dapper.Extensions; using Tiobon.Core.Common.DB.Dapper.Extensions;
using Tiobon.Core.Common.Extensions;
using Tiobon.Core.Model.ViewModels.Extend; using Tiobon.Core.Model.ViewModels.Extend;
namespace Tiobon.Core.Api.Controllers; namespace Tiobon.Core.Api.Controllers;
@ -431,7 +429,13 @@ END";
var statements = await _ghrh_ResumeStatementServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id);//证件 var statements = await _ghrh_ResumeStatementServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id);//证件
ViewBag.StatementDic = statements.ToDictionary(person => person.StatementCode, person => person.TrueOrFalse); var StatementDic = new Dictionary<string, bool?>();
statements.ForEach(statement =>
{
if (!StatementDic.ContainsKey(statement.StatementCode))
StatementDic.Add(statement.StatementCode, statement.TrueOrFalse);
});
ViewBag.StatementDic = StatementDic;
#endregion #endregion

@ -1,4 +1,5 @@
using Microsoft.AspNetCore.Hosting; using AgileObjects.AgileMapper.Extensions;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Hosting;
using System.IO.Compression; using System.IO.Compression;
@ -853,7 +854,9 @@ ORDER BY A.SortNo ASC";
{ "FileName",await QueryLangValue("Recruit_Resume_From_File_Name",langId,"文件名") }, { "FileName",await QueryLangValue("Recruit_Resume_From_File_Name",langId,"文件名") },
{ "FileSize",await QueryLangValue("Recruit_Resume_From_File_Size",langId,"文件大小") }, { "FileSize",await QueryLangValue("Recruit_Resume_From_File_Size",langId,"文件大小") },
{ "Remark",await QueryLangValue("Recruit_Resume_From_Remark",langId,"备注") }, { "Remark",await QueryLangValue("Recruit_Resume_From_Remark",langId,"备注") },
{ "Option",await QueryLangValue("Recruit_Resume_From_Option",langId,"操作") } { "Option",await QueryLangValue("Recruit_Resume_From_Option",langId,"操作") },
{ "TrueText",await QueryLangValue("Recruit_Resume_From_TrueText",langId,"是") },
{ "FalseText", await QueryLangValue("Recruit_Resume_From_FalseText",langId,"否") }
}; };
return ServiceResult<Dictionary<string, string>>.OprateSuccess("查询成功", dict); return ServiceResult<Dictionary<string, string>>.OprateSuccess("查询成功", dict);
@ -1193,8 +1196,14 @@ END";
Data.Attachment = await Db.Queryable<Ghrs_Attachment>().Where(x => x.TableName == id.ObjToString()).ToListAsync(); Data.Attachment = await Db.Queryable<Ghrs_Attachment>().Where(x => x.TableName == id.ObjToString()).ToListAsync();
var statements = await _ghrh_ResumeStatementServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id);//证件 var statements = await _ghrh_ResumeStatementServices.QueryDto(x => x.ResumeId != null && x.ResumeId == id);//证件
var StatementDic = new Dictionary<string, bool?>();
Data.Statement = statements.ToDictionary(person => person.StatementCode, person => person.TrueOrFalse); statements.ForEach(statement =>
{
if (!StatementDic.ContainsKey(statement.StatementCode))
StatementDic.Add(statement.StatementCode, statement.TrueOrFalse);
});
Data.Statement = StatementDic;
//Data.Statement = statements.ToDictionary(person => person.StatementCode, person => person.TrueOrFalse);
obj.Data = Data; obj.Data = Data;
#endregion #endregion
@ -4807,7 +4816,7 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1
staffId = await Db.Insertable(dict).AS("Ghra_Staff").ExecuteReturnIdentityAsync(); staffId = await Db.Insertable(dict).AS("Ghra_Staff").ExecuteReturnIdentityAsync();
if (staffId > 0) if (staffId > 0)
{ {
string sql = $"update Ghra_Staff set Indate={inTime} where StaffID={staffId} and Indate is null"; string sql = $"update Ghra_Staff set Indate='{inTime}' where StaffID={staffId} and Indate is null";
if (inTime != null) if (inTime != null)
await Db.Ado.ExecuteCommandAsync(sql); await Db.Ado.ExecuteCommandAsync(sql);
if (type != "Fast") if (type != "Fast")

Loading…
Cancel
Save