forked from gzzfw/backEnd/gz-dyh

liyj
2024-09-05 716f57dacce347ba154f3b6a994f4e383e3a97a4
dyh-service/dyh-cust/src/main/java/cn/huge/module/ctuser/controller/web/CtUnitWebController.java
@@ -314,7 +314,7 @@
    /**
     * 获取所有组织(包含所有下级子组织)树形结构
     * @url {ctx}/api/v1/ctUnit/listUnitTree
     * @url {ctx}/api/web/ctUnit/listUnitTree
     * @param userId 登录用户标识称
     * @return Object
     */
@@ -333,7 +333,7 @@
    /**
     * 获取组织详情(包含组织下的部门详情)
     * @url {ctx}/api/v1/ctUnit/getUnitAndDept?id=
     * @url {ctx}/api/web/ctUnit/getUnitAndDept?id=
     * @param id 组织编号
     * @return Object
     */
@@ -347,4 +347,22 @@
            return ReturnFailUtils.getRepInfo( "查询失败", null);
        }
    }
    /**
     * 根据主键编号删除单位
     * @url {ctx}/api/web/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();
        }
    }
}