Commit c4182a63 authored by liudong1993's avatar liudong1993

1

parent f0b8c295
......@@ -24,6 +24,11 @@ namespace Edu.Common.Enum.Course
/// 取消
/// </summary>
[EnumField("取消")]
Cancel = 3
Cancel = 3,
/// <summary>
/// 待付款
/// </summary>
[EnumField("待付款")]
WaitPay = 4,
}
}
......@@ -116,7 +116,8 @@ namespace Edu.Module.Customer
};
bool flag = customer_RemitRepository.Update(keyValues, wheres);
if (flag) {
if (state == 1) {
if (state == 1)
{
var cmodel = customerRepository.GetEntity(rmodel.CustomerId);
var amodel = customer_AccountRepository.GetEntity(rmodel.BankAccountId);
//同意需要制财务单据
......@@ -136,7 +137,8 @@ namespace Edu.Module.Customer
if (clientModel == null)
{
//新增付款对象
clientModel = new Model.Entity.Finance.RB_ClientBankAccount() {
clientModel = new Model.Entity.Finance.RB_ClientBankAccount()
{
ID = 0,
Status = Common.Enum.DateStateEnum.Normal,
AccountAlias = amodel.BankName,
......@@ -157,8 +159,9 @@ namespace Edu.Module.Customer
};
clientModel.ID = clientBankAccountRepository.Insert(clientModel);
}
else {
if (amodel.BankName != clientModel.AccountAlias || amodel.BankCardNo != clientModel.CardNum
else
{
if (amodel.BankName != clientModel.AccountAlias || amodel.BankCardNo != clientModel.CardNum
|| amodel.AccountHolder != clientModel.AccountHolder || amodel.AccountBank != clientModel.OpenBankName)
{
//修改付款对象
......@@ -262,6 +265,11 @@ namespace Edu.Module.Customer
}
#endregion
}
else if (state == 2) {
//驳回的话 需要修改已提现状态 不过要改成课耗返佣 暂不处理
}
}
return flag ? "" : "出错了,请联系管理员";
}
......
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