| | |
| | | IPage<Labels> result = labelsJoinMapper.selectJoinPage(page,Labels.class, queryWrapper); |
| | | /* String resourcePath=systemDictDataBiz.queryByCode(Constants.OSS, Constants.RESOURCE_PATH).getCode();*/ |
| | | if(org.apache.commons.collections.CollectionUtils.isNotEmpty(result.getRecords())){ |
| | | String path = systemDictDataBiz.queryByCode(Constants.OSS,Constants.RESOURCE_PATH).getCode() |
| | | + systemDictDataBiz.queryByCode(Constants.OSS,Constants.LABELS_IMG).getCode(); |
| | | for(Labels model:result.getRecords()){ |
| | | if(model.getParentId()==null){ |
| | | model.setTypeLevel(0); |
| | | }else{ |
| | | model.setTypeLevel(1); |
| | | } |
| | | if(StringUtils.isNotBlank(model.getImgurl())){ |
| | | model.setImgFullurl(path + model.getImgurl()); |
| | | } |
| | | if(Constants.equalsInteger(model.getType(),Constants.LabelsType.BIG_AREA.getKey())){ |
| | | //如果是大区信息,查询所有绑定额省份信息 |
| | | model.setAreaList(areasMapper.selectList(new LambdaQueryWrapper<Areas>() |