Commit aa062c2e authored by 黄奎's avatar 黄奎

页面修改

parent 23dbc4bf
...@@ -832,8 +832,8 @@ namespace Edu.Module.Course ...@@ -832,8 +832,8 @@ namespace Edu.Module.Course
/// 退课一键制单 /// 退课一键制单
/// </summary> /// </summary>
/// <param name="backClassId"></param> /// <param name="backClassId"></param>
/// <param name="isPublic"></param> /// <param name="IsPublic"></param>
/// <param name="currencyId"></param> /// <param name="CurrencyId"></param>
/// <param name="clientType"></param> /// <param name="clientType"></param>
/// <param name="clientId"></param> /// <param name="clientId"></param>
/// <param name="userInfo"></param> /// <param name="userInfo"></param>
...@@ -860,7 +860,7 @@ namespace Edu.Module.Course ...@@ -860,7 +860,7 @@ namespace Edu.Module.Course
} }
}; };
var classModel = classRepository.GetEntity(backModel.ClassId); var classModel = classRepository.GetEntity(backModel.ClassId);
string Remark = "【" + (classModel?.ClassName ?? "") + "】下订单" + backModel.OrderId + " 客人退课"; string Remark = "【" + (classModel?.ClassName ?? "") + "】下,订单" + backModel.OrderId + " 客人退课";
var financeObj = new var financeObj = new
{ {
IsPublic, IsPublic,
...@@ -903,16 +903,7 @@ namespace Edu.Module.Course ...@@ -903,16 +903,7 @@ namespace Edu.Module.Course
Dictionary<string, object> keyValues = new Dictionary<string, object>() { Dictionary<string, object> keyValues = new Dictionary<string, object>() {
{ nameof(RB_Student_BackClass.FinanceId),frid} { nameof(RB_Student_BackClass.FinanceId),frid}
}; };
List<WhereHelper> wheres = new List<WhereHelper>() bool flag = student_BackClassRepository.Update(keyValues, new WhereHelper(nameof(RB_Student_BackClass.BackId), backModel.BackId));
{
new WhereHelper()
{
FiledName=nameof(RB_Teaching_Perf_ViewModel.Id),
FiledValue=backModel.BackId,
OperatorEnum=OperatorEnum.Equal
}
};
bool flag = student_BackClassRepository.Update(keyValues, wheres);
if (flag) if (flag)
{ {
//记录日志 //记录日志
...@@ -936,7 +927,6 @@ namespace Edu.Module.Course ...@@ -936,7 +927,6 @@ namespace Edu.Module.Course
msg += backModel.BackId + "创建财务单据失败;"; msg += backModel.BackId + "创建财务单据失败;";
} }
#endregion #endregion
return msg; return msg;
} }
} }
......
...@@ -85,6 +85,7 @@ namespace Edu.WebApi.Controllers.Course ...@@ -85,6 +85,7 @@ namespace Edu.WebApi.Controllers.Course
AuditStatusName=item.AuditStatus.ToName(), AuditStatusName=item.AuditStatus.ToName(),
item.SpecialNode, item.SpecialNode,
item.RealityBackMoney, item.RealityBackMoney,
item.FinanceId,
}); });
} }
pageModel.Count = rowsCount; pageModel.Count = rowsCount;
...@@ -157,22 +158,14 @@ namespace Edu.WebApi.Controllers.Course ...@@ -157,22 +158,14 @@ namespace Edu.WebApi.Controllers.Course
int ClientId = parms.GetInt("ClientId", 0); int ClientId = parms.GetInt("ClientId", 0);
if (BackClassId <= 0) if (BackClassId <= 0)
{ {
return ApiResult.ParamIsNull(); return ApiResult.ParamIsNull(message:"请传递退课编号!");
} }
if (ClientId <= 0) if (ClientId <= 0)
{ {
return ApiResult.ParamIsNull(); return ApiResult.ParamIsNull(message:"请传递客户编号!");
} }
string msg = studentBillModule.SetStudentBackFinance(BackClassId, IsPublic, CurrencyId, ClientType, ClientId, userInfo); string msg = studentBillModule.SetStudentBackFinance(BackClassId, IsPublic, CurrencyId, ClientType, ClientId, userInfo);
if (msg == "") return string.IsNullOrEmpty(msg) ? ApiResult.Success() : ApiResult.Failed(msg);
{
return ApiResult.Success();
}
else
{
return ApiResult.Failed(msg);
}
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment