2024-3-27 基础信息-设备-去掉设备名称校验

master
A0010407 10 months ago
parent 1424b9c3a1
commit ca51dbda0c

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

Loading…
Cancel
Save