‘liusuyi’
2023-07-03 0177aa684d935d39e460719ac42914d96910a822
ard-work/src/main/java/com/ruoyi/alarmpoints/well/controller/ArdAlarmpointsWellController.java
@@ -91,8 +91,8 @@
    public AjaxResult add(@RequestBody ArdAlarmpointsWell ardAlarmpointsWell) {
        try {
            return toAjax(ardAlarmpointsWellService.insertArdAlarmpointsWell(ardAlarmpointsWell));
        } catch (DuplicateKeyException e) {
            return AjaxResult.error("井号重复");
        } catch (Exception e) {
            return AjaxResult.error(e.getMessage());
        }
    }
@@ -105,9 +105,9 @@
    @ApiOperation("修改井")
    public AjaxResult edit(@RequestBody ArdAlarmpointsWell ardAlarmpointsWell) {
        try {
            return toAjax(ardAlarmpointsWellService.updateArdAlarmpointsWell(ardAlarmpointsWell));
        } catch (DuplicateKeyException e) {
            return AjaxResult.error("井号重复");
        return toAjax(ardAlarmpointsWellService.updateArdAlarmpointsWell(ardAlarmpointsWell));
        } catch (Exception e) {
            return AjaxResult.error(e.getMessage());
        }
    }