| | |
| | | Double maxY = Double.parseDouble(String.valueOf(map.get("max_y"))); |
| | | |
| | | // 缩放后需要的偏移量 |
| | | double scaleOffsetX = width * (1 -CodeUtils.ADAPTATION_SCALE) / 2; |
| | | double scaleOffsetY = height * (1 -CodeUtils.ADAPTATION_SCALE) / 2; |
| | | double scaleOffsetX = width * (1 - CodeUtils.ADAPTATION_SCALE) / 2; |
| | | double scaleOffsetY = height * (1 - CodeUtils.ADAPTATION_SCALE) / 2; |
| | | |
| | | List<Code> codeList = this.list(); |
| | | for (Code code : codeList) { |
| | |
| | | List<Long> ids = this.baseMapper.selectAllLocCode(); |
| | | List<Code> codeList = new ArrayList<>(); |
| | | for (Long id : ids) { |
| | | codeList.add(this.getById(id)); |
| | | Code byId = this.getById(id); |
| | | if (byId != null) { |
| | | codeList.add(byId); |
| | | } |
| | | |
| | | } |
| | | return codeList; |
| | | } |