| | |
| | | |
| | | ArrayList<SkPanoramaEntity> panoramalist = new ArrayList<SkPanoramaEntity>(); |
| | | |
| | | // 已上传的全景图已符合比例,仅用改变数据状态 |
| | | // ArrayList<SkPanoramaEntity> justUpdateStatusList = new ArrayList<SkPanoramaEntity>(); |
| | | |
| | | ArrayList<FormateTuEntity> list = new ArrayList<FormateTuEntity>(); |
| | | |
| | | |
| | | if (idlist!= null && idlist.size()>0) { |
| | | for (Long id : idlist ) { |
| | | FormateTuEntity formateTuEntity = new FormateTuEntity(); |
| | | |
| | | // SkPanoramaEntity skPanorama = new SkPanoramaEntity(); |
| | | // skPanorama.setId(id); |
| | | // SkPanoramaEntity entity = skPanoramaService.getOne(Condition.getQueryWrapper(skPanorama)); |
| | | |
| | | SkPanoramaEntity entity = skPanoramaService.getById(id); |
| | | String picUrl = entity.getPicUrl(); |
| | | String picName = entity.getPicName(); |
| | |
| | | Integer height = imgInfoRT.get("height"); |
| | | if (width == height * 2) { |
| | | // 已经符合格式化标准 |
| | | entity.setStatus(PanoramaUtilDict.panorama_status_2); |
| | | boolean b = skPanoramaService.updateBatchById(panoramalist); |
| | | SkPanoramaEntity upEntity = new SkPanoramaEntity(); |
| | | upEntity.setId(id); |
| | | upEntity.setStatus(PanoramaUtilDict.panorama_status_2); |
| | | boolean b = skPanoramaService.updateById(upEntity); |
| | | return R.status( b); |
| | | } else { |
| | | Integer newWidth = height * 2; |
| | |
| | | |
| | | boolean b = skPanoramaService.updateBatchById(panoramalist); |
| | | |
| | | return R.status( b); |
| | | return R.status(b); |
| | | } |
| | | |
| | | |