private void SaveSingleClassApproval(string classId, int status, string reason = "") { var result = _planManager.UpdateApprovalByQuery(classId, status, reason, CurrentUser.UserId, 1); if (status == 2)//通过 { var passIdList = _planManager.GetCanPassIdList(classId, 1); if (passIdList.Count > 0) { var query = " ApproveStatus=2,ApproveTime=getdate()"; _classManager.UpdateByQuery(classId, query); try { SendPass(classId, 1); } catch { } } else { try { SendApproval2(classId, 1); } catch { } } } else { var query = " ApproveStatus=3,ApproveTime=getdate()"; _classManager.UpdateByQuery(classId, query); try { SendNoPass(classId, 1, CurrentUser.Realname, reason); } catch { } } }