Commit c4182a63 authored by liudong1993's avatar liudong1993

1

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