diff --git a/OpenAuth.App/SysPrinterPlanApp/Request/AddOrUpdateSysPrinterPlanReq.cs b/OpenAuth.App/SysPrinterPlanApp/Request/AddOrUpdateSysPrinterPlanReq.cs index 3f393aa7..061e3e2c 100644 --- a/OpenAuth.App/SysPrinterPlanApp/Request/AddOrUpdateSysPrinterPlanReq.cs +++ b/OpenAuth.App/SysPrinterPlanApp/Request/AddOrUpdateSysPrinterPlanReq.cs @@ -58,6 +58,9 @@ namespace OpenAuth.App.Request /// public bool Disable { get; set; } - + /// + /// 分组字段,通常用于主从表结构打印时 + /// + public string GroupBy { get; set; } } } \ No newline at end of file diff --git a/OpenAuth.App/SysPrinterPlanApp/SysPrinterPlanApp.cs b/OpenAuth.App/SysPrinterPlanApp/SysPrinterPlanApp.cs index 3491bbbe..59588cf0 100644 --- a/OpenAuth.App/SysPrinterPlanApp/SysPrinterPlanApp.cs +++ b/OpenAuth.App/SysPrinterPlanApp/SysPrinterPlanApp.cs @@ -91,7 +91,8 @@ namespace OpenAuth.App { Name = obj.Name, SourceSql = obj.SourceSql, - PlanContent = obj.PlanContent + PlanContent = obj.PlanContent, + GroupBy = obj.GroupBy },u => u.Id == obj.Id); } diff --git a/OpenAuth.Repository/Domain/SysPrinterPlan.cs b/OpenAuth.Repository/Domain/SysPrinterPlan.cs index 32e66864..122896f7 100644 --- a/OpenAuth.Repository/Domain/SysPrinterPlan.cs +++ b/OpenAuth.Repository/Domain/SysPrinterPlan.cs @@ -26,6 +26,7 @@ namespace OpenAuth.Repository.Domain this.SourceSql = ""; this.CloumnView = ""; this.PlanContent = ""; + this.GroupBy = ""; this.CreateTime = DateTime.Now; this.Disable = false; } @@ -53,6 +54,12 @@ namespace OpenAuth.Repository.Domain /// [Description("中文视图名;设计打印方案时,提供中文快捷按钮的视图来源")] public string CloumnView { get; set; } + + /// + ///分组字段,通常用于主从表结构打印时 + /// + [Description("分组字段,通常用于主从表结构打印时")] + public string GroupBy { get; set; } /// ///打印方案内容;打印方案JSON对象