|
|
@@ -29,6 +29,14 @@ public class TableInfoController {
|
|
|
.orderByDesc(TableInfo::getCreateTime));
|
|
|
}
|
|
|
|
|
|
+ @Get
|
|
|
+ @Mapping("/checkName")
|
|
|
+ public Integer checkName(String name) {
|
|
|
+ TableInfo one = tableInfoService.getOne(Wrappers.lambdaQuery(TableInfo.class)
|
|
|
+ .like(StrUtil.isNotEmpty(name), TableInfo::getTableNameCn, name), false);
|
|
|
+ return one != null ? 1 : 0;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 获取模板详情
|
|
|
*/
|