forked from gzzfw/backEnd/gz-dyh

zhouxiantao
2024-09-03 5dedf6c30f0864ae7c4fd3c47c74b057f2360156
dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUnitWebController.java
@@ -347,4 +347,22 @@
            return ReturnFailUtils.getRepInfo( "查询失败", null);
        }
    }
    /**
     * 根据主键编号删除单位
     * @url {ctx}/api/v1/ctUnit/removeByIds
     * @param ids 主键编号
     * @return Object
     * @throws Exception
     */
    @GetMapping("/removeByIds")
    public Object removeByIds(@RequestParam(value = "ids") String ids) {
        try {
            service.removeById(ids);
            return ReturnSucUtils.getRepInfo();
        } catch (Exception e) {
            log.error("Controller接口[CtUnitController.removeByIds]请求异常:"+e, e);
            return ReturnFailUtils.getRepInfo();
        }
    }
}