| | |
| | | String prefixUrl = systemDictDataBiz.queryByCode(Constants.SYSTEM, Constants.FILE_DIR).getCode() |
| | | + systemDictDataBiz.queryByCode(Constants.SYSTEM, Constants.PROJECTS).getCode(); |
| | | Brand brand = brandMapper.selectById(id); |
| | | brand.setPrefixUrl(prefixUrl); |
| | | brand.setImgfullurl(prefixUrl+brand.getImgurl()); |
| | | return brand; |
| | | } |
| | | |
| | |
| | | String prefixUrl = systemDictDataBiz.queryByCode(Constants.SYSTEM, Constants.FILE_DIR).getCode() |
| | | + systemDictDataBiz.queryByCode(Constants.SYSTEM, Constants.PROJECTS).getCode(); |
| | | for (Brand b:list) { |
| | | b.setPrefixUrl(prefixUrl); |
| | | b.setImgfullurl(prefixUrl+b.getImgurl()); |
| | | } |
| | | return list; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public PageData<Brand> findPage(PageWrap<Brand> pageWrap) { |
| | | IPage<Brand> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | |
| | | String prefixUrl = systemDictDataBiz.queryByCode(Constants.SYSTEM, Constants.FILE_DIR).getCode() |
| | | + systemDictDataBiz.queryByCode(Constants.SYSTEM, Constants.PROJECTS).getCode(); |
| | | brandIPage.getRecords().forEach(i->{ |
| | | i.setPrefixUrl(prefixUrl); |
| | | i.setImgfullurl(prefixUrl+i.getImgurl()); |
| | | }); |
| | | return PageData.from(brandIPage); |
| | | } |