mirror of
https://github.com/jeecgboot/jeecg-boot.git
synced 2025-10-13 22:57:05 +00:00
Oracle11g数据库 多租户管理>>添加租户 报错 #8897
This commit is contained in:
@@ -133,7 +133,7 @@ public class SysTenantController {
|
|||||||
@RequestMapping(value = "/add", method = RequestMethod.POST)
|
@RequestMapping(value = "/add", method = RequestMethod.POST)
|
||||||
public Result<SysTenant> add(@RequestBody SysTenant sysTenant) {
|
public Result<SysTenant> add(@RequestBody SysTenant sysTenant) {
|
||||||
Result<SysTenant> result = new Result();
|
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("该编号已存在!");
|
return result.error500("该编号已存在!");
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user