diff --git a/op-modules/op-wms/src/main/java/com/op/wms/controller/BaseEquipmentController.java b/op-modules/op-wms/src/main/java/com/op/wms/controller/BaseEquipmentController.java index e39cbc74..6bc925aa 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/controller/BaseEquipmentController.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/controller/BaseEquipmentController.java @@ -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)); } }