| | |
| | | queryWrapper.eq(Company::getIsdeleted,Constants.ZERO); |
| | | if(Objects.nonNull(type) && ( Constants.equalsInteger(type,Constants.ONE) || Constants.equalsInteger(type,Constants.ZERO))){ |
| | | queryWrapper.eq(type!=null,Company::getType,type); |
| | | }else{ |
| | | }else if(Objects.nonNull(type) && Constants.equalsInteger(type,Constants.TWO)){ |
| | | String companySpecialId = systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.SPECIAL_COMPANY_ID).getCode(); |
| | | if(StringUtils.isNotBlank(companySpecialId)){ |
| | | queryWrapper.apply(" (find_in_set('"+companySpecialId+"',REPLACE(t.company_path,'/',',')) or t.parent_id is null ) "); |