From 280b9ef75c06777f6c01530c9948633aa8072569 Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Mon, 7 Apr 2025 10:06:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=88=86=E7=B1=BB=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/SynthesisQueryServiceImpl.java | 8 +- .../backstage/SynthesisQueryMapper.xml | 16 +++- .../css/synthesisQuery/synthesisQuery.css | 21 +++-- .../proClassifyStatisticsDetail.js | 86 +++++++++++-------- .../js/synthesisQuery/synthesisQuery.js | 3 + 5 files changed, 85 insertions(+), 49 deletions(-) diff --git a/src/main/java/com/bonus/imgTool/backstage/service/impl/SynthesisQueryServiceImpl.java b/src/main/java/com/bonus/imgTool/backstage/service/impl/SynthesisQueryServiceImpl.java index c17a11f..8046b48 100644 --- a/src/main/java/com/bonus/imgTool/backstage/service/impl/SynthesisQueryServiceImpl.java +++ b/src/main/java/com/bonus/imgTool/backstage/service/impl/SynthesisQueryServiceImpl.java @@ -253,14 +253,18 @@ public class SynthesisQueryServiceImpl implements SynthesisQueryService { case "2": detailVo.setPhotoList(Optional.ofNullable(synthesisQueryDao.getImgs(detailVo,3)).orElseGet(ArrayList::new)); detailVo.setPhotoList2(Optional.ofNullable(synthesisQueryDao.getImgs(detailVo,4)).orElseGet(ArrayList::new)); + break; case "3": detailVo.setPhotoList(Optional.ofNullable(synthesisQueryDao.getImgs(detailVo,5)).orElseGet(ArrayList::new)); + break; case "4": detailVo.setPhotoList(Optional.ofNullable(synthesisQueryDao.getImgs(detailVo,6)).orElseGet(ArrayList::new)); - detailVo.setPhotoList(Optional.ofNullable(synthesisQueryDao.getImgs(detailVo,7)).orElseGet(ArrayList::new)); - detailVo.setPhotoList(Optional.ofNullable(synthesisQueryDao.getImgs(detailVo,8)).orElseGet(ArrayList::new)); + detailVo.setPhotoList2(Optional.ofNullable(synthesisQueryDao.getImgs(detailVo,7)).orElseGet(ArrayList::new)); + detailVo.setPhotoList3(Optional.ofNullable(synthesisQueryDao.getImgs(detailVo,8)).orElseGet(ArrayList::new)); + break; case "5": detailVo.setPhotoList(Optional.ofNullable(synthesisQueryDao.getImgs(detailVo,9)).orElseGet(ArrayList::new)); + break; } } catch (Exception e) { log.error(e.toString(),e); diff --git a/src/main/resources/mappers/backstage/SynthesisQueryMapper.xml b/src/main/resources/mappers/backstage/SynthesisQueryMapper.xml index 0d2b3d4..0588724 100644 --- a/src/main/resources/mappers/backstage/SynthesisQueryMapper.xml +++ b/src/main/resources/mappers/backstage/SynthesisQueryMapper.xml @@ -94,7 +94,6 @@ AND tcq.pro_id = #{id} - GROUP BY tcq.upload_type @@ -247,7 +246,7 @@ AND tcq.is_active = '1' - GROUP BY tcq.upload_type, tcq.pro_id + GROUP BY tcq.pro_id