| | |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.BaseOrganization; |
| | | import com.smartor.domain.ServiceOutPath; |
| | |
| | | */ |
| | | @PostMapping("/getInfoByParam") |
| | | public AjaxResult param(@Param("param") String param) { |
| | | SysUser user = getLoginUser().getUser(); |
| | | String orgname = ""; |
| | | String orgid = user.getOrgid(); |
| | | if(orgid != null && !"".equals(orgid)){ |
| | | BaseOrganization baseOrganization = new BaseOrganization(); |
| | | List<BaseOrganization> orgids = baseOrganizationService.selectBaseOrganizationList(baseOrganization); |
| | | orgname = orgids.get(0).getOrganizationName(); |
| | | } |
| | | |
| | | ServiceOutPath serviceOutPath = new ServiceOutPath(); |
| | | serviceOutPath.setRadix(param); |
| | | List<ServiceOutPath> list = serviceOutPathService.selectServiceOutPathList(serviceOutPath); |
| | |
| | | ServiceOutPath serviceOutPath1 = list.get(0); |
| | | serviceOutPath1.setId(null); |
| | | serviceOutPath1.setRadix(null); |
| | | serviceOutPath1.setOrgid(orgid); |
| | | if(StringUtils.isNotEmpty(serviceOutPath1.getOrgid())){ |
| | | BaseOrganization baseOrganization = new BaseOrganization(); |
| | | baseOrganization.setOrgid(serviceOutPath1.getOrgid()); |
| | | List<BaseOrganization> orgs = baseOrganizationService.selectBaseOrganizationList(baseOrganization); |
| | | if(CollectionUtils.isNotEmpty(orgs)){ |
| | | String orgname = orgs.get(0).getOrganizationName(); |
| | | serviceOutPath1.setOrgname(orgname); |
| | | } |
| | | } |
| | | return success(serviceOutPath1); |
| | | } |
| | | return success(null); |