Skip to content

Commit ceadda2

Browse files
authored
Merge pull request #15 from cq-panda/master
sync
2 parents 1c07aa1 + d78b534 commit ceadda2

File tree

42 files changed

+870
-783
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+870
-783
lines changed

.Net6版本/VOL.Builder/Services/Core/Partial/Sys_TableInfoService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ 0 ELSE 1
10631063
120 AS ColumnWidth,
10641064
0 AS OrderNo,
10651065
CASE
1066-
WHEN IS_NULLABLE = 'N' THEN
1066+
WHEN IS_NULLABLE = 'N' or IS_NULLABLE = 'NO' THEN
10671067
0 ELSE 1
10681068
END AS IsNull,
10691069
CASE

.Net6版本/VOL.Core/BaseProvider/ServiceBase.cs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -317,19 +317,17 @@ public virtual PageGridData<T> GetPageData(PageDataOptions options)
317317
}
318318
else
319319
{
320+
//查询界面统计求等字段
321+
if (SummaryExpress != null)
322+
{
323+
pageGridData.summary = SummaryExpress.Invoke(queryable);
324+
}
320325
pageGridData.rows = repository.IQueryablePage(queryable,
321326
options.Page,
322327
options.Rows,
323328
out int rowCount,
324329
orderbyDic).ToList();
325330
pageGridData.total = rowCount;
326-
//查询界面统计求等字段
327-
if (SummaryExpress != null)
328-
{
329-
pageGridData.summary = SummaryExpress.Invoke(queryable);
330-
//Func<T, T> groupExpress = x =>x;
331-
//pageGridData.summary = queryable.GroupBy(groupExpress).Select(SummaryExpress).FirstOrDefault();
332-
}
333331
}
334332
GetPageDataOnExecuted?.Invoke(pageGridData);
335333
return pageGridData;

.Net6版本/VOL.Core/Utilities/EPPlusHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using OfficeOpenXml.Style;
33
using System;
44
using System.Collections.Generic;
5+
using System.ComponentModel.DataAnnotations;
56
using System.Data;
67
using System.Drawing;
78
using System.IO;
@@ -443,6 +444,7 @@ public static string Export<T>(List<T> list, IEnumerable<string> exportColumns,
443444
}
444445
else
445446
{
447+
columnName = propertyInfo[i].GetTypeCustomValue<DisplayAttribute>(x => x.Name) ?? columnName;
446448
worksheet.Column(i + 1).Width = 15;
447449
worksheet.Cells[1, i + 1].Value = columnName;
448450
}

.Net6版本/VOL.WebApi/Template/Page/VueExtension.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
//新建、编辑弹出框扩展组件
1717
modelHeader: '',
1818
modelBody: '',
19+
modelRight: '',
1920
modelFooter: ''
2021
},
2122
tableAction: '', //指定某张表的权限(这里填写表名,默认不用填写)

01.框架文件结构说明(必看).txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
前端【Vol.Vue3版本】文件夹才有示例页面(Vol.Vue3.Vite里没有示例页面,打开页面会出现404), 开发请使用Vol.Vue3.Vite前端项目
2+
前端【Vol.Vue3版本】文件夹下才有演示页面代码(Vol.Vue3.Vite里没有示例页面,打开页面会出现404), 开发请使用Vol.Vue3.Vite前端项目,示例代码用Vol.Vue3版本或者看文档上
33

44
1、.Net6版本 后台api项目,使用的.Net6+EFCore6+Dapper
55

Net6.SqlSugar/VOL.Core/Extensions/LambdaExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ public static Expression<Func<T, bool>> And<T>(List<ExpressionParameters> listEx
389389
/// <returns></returns>
390390
public static Expression<Func<T, bool>> Or<T>(this List<ExpressionParameters> listExpress)
391391
{
392-
return listExpress.Compose<T>(Expression.Or);
392+
return listExpress.Compose<T>(Expression.OrElse);
393393
}
394394
private static Expression<Func<T, bool>> Compose<T>(this List<ExpressionParameters> listExpress, Func<Expression, Expression, Expression> merge)
395395
{
@@ -423,7 +423,7 @@ public static Expression<Func<T, bool>> And<T>(this Expression<Func<T, bool>> fi
423423
}
424424
public static Expression<Func<T, bool>> Or<T>(this Expression<Func<T, bool>> first, Expression<Func<T, bool>> second)
425425
{
426-
return first.Compose(second, Expression.Or);
426+
return first.Compose(second, Expression.OrElse);
427427
}
428428
public static Expression<T> Compose<T>(this Expression<T> first, Expression<T> second, Func<Expression, Expression, Expression> merge)
429429
{

Net6.SqlSugar/VOL.Core/Utilities/EPPlusHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using OfficeOpenXml.Style;
33
using System;
44
using System.Collections.Generic;
5+
using System.ComponentModel.DataAnnotations;
56
using System.Data;
67
using System.Drawing;
78
using System.IO;
@@ -434,6 +435,7 @@ public static string Export<T>(List<T> list, IEnumerable<string> exportColumns,
434435
}
435436
else
436437
{
438+
columnName = propertyInfo[i].GetTypeCustomValue<DisplayAttribute>(x => x.Name) ?? columnName;
437439
worksheet.Column(i + 1).Width = 15;
438440
worksheet.Cells[1, i + 1].Value = columnName;
439441
}

Net6.SqlSugar/VOL.Core/WorkFlow/WorkFlowManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ public static WebResponseContent Audit<T>(T entity, AuditStatus status, string r
508508
//query.Update(entity);
509509
//修改状态
510510
dbContext.Update(workFlow);
511+
511512
dbContext.UpdateRange(workFlow.Sys_WorkFlowTableStep);
512513
dbContext.SaveChanges();
513514
//发送邮件(appsettings.json配置文件里添加邮件信息)
@@ -562,6 +563,7 @@ public static WebResponseContent Audit<T>(T entity, AuditStatus status, string r
562563

563564
autditProperty.SetValue(entity, (int)status);
564565
dbContext.Update(workFlow);
566+
dbContext.Update(currentStep);
565567
dbContext.Update(entity);
566568
dbContext.Add(log);
567569
dbContext.SaveChanges();

Net6.SqlSugar/VOL.WebApi/Template/Page/VueExtension.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
//新建、编辑弹出框扩展组件
1717
modelHeader: '',
1818
modelBody: '',
19+
modelRight: '',
1920
modelFooter: ''
2021
},
2122
tableAction: '', //指定某张表的权限(这里填写表名,默认不用填写)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#### 框架文档
3535
vue3版本: [http://v2.volcore.xyz/document/guide](http://v2.volcore.xyz/document/guide) <br>
3636
vue3版本: [http://www.volcore.xyz](http://www.volcore.xyz) <br>
37-
演示地址2: [http://120.48.115.252:9990/](http://120.48.115.252:9990/) <br>
37+
演示地址2: [http://demo.volcore.xy/](http://demo.volcore.xy/) <br>
3838
App、H5、微信小程序: [http://v2.volcore.xyz/app/guide](http://v2.volcore.xyz/app/guide) <br>
3939

4040
#### 2023.10增加sqlsugar适配

0 commit comments

Comments
 (0)