From 26e74ff2ff83db12bb189a19209c313de73f2d64 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com>
Date: Mon, 20 Dec 2021 14:36:41 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E4=BB=A3?=
=?UTF-8?q?=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../wwwroot/CodeGenTemplate/TplControllers.txt | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplControllers.txt b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplControllers.txt
index 745cdd1c..edb13acf 100644
--- a/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplControllers.txt
+++ b/ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplControllers.txt
@@ -173,23 +173,5 @@ ${end}
string sFileName = ExportExcel(list, "${replaceDto.ModelTypeName}", "${genTable.FunctionName}");
return SUCCESS(new { path = "/export/" + sFileName, fileName = sFileName });
}
-$if(genTable.SortField != "" && genTable.SortField != null)
- //////
- ////// 代码自动生成(不用可删除) 保存排序
- //////
- //////
- //////
- //////
- /////[ActionPermissionFilter(Permission = "${replaceDto.PermissionPrefix}:update")]
- //////[HttpGet("ChangeSort")]
- /////[Log(Title = "保存排序", BusinessType = BusinessType.UPDATE)]
- //public IActionResult ChangeSort(int id = 0, int orderNum = 0)
- //{
- // if (id <= 0) { return ToResponse(ApiResult.Error(101, "请求参数错误")); }
- // bool result = _${replaceDto.ModelTypeName}Service.Update(w => w.${replaceDto.PKName} == id, it => new ${replaceDto.ModelTypeName}() { ${genTable.SortField} = orderNum });;
-
- // return SUCCESS(result);
- //}
-$end
}
}
\ No newline at end of file