Commit 7ddbdb59 authored by 吴春's avatar 吴春

提交代码

parent ea349022
......@@ -432,15 +432,30 @@ namespace Edu.Module.EduTask
/// </summary>
/// <param name="Id"></param>
/// <returns></returns>
[TransactionCallHandler]
public bool InvalidReceiptModule(int Id)
{
bool flag = false;
Dictionary<string, object> fileds = new Dictionary<string, object>()
{
{nameof(RB_Education_Receipt_ViewModel.VerifyStatus),(int)Edu.Common.Enum.User.WFRrocessStatus.Invalid}
};
return education_ReceiptRepository.Update(fileds, new WhereHelper(nameof(RB_Education_Receipt_ViewModel.Id), Id));
flag = education_ReceiptRepository.Update(fileds, new WhereHelper(nameof(RB_Education_Receipt_ViewModel.Id), Id));
if (flag)
{
var model = education_ReceiptRepository.GetEntity(Id);
if (model != null && model.ReceiptType == Common.Enum.Finance.ReceiptTypeEnum.StopClass)
{
student_StopClassRepository.UpdateStudentStopClass(model.Id, 4);
}
}
return flag;
}
/// <summary>
/// 修改审核人员
/// </summary>
......@@ -1035,11 +1050,11 @@ namespace Edu.Module.EduTask
{
if (auditModel.AuditStatus == 2)
{
flag = student_StopClassRepository.UpdateStudentStopClass(receiptModel, auditModel.AuditStatus);
flag = student_StopClassRepository.UpdateStudentStopClass(receiptModel.Id, auditModel.AuditStatus);
}
if (auditModel.AuditStatus == 3)
{
flag = student_StopClassRepository.UpdateStudentStopClass(receiptModel, auditModel.AuditStatus);
flag = student_StopClassRepository.UpdateStudentStopClass(receiptModel.Id, auditModel.AuditStatus);
}
}
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