|
|
|
@ -95,9 +95,7 @@ public class BaseEquipmentController extends BaseController {
|
|
|
|
|
public AjaxResult add(@RequestBody BaseEquipment baseEquipment) {
|
|
|
|
|
if (baseEquipmentService.checkEquipmentCodeUnique(baseEquipment)) {
|
|
|
|
|
return AjaxResult.error("设备编码已存在!");
|
|
|
|
|
} else if (baseEquipmentService.checkEquipmentNameUnique(baseEquipment)) {
|
|
|
|
|
return AjaxResult.error("设备名称已存在!");
|
|
|
|
|
} else {
|
|
|
|
|
}else{
|
|
|
|
|
return toAjax(baseEquipmentService.insertBaseEquipment(baseEquipment));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|