讲师费用申请新增【对应课程】字段

master
xiaochanghai 1 month ago
parent ff64c3f725
commit e7210e087d
  1. 1
      Tiobon.Core.Model/View/Ghre/Ghre_TrainFeeApplyOrder_Boltone.Dto.View.cs
  2. 20
      Tiobon.Core.Services/Ghre/Ghre_TrainFeeApplyOrder_BoltoneServices.cs

@ -37,5 +37,6 @@ public class Ghre_TrainFeeApplyOrder_BoltoneDto : Ghre_TrainFeeApplyOrder_Bolton
public string DeptName { get; set; }
public string IsApplyFee1 { get; set; }
public string PlanName { get; set; }
}

@ -1,6 +1,4 @@
using Tiobon.Core.IServices;
namespace Tiobon.Core.Services;
namespace Tiobon.Core.Services;
/// <summary>
/// 培训费用_宝连通 (服务)
@ -30,7 +28,6 @@ public class Ghre_TrainFeeApplyOrder_BoltoneServices : BaseServices<Ghre_TrainFe
var staffIds = DT_TableDataT1.Select(x => x.ApplicantId).Distinct().ToList();
staffIds.AddRange(teacherIds);
staffIds = staffIds.Distinct().ToList();
@ -56,6 +53,21 @@ public class Ghre_TrainFeeApplyOrder_BoltoneServices : BaseServices<Ghre_TrainFe
DT_TableDataT1[i].TeacherName = staffs.FirstOrDefault(x => x.StaffID == DT_TableDataT1[i].TeacherId)?.StaffName;
DT_TableDataT1[i].IsApplyFee1 = DT_TableDataT1[i].IsApplyFee == 1 ? "是" : "否";
if (DT_TableDataT1[i].PlanId != null)
{
var commonSql = await Db.Queryable<Ghrs_ListCommonSql>().Where(o => o.ListCommonSqlNo == "TrainingPlan").FirstAsync();
if (commonSql != null)
{
string sql = commonSql.SqlIDToName;
sql = sql.Replace("{@KeyWords}", DT_TableDataT1[i].PlanId.ObjToString());
DT_TableDataT1[i].PlanName = await Db.Ado.GetStringAsync(sql);
}
}
}
return result;

Loading…
Cancel
Save