|
@@ -94,7 +94,7 @@ public class TBaseRegionController extends BaseController {
|
|
public AjaxResult add(@RequestBody TBaseRegion tBaseRegion) {
|
|
public AjaxResult add(@RequestBody TBaseRegion tBaseRegion) {
|
|
TBaseRegion region = tBaseRegionService.selectTBaseRegionByName(tBaseRegion.getRegionName(), tBaseRegion.getPlantId());
|
|
TBaseRegion region = tBaseRegionService.selectTBaseRegionByName(tBaseRegion.getRegionName(), tBaseRegion.getPlantId());
|
|
if (region != null) {
|
|
if (region != null) {
|
|
- return AjaxResult.success("当前装置下已存在该区域!");
|
|
|
|
|
|
+ return AjaxResult.error("当前装置下已存在该区域!");
|
|
}
|
|
}
|
|
tBaseRegion.setCreaterCode(getUserId());
|
|
tBaseRegion.setCreaterCode(getUserId());
|
|
tBaseRegion.setUpdaterCode(getUserId());
|
|
tBaseRegion.setUpdaterCode(getUserId());
|