删除几个Controller和代码生成模板中冗余的三元表达式。

Signed-off-by: scmiot <scmiot@qq.com>
This commit is contained in:
scmiot
2022-10-29 08:23:09 +00:00
committed by Gitee
parent ec076c1e0d
commit 9f2dc5c233
6 changed files with 15 additions and 15 deletions

View File

@@ -46,7 +46,7 @@ public class TestBatchController extends BaseController {
testDemo.setValue("测试新增");
list.add(testDemo);
}
return toAjax(testDemoMapper.insertBatch(list) ? 1 : 0);
return toAjax(testDemoMapper.insertBatch(list));
}
/**
@@ -74,7 +74,7 @@ public class TestBatchController extends BaseController {
testDemo.setId(null);
}
}
return toAjax(testDemoMapper.insertOrUpdateBatch(list) ? 1 : 0);
return toAjax(testDemoMapper.insertOrUpdateBatch(list));
}
/**