master
xiaochanghai 6 months ago
parent 7a1d9609bb
commit e49734298d
  1. 4
      Tiobon.Core.Api/Controllers/Ghrh/Ghrh_ResumeTemplatePreviewController.cs
  2. 2
      Tiobon.Core.Services/Ghre/Ghre_CourseServices.cs
  3. 2
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeEduBGServices.cs
  4. 2
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeHomeServices.cs
  5. 2
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeLicenceServices.cs
  6. 6
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs
  7. 2
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeTrainingServices.cs
  8. 2
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeWorkExpServices.cs
  9. 6
      Tiobon.Core.Services/Ghrs/Ghrs_LangKeyServices.cs

@ -304,8 +304,10 @@ END";
var value = entity.GetPropertyValue(x); var value = entity.GetPropertyValue(x);
if (x == "RemarkSz") if (x == "RemarkSz")
{ {
if (value.ToString().IsNotEmptyOrNull()) if (value != null)
{
value = "<div>" + value.ToString().Replace("\n", "</br>") + "</div>"; value = "<div>" + value.ToString().Replace("\n", "</br>") + "</div>";
}
dicts.Add(x, value); dicts.Add(x, value);
} }

@ -876,7 +876,7 @@ public class Ghre_CourseServices : BaseServices<Ghre_Course, Ghre_CourseDto, Ins
inOrOut = items.Where(x => x.ParaDetailName == inOrOut).FirstOrDefault()?.ParaDetailNo ?? "In"; inOrOut = items.Where(x => x.ParaDetailName == inOrOut).FirstOrDefault()?.ParaDetailNo ?? "In";
} }
if (isOPen.IsNullOrEmpty() || isOPen == "否") if (isOPen.IsNullOrEmpty())
isOPen = "是"; isOPen = "是";
List<long?> courseClassId1 = [courseClassId]; List<long?> courseClassId1 = [courseClassId];

@ -177,7 +177,7 @@ public class Ghrh_ResumeEduBGServices : BaseServices<Ghrh_ResumeEduBG, Ghrh_Resu
isExistError = true; isExistError = true;
continue; continue;
} }
if (column.DataSourceType.IsNullOrEmpty()) if (column.DataSourceType.IsNullOrEmpty() && value.IsNotEmptyOrNull())
{ {
if (column.DataType == "int" || column.DataType == "decimal") if (column.DataType == "int" || column.DataType == "decimal")
{ {

@ -171,7 +171,7 @@ public class Ghrh_ResumeHomeServices : BaseServices<Ghrh_ResumeHome, Ghrh_Resume
isExistError = true; isExistError = true;
continue; continue;
} }
if (column.DataSourceType.IsNullOrEmpty()) if (column.DataSourceType.IsNullOrEmpty() && value.IsNotEmptyOrNull())
{ {
if (column.DataType == "int" || column.DataType == "decimal") if (column.DataType == "int" || column.DataType == "decimal")
{ {

@ -167,7 +167,7 @@ public class Ghrh_ResumeLicenceServices : BaseServices<Ghrh_ResumeLicence, Ghrh_
isExistError = true; isExistError = true;
continue; continue;
} }
if (column.DataSourceType.IsNullOrEmpty()) if (column.DataSourceType.IsNullOrEmpty() && value.IsNotEmptyOrNull())
{ {
if (column.DataType == "int" || column.DataType == "decimal") if (column.DataType == "int" || column.DataType == "decimal")
{ {

@ -872,7 +872,7 @@ ORDER BY A.SortNo ASC";
var entity = await QueryById(id); var entity = await QueryById(id);
string statementRemark = string.Empty; string statementRemark = string.Empty;
#region Column #region Column
string sql = @"DECLARE @ID BIGINT = 1 string sql = @$"DECLARE @ID BIGINT = 1
BEGIN BEGIN
DECLARE DECLARE
@ -889,7 +889,7 @@ BEGIN
FROM (SELECT a.ID, FROM (SELECT a.ID,
a.ID ResumeTemplateInfoGroupID, a.ID ResumeTemplateInfoGroupID,
b.ID ResumeInfoGroupID, b.ID ResumeInfoGroupID,
[dbo].[FLangKeyToValue](b.MKey,3,b.GroupName) tabName, [dbo].[FLangKeyToValue](b.MKey,{langId},b.GroupName) tabName,
b.GroupType tabKey, b.GroupType tabKey,
b.TableName, b.TableName,
b.TablePKIDName, -- b.TablePKIDName, --
@ -4120,7 +4120,7 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1
isExistError = true; isExistError = true;
continue; continue;
} }
if (column.DataSourceType.IsNullOrEmpty()) if (column.DataSourceType.IsNullOrEmpty() && value.IsNotEmptyOrNull())
{ {
if (column.DataType == "int" || column.DataType == "decimal") if (column.DataType == "int" || column.DataType == "decimal")
{ {

@ -170,7 +170,7 @@ public class Ghrh_ResumeTrainingServices : BaseServices<Ghrh_ResumeTraining, Ghr
isExistError = true; isExistError = true;
continue; continue;
} }
if (column.DataType.IsNullOrEmpty()) if (column.DataSourceType.IsNullOrEmpty() && value.IsNotEmptyOrNull())
{ {
if (column.DataType == "int" || column.DataType == "decimal") if (column.DataType == "int" || column.DataType == "decimal")
{ {

@ -169,7 +169,7 @@ public class Ghrh_ResumeWorkExpServices : BaseServices<Ghrh_ResumeWorkExp, Ghrh_
isExistError = true; isExistError = true;
continue; continue;
} }
if (column.DataSourceType.IsNullOrEmpty()) if (column.DataSourceType.IsNullOrEmpty() && value.IsNotEmptyOrNull())
{ {
if (column.DataType == "int" || column.DataType == "decimal") if (column.DataType == "int" || column.DataType == "decimal")
{ {

@ -1,6 +1,4 @@
using Microsoft.Extensions.Logging.Abstractions; namespace Tiobon.Core.Services;
namespace Tiobon.Core.Services;
/// <summary> /// <summary>
/// Ghrs_LangKey (服务) /// Ghrs_LangKey (服务)
@ -19,7 +17,7 @@ public class Ghrs_LangKeyServices : BaseServices<Ghrs_LangKey, Ghrs_LangKeyDto,
{ {
var entity =await base.QuerySingle(9801); var entity =await base.QuerySingle(9801);
for (int i = 100; i < 146; i++) for (int i = 146; i < 201; i++)
{ {
entity.CreateTime = DateTime.Now; entity.CreateTime = DateTime.Now;
entity.UpdateTime = null; entity.UpdateTime = null;

Loading…
Cancel
Save