优化代码生成模板

This commit is contained in:
不做码农 2023-11-21 17:07:21 +08:00
parent de143b04bc
commit d49d59f1e9

View File

@ -115,7 +115,7 @@ $if(replaceDto.ShowBtnDelete || replaceDto.ShowBtnMultiDel)
[Log(Title = "${genTable.FunctionName}", BusinessType = BusinessType.DELETE)]
public IActionResult Delete${replaceDto.ModelTypeName}(string ids)
{
int[] idsArr = Tools.SpitIntArrary(ids);
long[] idsArr = Tools.SpitLongArrary(ids);
if (idsArr.Length <= 0) { return ToResponse(ApiResult.Error($"删除失败Id 不能为空")); }
var response = _${replaceDto.ModelTypeName}Service.Delete(idsArr);