Commit 61697cef authored by 黄奎's avatar 黄奎

新增实体类

parent bf4aaa18
using System;
using System.Collections.Generic;
using System.Text;
using VT.FW.DB;
namespace Edu.Model.Entity.Course
{
/// <summary>
/// 学员退课单据实体类
/// </summary>
[Serializable]
[DB(ConnectionName = "DefaultConnection")]
public class RB_Student_BackClass
{
/// <summary>
/// 退课编号(主键)
/// </summary>
public int BackId { get; set; }
/// <summary>
/// BackNum
/// </summary>
public string BackNum { get; set; }
/// <summary>
/// 旅客编号
/// </summary>
public int GuestId { get; set; }
/// <summary>
/// 学生编号
/// </summary>
public int StudentId { get; set; }
/// <summary>
/// 校区编号
/// </summary>
public int SchoolId { get; set; }
/// <summary>
/// 班级编号
/// </summary>
public int ClassId { get; set; }
/// <summary>
/// 教师编号
/// </summary>
public int TeacherId { get; set; }
/// <summary>
/// 已上课时
/// </summary>
public int FinishHours { get; set; }
/// <summary>
/// 退款金额
/// </summary>
public decimal BackMoney { get; set; }
/// <summary>
/// 申请时间
/// </summary>
public DateTime CreateTime { get; set; }
/// <summary>
/// 申请人
/// </summary>
public int CreateBy { get; set; }
/// <summary>
/// 集团编号
/// </summary>
public int Group_Id { get; set; }
/// <summary>
/// 审核状态
/// </summary>
public int AuditStatus { get; set; }
/// <summary>
/// 抄送人(多个逗号分隔)
/// </summary>
public string RecipientIds { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Text;
using VT.FW.DB;
namespace Edu.Model.Entity.Course
{
/// <summary>
/// 学员退课单据审核记录表
/// </summary>
[Serializable]
[DB(ConnectionName = "DefaultConnection")]
public class RB_Student_BackRecord
{
/// <summary>
/// 审核记录表主键编号
/// </summary>
public int Id { get; set; }
/// <summary>
/// 工作流id
/// </summary>
public int FlowId { get; set; }
/// <summary>
/// 审核id
/// </summary>
public int AuditId { get; set; }
/// <summary>
/// 1未审核 2审核通过 3 不通过 4 驳回 5他人已审核
/// </summary>
public int AuditStatus { get; set; }
/// <summary>
/// 描述
/// </summary>
public string Description { get; set; }
/// <summary>
/// 创建人
/// </summary>
public int CreateBy { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
/// <summary>
/// 修改人
/// </summary>
public int UpdateBy { get; set; }
/// <summary>
/// 修改时间
/// </summary>
public DateTime UpdateTime { get; set; }
/// <summary>
/// 审批人
/// </summary>
public int AuditEmId { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Text;
using VT.FW.DB;
namespace Edu.Model.Entity.Course
{
/// <summary>
/// 退款单据审核人员信息实体类
/// </summary>
[Serializable]
[DB(ConnectionName = "DefaultConnection")]
public class RB_Student_BackRelevance
{
/// <summary>
/// 主键编号
/// </summary>
public int Id { get; set; }
/// <summary>
/// 审批条件id
/// </summary>
public int ConditionId { get; set; }
/// <summary>
/// 审核人类型 1主管(指定一级) 2 指定成员 3角色
/// </summary>
public int AuditType { get; set; }
/// <summary>
/// 1依次审批(本环节内审批人依次审批) 2 会签(须所有审批人同意)3或签(一名审批人同意或拒绝即可)
/// </summary>
public int AuditWay { get; set; }
/// <summary>
/// 存发起人或者角色 发起人1 表示直属主管 2表示再上一级 依次类推
/// </summary>
public int RoleOrInitiator { get; set; }
/// <summary>
/// 步骤(排序)
/// </summary>
public int Sort { get; set; }
/// <summary>
/// 审核备注
/// </summary>
public string AuditDescription { get; set; }
/// <summary>
/// 工作流id
/// </summary>
public int WorkFlowId { get; set; }
/// <summary>
/// 原审核id
/// </summary>
public int OriginalAuditId { get; set; }
/// <summary>
/// 1未审核 2审核通过 3 不通过 4 驳回
/// </summary>
public int Stauts { get; set; }
/// <summary>
/// 待审核人 1,2,3 以逗号分隔
/// </summary>
public string ToAuditId { get; set; }
/// <summary>
/// 已审核人 1,2,3 以逗号分割
/// </summary>
public string AuditedId { get; set; }
/// <summary>
/// 是否是特殊节点
/// </summary>
public int SpecialNode { get; set; }
}
}
\ No newline at end of file
using Edu.Model.Entity.Course;
using System;
using System.Collections.Generic;
using System.Text;
namespace Edu.Model.ViewModel.Course
{
/// <summary>
/// 学员退课单据视图实体类
/// </summary>
public class RB_Student_BackClass_ViewModel : RB_Student_BackClass
{
}
}
using Edu.Model.Entity.Course;
using System;
using System.Collections.Generic;
using System.Text;
namespace Edu.Model.ViewModel.Course
{
/// <summary>
/// 学员退课单据审核记录表视图实体类
/// </summary>
public class RB_Student_BackRecord_ViewModel : RB_Student_BackRecord
{
}
}
\ No newline at end of file
using Edu.Model.Entity.Course;
using System;
using System.Collections.Generic;
using System.Text;
namespace Edu.Model.ViewModel.Course
{
/// <summary>
/// 退款单据审核人员信息视图实体类
/// </summary>
public class RB_Student_BackRelevance_ViewModel : RB_Student_BackRelevance
{
}
}
......@@ -336,11 +336,7 @@ namespace Edu.Module.Course
/// <returns></returns>
public bool UpdateClassEndDateModule(int classId)
{
Dictionary<string, object> fileds = new Dictionary<string, object>()
{
{ nameof(RB_Class_ViewModel.Status),(int)DateStateEnum.Delete},
};
return classRepository.Update(fileds, new WhereHelper(nameof(RB_Class_ViewModel.ClassId), ClassId));
return classRepository.UpdateClassEndDateRepository(classId);
}
/// <summary>
......
......@@ -129,7 +129,7 @@ WHERE 1=1
UPDATE rb_class AS A
INNER JOIN(
SELECT MAX(ClassDate) AS ClassDate,ClassId
FROM rb_class_plan WHERE `Status`=0
FROM rb_class_plan WHERE Status=0
GROUP BY ClassId
) AS B ON A.ClassId=B.ClassId
SET A.EndClassDate=B.ClassDate
......
using Edu.Model.Entity.Course;
using Edu.Model.ViewModel.Course;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Edu.Repository.Course
{
/// <summary>
/// 学员退课单据仓储层
/// </summary>
public class RB_Student_BackClassRepository : BaseRepository<RB_Student_BackClass>
{
/// <summary>
/// 获取学员退课单据分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <returns></returns>
public List<RB_Student_BackClass_ViewModel> GetStudentBackClassPageListRepository(int pageIndex, int pageSize, out long rowsCount, RB_Student_BackClass_ViewModel query)
{
StringBuilder builder = new StringBuilder();
builder.AppendFormat(@"
SELECT *
FROM RB_Student_BackClass
WHERE 1=1
");
if (query != null)
{
}
return GetPage<RB_Student_BackClass_ViewModel>(pageIndex, pageSize, out rowsCount, builder.ToString()).ToList();
}
}
}
\ No newline at end of file
using Edu.Model.Entity.Course;
using Edu.Model.ViewModel.Course;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Edu.Repository.Course
{
/// <summary>
/// 学员退课单据审核记录仓储层
/// </summary>
public class RB_Student_BackRecordRepository : BaseRepository<RB_Student_BackRecord>
{
/// <summary>
/// 获取学员退课单据审核记录列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public List<RB_Student_BackRecord_ViewModel> GetStudentBackRecordListRepository(RB_Student_BackRecord_ViewModel query)
{
StringBuilder builder = new StringBuilder();
return Get<RB_Student_BackRecord_ViewModel>(builder.ToString()).ToList();
}
}
}
using Edu.Model.Entity.Course;
using Edu.Model.ViewModel.Course;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Edu.Repository.Course
{
/// <summary>
/// 退款单据审核人员信息仓储层
/// </summary>
public class RB_Student_BackRelevanceRepository : BaseRepository<RB_Student_BackRelevance>
{
/// <summary>
/// 获取学生退课审核列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public List<RB_Student_BackRelevance_ViewModel> GetStudentBackRelevanceListRepository(RB_Student_BackRelevance_ViewModel query)
{
StringBuilder builder = new StringBuilder();
return Get<RB_Student_BackRelevance_ViewModel>(builder.ToString()).ToList();
}
}
}
\ No newline at end of file
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