| | |
| | | userInfo.getDetail().set("adCodeBase", ""); |
| | | userInfo.getDetail().set("parentDept",0); |
| | | } else { |
| | | userInfo.getDetail().set("adCodeBase",attResManagePersonClient.getAdBaseById(deptRes.getData().getAdCode()).getData()); |
| | | //根据用户标识类型判断是水库还是堤防 |
| | | if (user.getType().equals("堤防")){ |
| | | //堤防需要从自己的库中获取行政区划 |
| | | userInfo.getDetail().set("adCodeBase",attResManagePersonClient.getYwxtAdBaseById(deptRes.getData().getAdCode()).getData()); |
| | | }else{ |
| | | //水库从中台表中获取行政区划 |
| | | userInfo.getDetail().set("adCodeBase",attResManagePersonClient.getAdBaseById(deptRes.getData().getAdCode()).getData()); |
| | | } |
| | | userInfo.getDetail().set("parentDept",deptRes.getData().getParentId()); |
| | | } |
| | | |
| | | String collectResIds = collectClient.getMyCollect(user.getId().toString()); |
| | | userInfo.getDetail().set("collect",collectResIds); |
| | | |