|
|
|
@ -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; |
|
|
|
|