Oracle11g数据库 多租户管理>>添加租户 报错 #8897

springboot3
JEECG 2025-09-25 12:42:53 +08:00
parent d3fa38a9e6
commit b920c5b794
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ public class SysTenantController {
@RequestMapping(value = "/add", method = RequestMethod.POST)
public Result<SysTenant> add(@RequestBody SysTenant sysTenant) {
Result<SysTenant> result = new Result();
if(sysTenantService.getById(sysTenant.getId())!=null){
if(sysTenant!=null && oConvertUtils.isNotEmpty(sysTenant.getId()) && sysTenantService.getById(sysTenant.getId())!=null){
return result.error500("该编号已存在!");
}
try {