| | |
| | | private void getRootOrgCode() { |
| | | SystemDictData org = systemDictDataBiz.queryByCode(Constants.HK_PARAM, Constants.HK_ROOTORG_CODE); |
| | | if(org!=null){ |
| | | SystemDictData orgName = systemDictDataBiz.queryByCode(Constants.HK_PARAM, Constants.HK_ROOTORG_NAME); |
| | | String rootOrgId =org.getCode(); |
| | | if(StringUtils.isBlank(rootOrgId)){ |
| | | BaseResponse<OrgListResponse> res = HKService.getRootOrg(null); |
| | |
| | | org.setCode(res.getData().getOrgIndexCode()); |
| | | org.setUpdateTime(new Date()); |
| | | systemDictDataBiz.updateById( org); |
| | | |
| | | orgName.setCode(res.getData().getOrgName()); |
| | | orgName.setUpdateTime(new Date()); |
| | | systemDictDataBiz.updateById( orgName); |
| | | } |
| | | } |
| | | } |