!21 update ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplControllers.txt.

Merge pull request !21 from xbzhu/N/A
This commit is contained in:
字母搬运工 2023-02-02 01:37:43 +00:00 committed by Gitee
commit 9316669767
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,4 +1,4 @@
using Infrastructure;
using Infrastructure;
using Infrastructure.Attribute;
using Infrastructure.Enums;
using Infrastructure.Model;
@ -149,6 +149,7 @@ $if(replaceDto.ShowBtnExport)
[ActionPermissionFilter(Permission = "${replaceDto.PermissionPrefix}:export")]
public IActionResult Export([FromQuery] ${replaceDto.ModelTypeName}QueryDto parm)
{
parm.PageNum = 1;
parm.PageSize = 100000;
var list = _${replaceDto.ModelTypeName}Service.GetList(parm).Result;
if (list == null || list.Count <= 0)