From cb1293457df7402703a3f24d7ce49d587c981afc Mon Sep 17 00:00:00 2001 From: wangzhijiang Date: Wed, 29 Mar 2023 10:50:18 +0800 Subject: [PATCH 1/2] update --- .../IProjectCertificationInventoryEOService.java | 2 +- .../ProjectCertificationInventoryEOServiceImpl.java | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectCertificationInventoryEOService.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectCertificationInventoryEOService.java index a9011b79f..08f3f68e5 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectCertificationInventoryEOService.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectCertificationInventoryEOService.java @@ -233,5 +233,5 @@ public interface IProjectCertificationInventoryEOService extends IService dataUniqueCheck(List projectCertificationInventoryEOList, String cut,List result); + List dataUniqueCheck(List projectCertificationInventoryEOList, String cut,List result,String projectLibraryId); } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java index 7503fdf02..076fee61b 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectCertificationInventoryEOServiceImpl.java @@ -349,7 +349,7 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl saveDataList = this.dataUniqueCheck(projectCertificationInventoryEOList,cut,result); + List saveDataList = this.dataUniqueCheck(projectCertificationInventoryEOList,cut,result,projectLibraryId); if(CollectionUtils.isNotEmpty(saveDataList)){ this.saveBatch(saveDataList); @@ -499,10 +499,12 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl dataUniqueCheck(List projectCertificationInventoryEOList, String cut,List result) { + public List dataUniqueCheck(List projectCertificationInventoryEOList, String cut,List result,String projectLibraryId) { List pciSaveList = new ArrayList<>(); - List allDataList = this.list(); + QueryWrapper pciQueryWrap = new QueryWrapper<>(); + pciQueryWrap.lambda().eq(ProjectCertificationInventoryEO::getProjectLibraryId,projectLibraryId); + List allDataList = this.list(pciQueryWrap); // 重复数据数组 List duplicateDataList = allDataList.stream().filter(data -> { boolean flag = false; @@ -2664,7 +2666,7 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl saveDataList = this.dataUniqueCheck(projectCertificationInventoryEOList, cut, result); + List saveDataList = this.dataUniqueCheck(projectCertificationInventoryEOList, cut, result, projectLibraryId); this.saveBatch(saveDataList); Date now = new Date(); From 658141010d82ce2ff402e5b1538e01eb5a49ae93 Mon Sep 17 00:00:00 2001 From: "zyx.net" Date: Wed, 29 Mar 2023 10:51:49 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E7=BB=B4=E6=8A=A4=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/common/lang/en-us.js | 1 + jero-web/src/common/lang/zh-cn.js | 1 + .../upgradeactivity/components/gnxtwh.vue | 110 ++++++++++++++---- 3 files changed, 90 insertions(+), 22 deletions(-) diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index 18121d70b..8a2f611e0 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -1734,4 +1734,5 @@ module.exports = { gnxtwh:'Functional system maintenance', gnxt:'Functional system', dykzq:'Corresponding controller', + nomorethan:'No more than 10', } \ No newline at end of file diff --git a/jero-web/src/common/lang/zh-cn.js b/jero-web/src/common/lang/zh-cn.js index 2f643ba49..c50b848cf 100644 --- a/jero-web/src/common/lang/zh-cn.js +++ b/jero-web/src/common/lang/zh-cn.js @@ -1836,4 +1836,5 @@ module.exports = { gnxtwh:'功能系统维护', gnxt:'功能系统', dykzq:'对应控制器', + nomorethan:'不能超过10个', } \ No newline at end of file diff --git a/jero-web/src/views/otamanagement/upgradeactivity/components/gnxtwh.vue b/jero-web/src/views/otamanagement/upgradeactivity/components/gnxtwh.vue index 1cf59e6b4..4a73f8b06 100644 --- a/jero-web/src/views/otamanagement/upgradeactivity/components/gnxtwh.vue +++ b/jero-web/src/views/otamanagement/upgradeactivity/components/gnxtwh.vue @@ -28,7 +28,7 @@ > - {{text && text.length > 10?text.slice(0,9)+'...':text}} + {{text && text.length > 100?text.slice(0,99)+'...':text}} @@ -58,7 +58,7 @@ - +
@@ -75,32 +75,37 @@ {{$t('gnxt')}}
- +
-
- {{$t('dykzq')}} - - -
-
- +
+
{{$t('dykzq') + (index+1)}}
- + +
+ + +
@@ -115,7 +120,7 @@