| | |
| | | import cn.huge.base.common.utils.ObjectUtils; |
| | | import cn.huge.base.common.utils.ReturnFailUtils; |
| | | import cn.huge.base.common.utils.ReturnSucUtils; |
| | | import cn.huge.base.config.CurrentUser; |
| | | import cn.huge.module.ctuser.domain.po.CtUnit; |
| | | import cn.huge.module.ctuser.domain.po.CtUser; |
| | | import cn.huge.module.ctuser.service.CtUnitService; |
| | |
| | | return ReturnFailUtils.getRepInfo(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 获取上级综治中心 |
| | | * @url {ctx}/api/client/ctUnit/getParentZzzxUnit |
| | | * @param unitId 组织编号 |
| | | * @return Object |
| | | */ |
| | | @GetMapping("/getParentZzzxUnit") |
| | | public Object getParentZzzxUnit(@RequestParam(value = "unitId") String unitId) { |
| | | try { |
| | | return ReturnSucUtils.getRepInfo(service.getParentZzzx(unitId)); |
| | | } catch (Exception e) { |
| | | return ReturnFailUtils.getRepInfo(e.getMessage()); |
| | | } |
| | | } |
| | | } |