From a3912d63e3326c7ec82a5a382f787959e1bb486f Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Fri, 27 Oct 2023 09:17:44 +0800 Subject: [PATCH 01/73] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=BA=93---=E6=8C=89=E7=BC=96=E5=8F=B7?= =?UTF-8?q?=E6=AD=A3=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/DocumentSearchServiceImpl.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/searchcenter/service/impl/DocumentSearchServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/searchcenter/service/impl/DocumentSearchServiceImpl.java index 83914450d..a470cf055 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/searchcenter/service/impl/DocumentSearchServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/searchcenter/service/impl/DocumentSearchServiceImpl.java @@ -44,8 +44,11 @@ import org.jetbrains.annotations.NotNull; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; -import javax.swing.*; -import java.util.*; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; import java.util.stream.Collectors; /** @@ -224,7 +227,8 @@ public class DocumentSearchServiceImpl implements IDocumentSearchService { mapSortTemp.put(orderByField,mapSort); } }else{ - mapSortTemp.put("create_time","desc"); + mapSortTemp.put("serial_number.keyword","asc"); +// mapSortTemp.put("create_time","desc"); } sort.putAll(mapSortTemp); jsonArrySort.add(sort); From 3ea2acd84bf6e73d4022c63a5a863de85db19254 Mon Sep 17 00:00:00 2001 From: gaosong Date: Fri, 27 Oct 2023 10:04:18 +0800 Subject: [PATCH 02/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E6=B8=85=E5=8D=95=E8=B0=83=E5=8F=96=E9=80=BB=E8=BE=91=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E6=A0=A1=E9=AA=8C=E6=B3=95=E8=A7=84=E6=B8=85?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ctCertificationInventoryEOServiceImpl.java | 92 +++++++++---------- 1 file changed, 46 insertions(+), 46 deletions(-) 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 21e198a8d..d88420ee8 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 @@ -4475,34 +4475,34 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl prpEoList = this.projectRelatedPersonnelService.list(prpQueryWrap); - QueryWrapper lawsInventoryEOQueryWrap = new QueryWrapper<>(); - lawsInventoryEOQueryWrap.lambda().eq(ProjectLawsInventoryEO::getProjectLibraryId,projectLibraryId); - List projectLawsInventoryEOList = this.projectLawsInventoryEOService.list(lawsInventoryEOQueryWrap); +// QueryWrapper lawsInventoryEOQueryWrap = new QueryWrapper<>(); +// lawsInventoryEOQueryWrap.lambda().eq(ProjectLawsInventoryEO::getProjectLibraryId,projectLibraryId); +// List projectLawsInventoryEOList = this.projectLawsInventoryEOService.list(lawsInventoryEOQueryWrap); List projectCertificationInventoryEOList = new ArrayList<>(); List noSerialNumberList = new ArrayList<>(); for (AuthDummyInventoryInfoEO authDummyInventoryInfoEO : authDummyInventoryInfoEOList) { - if(CollectionUtils.isEmpty(projectLawsInventoryEOList)){ - break; - } +// if(CollectionUtils.isEmpty(projectLawsInventoryEOList)){ +// break; +// } // 根据选择调取的数据法规编号,跟当前项目中 法规清单数据法规编号对比,如果有,则加入,如果没有,则不加入。 - List lawsInventoryEOListTemp = projectLawsInventoryEOList.stream().filter(lawsInventoryEO -> { - boolean flag = false; - String adiSn = authDummyInventoryInfoEO.getSerialNumber(); - BussDocumentLibraryEO bl = iBussDocumentLibraryEOService.getBySerialNumber(adiSn); - if(ObjectUtils.isNotEmpty(bl)){ - if (StringUtils.equals(bl.getId(), lawsInventoryEO.getStandId())) { - flag = true; - } - } +// List lawsInventoryEOListTemp = projectLawsInventoryEOList.stream().filter(lawsInventoryEO -> { +// boolean flag = false; +// String adiSn = authDummyInventoryInfoEO.getSerialNumber(); +// BussDocumentLibraryEO bl = iBussDocumentLibraryEOService.getBySerialNumber(adiSn); +// if(ObjectUtils.isNotEmpty(bl)){ +// if (StringUtils.equals(bl.getId(), lawsInventoryEO.getStandId())) { +// flag = true; +// } +// } +// +// return flag; +// }).collect(Collectors.toList()); - return flag; - }).collect(Collectors.toList()); - - if(CollectionUtils.isNotEmpty(lawsInventoryEOListTemp)){ +// if(CollectionUtils.isNotEmpty(lawsInventoryEOListTemp)){ ProjectCertificationInventoryEO projectCertificationInventoryEOTemp = new ProjectCertificationInventoryEO(); BeanUtils.copyProperties(authDummyInventoryInfoEO,projectCertificationInventoryEOTemp); @@ -4549,20 +4549,20 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl saveDataList = this.dataUniqueCheck(projectCertificationInventoryEOList, cut, result, projectLibraryId); @@ -5457,22 +5457,22 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl lwrapper = new LambdaQueryWrapper<>(); - lwrapper.in(ProjectLawsInventoryEO::getSerialNumber,serialNumberList); - List projectLawsInventoryEOList = projectLawsInventoryEOService.list(lwrapper); - List LawSerialNumberListTemp = projectLawsInventoryEOList.stream().map(ProjectLawsInventoryEO::getSerialNumber).distinct().collect(Collectors.toList()); - if(serialNumberList.size() != LawSerialNumberListTemp.size()){ - //存在法规清单中没有的数据 - List collect = projectLawsInventoryEOList.stream().map(ProjectLawsInventoryEO::getSerialNumber).collect(Collectors.toList()); - List serialNumbers = serialNumberList.stream().filter(e -> !collect.contains(e)).collect(Collectors.toList()); - if(serialNumbers.size() > 0){ - if(CutEnum.CN.getValue().equals(datas.get(0).getCut())){ - throw new JeroBootException(StringUtils.join(serialNumbers,",")+"法规清单中不存在,不能添加"); - }else{ - throw new JeroBootException(StringUtils.join(serialNumbers,",")+" does not exist in the project laws and cannot be added"); - } - } - } +// LambdaQueryWrapper lwrapper = new LambdaQueryWrapper<>(); +// lwrapper.in(ProjectLawsInventoryEO::getSerialNumber,serialNumberList); +// List projectLawsInventoryEOList = projectLawsInventoryEOService.list(lwrapper); +// List LawSerialNumberListTemp = projectLawsInventoryEOList.stream().map(ProjectLawsInventoryEO::getSerialNumber).distinct().collect(Collectors.toList()); +// if(serialNumberList.size() != LawSerialNumberListTemp.size()){ +// //存在法规清单中没有的数据 +// List collect = projectLawsInventoryEOList.stream().map(ProjectLawsInventoryEO::getSerialNumber).collect(Collectors.toList()); +// List serialNumbers = serialNumberList.stream().filter(e -> !collect.contains(e)).collect(Collectors.toList()); +// if(serialNumbers.size() > 0){ +// if(CutEnum.CN.getValue().equals(datas.get(0).getCut())){ +// throw new JeroBootException(StringUtils.join(serialNumbers,",")+"法规清单中不存在,不能添加"); +// }else{ +// throw new JeroBootException(StringUtils.join(serialNumbers,",")+" does not exist in the project laws and cannot be added"); +// } +// } +// } // else{ // for (ProjectCertificationInventoryEO projectCertificationInventoryEO : datas) { // List collect = bussDocumentLibraryEOList.stream() From bee8cc8ebb706efc9f3fa7237441d3e650622d15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Fri, 27 Oct 2023 10:23:03 +0800 Subject: [PATCH 03/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E6=B8=85=E5=8D=95=E7=9A=84=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/addCodeNumber.vue | 134 +++++++++++++----- 1 file changed, 98 insertions(+), 36 deletions(-) diff --git a/jero-web/src/views/projectManagement/components/certificationList/components/addCodeNumber.vue b/jero-web/src/views/projectManagement/components/certificationList/components/addCodeNumber.vue index dc711e17d..66def7fbc 100644 --- a/jero-web/src/views/projectManagement/components/certificationList/components/addCodeNumber.vue +++ b/jero-web/src/views/projectManagement/components/certificationList/components/addCodeNumber.vue @@ -19,7 +19,7 @@ {{$t('standard')}} + v-model="queryParam.serial_number"> @@ -53,6 +64,9 @@ {{$t('reset')}} {{$t('query')}} + @@ -70,18 +84,18 @@ :loading="loading"> - +
+ +
@@ -96,21 +110,27 @@ - diff --git a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue index 83806afa0..630d05229 100644 --- a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue +++ b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue @@ -3,7 +3,7 @@
- {{$t('ParameteItemCollectionList')}}({{this.$route.query.type == '1' ? $t(this.$route.query.projectName) : $t(this.$route.query.projectName.slice(0,-3)) + '-' + $t(this.$route.query.projectVersion)}}) — {{$t(this.$route.query.title)}} — {{$t(this.$route.query.version)}} + {{ $t('ParameteItemCollectionList') }}({{ this.$route.query.type == '1' ? $t(this.$route.query.projectName) : $t(this.$route.query.projectName.slice(0, -3)) + '-' + $t(this.$route.query.projectVersion) }}) — {{ $t(this.$route.query.title) }} — {{ $t(this.$route.query.version) }}
@@ -22,8 +22,8 @@
- - {{rolename}} + + {{ rolename }}
@@ -33,13 +33,13 @@
-
+
- +
- {{$t('ParameterNo')}} + {{ $t('ParameterNo') }}
@@ -48,7 +48,7 @@
- {{$t('NParameterName')}} + {{ $t('NParameterName') }}
@@ -68,7 +68,7 @@
- {{$t('NareaOfResponsibility')}} + {{ $t('NareaOfResponsibility') }}
- {{ item.value}} + {{ item.value }} @@ -94,18 +94,18 @@
- {{$t('certificationCategory')}} + {{ $t('certificationCategory') }}
+ :triggerChange="false" :dictCode="'cert_category'" />
- {{$t('dre')}} + {{ $t('dre') }}
@@ -114,7 +114,7 @@
- {{$t('sdt')}} + {{ $t('sdt') }}
@@ -123,7 +123,7 @@
- {{$t('status')}} + {{ $t('status') }}
- {{ item.text}} + {{ item.text }} @@ -148,13 +148,15 @@ {{ !toggleSearchStatus ? $t('open') : $t('away') }} - + - {{$t('reset')}} - {{$t('query')}} + {{ $t('reset') }} + {{ $t('query') }} + :fieldList="fieldList" /> @@ -169,12 +171,12 @@ - + @@ -257,66 +259,66 @@
- - {{$t('distributionAndCollection')}} + + {{ $t('distributionAndCollection') }}
- - {{$t('Assignedby')}} + + {{ $t('Assignedby') }}
- - {{$t('dataExport')}} + + {{ $t('dataExport') }}
- - {{$t('Derivedlist')}} + + {{ $t('Derivedlist') }}
- - {{$t('referenceparameter')}} + + {{ $t('referenceparameter') }}
- - {{$t('tempSave')}} + + {{ $t('tempSave') }}
- - {{$t('submit')}} + + {{ $t('submit') }}
- - {{$t('sendBack')}} + + {{ $t('sendBack') }}
- +
- - {{$t('export')}} + + {{ $t('export') }}
- - {{$t('CompulsoryWithdrawal')}} + + {{ $t('CompulsoryWithdrawal') }}
@@ -347,7 +349,7 @@
- + {{ $t('customize') }}
@@ -365,53 +367,50 @@
- - {{$t('dataExport')}} + + {{ $t('dataExport') }}
- - {{$t('Derivedlist')}} + + {{ $t('Derivedlist') }}
- -
-
- {{$t('explain')+': '}} - {{$t('parameterCollectionDescription')}} + @listReset="listReset" @LoginUserType="LoginUserType" />
+
- - + + - + - - - + + + @@ -425,64 +424,65 @@ -
- {{$t('Attentionfreeze')}} +
+ {{ $t('Attentionfreeze') }}
- - + + - - + + - + - + - - + + - - + + - - + + - + @@ -521,7 +521,7 @@
* - {{$t('roleSwitching')}} + {{ $t('roleSwitching') }}
- - {{$t('NiOnumberis')}} + + {{ $t('NiOnumberis') }} - - {{ item.nioNumber }}、 + + {{ item.nioNumber }}、 - - {{$t('Filledperson')}} + + {{ $t('Filledperson') }} -
-
{{$t('NiOnumberis')}}{{ item.nioNumber }},{{$t('Statusis')}}{{ item.state }},{{$t('NoOperationPermissionForthisbutton')}}。 +
+
{{ $t('NiOnumberis') }}{{ item.nioNumber }},{{ $t('Statusis') }}{{ item.state }},{{ $t('NoOperationPermissionForthisbutton') }}。
-
- {{ currentPersonRole =='homo'? $t('certifiedEngineer'): (currentPersonRole =='sdt'? - $t('engineeringInterfacePerson'): $t('completedBy')) }}{{jurisdiction === 'homoQZTH'? $t('Datastateexcept') - : $t('Datastatusis')}} +
+ {{ currentPersonRole == 'homo' ? $t('certifiedEngineer') : (currentPersonRole == 'sdt' ? + $t('engineeringInterfacePerson') : $t('completedBy')) + }}{{ jurisdiction === 'homoQZTH' ? $t('Datastateexcept') + : $t('Datastatusis') }} - '{{$t('CollectionInitiated')}}'、'{{$t('ReturnedPerson')}}'{{$t('or')}}'{{$t('alteration')}}' + '{{ $t('CollectionInitiated') }}'、'{{ $t('ReturnedPerson') }}'{{ $t('or') }}'{{ $t('alteration') }}' - '{{$t('Submitted')}}'{{$t('or')}}'{{$t('alteration')}}' + '{{ $t('Submitted') }}'{{ $t('or') }}'{{ $t('alteration') }}' - '{{$t('CollectionInitiated')}}' + '{{ $t('CollectionInitiated') }}' - '{{$t('handledInterface')}}'{{$t('or')}}'{{$t('Filledreturn')}}' + '{{ $t('handledInterface') }}'{{ $t('or') }}'{{ $t('Filledreturn') }}' - '{{$t('completed')}}''{{$t('or')}}'{{$t('Filledreturn')}}''{{$t('or')}}'{{$t('ReturnedEngineer')}}' + '{{ $t('completed') }}''{{ $t('or') }}'{{ $t('Filledreturn') }}''{{ $t('or') }}'{{ $t('ReturnedEngineer') }}' - '{{$t('completed')}}'{{$t('or')}}'{{$t('ReturnedEngineer')}}'{{$t('or')}}'{{$t('alteration')}}' + '{{ $t('completed') }}'{{ $t('or') }}'{{ $t('ReturnedEngineer') }}'{{ $t('or') }}'{{ $t('alteration') }}' - - {{$t('Submitted')}} + + {{ $t('Submitted') }} -

'{{$t('handledInterface')}}'

- {{$t('or')}} -

'{{$t('Filledreturn')}}'

+

'{{ $t('handledInterface') }}'

+ {{ $t('or') }} +

'{{ $t('Filledreturn') }}'

-

'{{$t('completed')}}'

- {{$t('or')}} -

'{{$t('ReturnedEngineer')}}'

+

'{{ $t('completed') }}'

+ {{ $t('or') }} +

'{{ $t('ReturnedEngineer') }}'

-

'{{$t('SynchronizedLibrary')}}'

- {{$t('or')}} -

'{{$t('CollectionInitiated')}}'

+

'{{ $t('SynchronizedLibrary') }}'

+ {{ $t('or') }} +

'{{ $t('CollectionInitiated') }}'

- - {{$t('completed')}} + + {{ $t('completed') }} - - {{$t('Submitted')}} + + {{ $t('Submitted') }} - {{$t('timeoperation')}} + {{ $t('timeoperation') }}
@@ -653,8 +654,8 @@ :loading="loading" > - {{$t('download')}} - {{$t('delete')}} + {{ $t('download') }} + {{ $t('delete') }} @@ -685,29 +686,29 @@ @cancel="handleCancel" >
-
+
* - {{$t('exportOption')}} + {{ $t('exportOption') }}
- {{$t('includeTitle')}} + {{ $t('includeTitle') }} - {{$t('Notitleincluded')}} + {{ $t('Notitleincluded') }} @@ -727,9 +728,9 @@ > -
- {{$t('Exportsuccessexportlist')}} + {{ $t('Exportsuccessexportlist') }} @@ -737,1024 +738,785 @@ - {{this.$t('pleaseWaitWhileRunning')}} - + {{ this.$t('pleaseWaitWhileRunning') }} +
- \ No newline at end of file From 26a7061edf7a276a58181322284afb9e9b2c9ebb Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Mon, 30 Oct 2023 14:44:20 +0800 Subject: [PATCH 16/73] =?UTF-8?q?=E5=B8=82=E5=9C=BA=E6=B3=95=E8=A7=84?= =?UTF-8?q?=E6=B8=85=E5=8D=95--=E5=8E=86=E5=8F=B2=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-boot/db/蔚来标准sql/dev_third_record.sql | 48 ++ ...DummyInventoryInfoHistoryEOController.java | 180 +++++++ .../entity/DummyInventoryInfoHistoryEO.java | 327 ++++++++++++ .../DummyInventoryInfoHistoryEOMapper.java | 17 + .../xml/DummyInventoryInfoHistoryEOMapper.xml | 48 ++ .../IDummyInventoryInfoHistoryEOService.java | 66 +++ .../impl/DummyInventoryBaseEOServiceImpl.java | 40 +- .../impl/DummyInventoryInfoEOServiceImpl.java | 2 +- ...ummyInventoryInfoHistoryEOServiceImpl.java | 469 ++++++++++++++++++ .../jero/modules/dummy/util/HttpUtils.java | 153 ++++++ ...arketListVersionUpdateLogEOController.java | 45 +- .../entity/MarketListVersionUpdateLogEO.java | 34 +- .../IMarketListVersionUpdateLogEOService.java | 7 +- ...rketListVersionUpdateLogEOServiceImpl.java | 134 +++-- 14 files changed, 1479 insertions(+), 91 deletions(-) create mode 100644 jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/controller/DummyInventoryInfoHistoryEOController.java create mode 100644 jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/entity/DummyInventoryInfoHistoryEO.java create mode 100644 jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/mapper/DummyInventoryInfoHistoryEOMapper.java create mode 100644 jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/mapper/xml/DummyInventoryInfoHistoryEOMapper.xml create mode 100644 jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/IDummyInventoryInfoHistoryEOService.java create mode 100644 jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryInfoHistoryEOServiceImpl.java create mode 100644 jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/util/HttpUtils.java diff --git a/jero-boot/db/蔚来标准sql/dev_third_record.sql b/jero-boot/db/蔚来标准sql/dev_third_record.sql index dd399d067..c22b3b7a6 100644 --- a/jero-boot/db/蔚来标准sql/dev_third_record.sql +++ b/jero-boot/db/蔚来标准sql/dev_third_record.sql @@ -1343,6 +1343,54 @@ ALTER TABLE `problem_management` ADD COLUMN `project_type` varchar(255) NULL COMMENT '相关项目类型' AFTER `problem_priority`; +-- 市场法规清单历史表 2023-10-30 未同步数据库 +CREATE TABLE `dummy_inventory_info_history` ( + `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人', + `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建日期', + `update_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新人', + `update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新日期', + `sys_org_code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '所属部门', + `dummy_inventory_base_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '法规清单基础表id', + `serial_number` varchar(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '编号', + `title` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '标题', + `shi4_yong4_fan4_wei2` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '适用范围', + `state` varchar(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '状态', + `technology_territory` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '技术领域', + `xin1_che1_xing2_shi2_shi1_ri4_qi1` datetime(0) NULL DEFAULT NULL COMMENT '新车型实施日期', + `implement_time` datetime(0) NULL DEFAULT NULL COMMENT '在产车实施日期', + `corresponding_standard` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '对应标准', + `corresponding_standard_id` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '对应标准id', + `wvta_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'WVTA ID', + `subtitle` varchar(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '子标题', + `implement_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '实施类别', + `attestation_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '认证类型', + `attestation_rank` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '认证级别', + `duty_territory` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '责任领域', + `remark` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `design_deliverable_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设计符合性确认-交付物类型', + `design_deliverable_template` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设计符合性确认-交付物模板', + `design_initiator` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设计符合性确认-发起人', + `design_duty` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设计符合性确认-责任人', + `prehomo_deliverable_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'prehomo确认-交付物类型', + `prehomo_deliverable_template` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'prehomo确认-交付物模板', + `prehomo_initiator` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'prehomo确认-发起人', + `prehomo_duty` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'prehomo确认-责任人', + `verify_deliverable_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '验证符合性确认-交付物类型', + `verify_deliverable_template` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '验证符合性确认-交付物模板', + `verify_initiator` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '验证符合性确认-发起人', + `verify_duty` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '验证符合性确认-责任人', + `region` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '适用地区', + `applicable_supplement` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '适用增补件', + `verify_remark` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '验证备注', + `prehomo_remark` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'pre备注', + `design_remark` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设计备注', + `buss_document_library_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '文档库id', + `duty_depart` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '责任部门', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; + + diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/controller/DummyInventoryInfoHistoryEOController.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/controller/DummyInventoryInfoHistoryEOController.java new file mode 100644 index 000000000..44d5bf2d7 --- /dev/null +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/controller/DummyInventoryInfoHistoryEOController.java @@ -0,0 +1,180 @@ +package com.jero.modules.dummy.controller; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.jero.common.api.vo.Result; +import com.jero.common.aspect.annotation.AutoLog; +import com.jero.common.system.base.controller.JeroController; +import com.jero.common.system.query.QueryGenerator; +import com.jero.modules.dummy.entity.DummyInventoryInfoHistoryEO; +import com.jero.modules.dummy.service.IDummyInventoryInfoHistoryEOService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.servlet.ModelAndView; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.util.Arrays; +import java.util.List; + + + /** + * @Description: 市场法规清单历史版本 + * @Author: jero-boot + * @Date: 2023-10-30 + * @Version: V1.0 + */ +@Api(tags="市场法规清单历史版本") +@RestController +@RequestMapping("/dummy/dummyInventoryInfoHistoryEO") +@Slf4j +public class DummyInventoryInfoHistoryEOController extends JeroController { + @Autowired + private IDummyInventoryInfoHistoryEOService dummyInventoryInfoHistoryEOService; + + /** + * 分页列表查询 + * + * @param dummyInventoryInfoHistoryEO + * @param pageNo + * @param pageSize + * @param req + * @return + */ + @AutoLog(value = "市场法规清单历史版本-分页列表查询") + @ApiOperation(value="市场法规清单历史版本-分页列表查询", notes="市场法规清单历史版本-分页列表查询") + @GetMapping(value = "/page") + public Result queryPageList(DummyInventoryInfoHistoryEO dummyInventoryInfoHistoryEO, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(dummyInventoryInfoHistoryEO, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = dummyInventoryInfoHistoryEOService.getPageInfo(page,dummyInventoryInfoHistoryEO); +// IPage pageList = dummyInventoryInfoHistoryEOService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 列表查询 + * + * @return + */ + @AutoLog(value = "市场法规清单历史版本-列表查询") + @ApiOperation(value="市场法规清单历史版本-列表查询", notes="市场法规清单历史版本-列表查询") + @GetMapping(value = "/list") + public Result> queryList() { + List list = dummyInventoryInfoHistoryEOService.queryList(); + return Result.OK(list); + } + + /** + * 添加 + * + * @param dummyInventoryInfoHistoryEO + * @return + */ + @AutoLog(value = "市场法规清单历史版本-添加") + @ApiOperation(value="市场法规清单历史版本-添加", notes="市场法规清单历史版本-添加") + @PostMapping(value = "/add") + public Result add(@Validated @RequestBody DummyInventoryInfoHistoryEO dummyInventoryInfoHistoryEO) { + dummyInventoryInfoHistoryEOService.add(dummyInventoryInfoHistoryEO); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param dummyInventoryInfoHistoryEO + * @return + */ + @AutoLog(value = "市场法规清单历史版本-编辑") + @ApiOperation(value="市场法规清单历史版本-编辑", notes="市场法规清单历史版本-编辑") + @PutMapping(value = "/edit") + public Result edit(@Validated @RequestBody DummyInventoryInfoHistoryEO dummyInventoryInfoHistoryEO) { + dummyInventoryInfoHistoryEOService.editById(dummyInventoryInfoHistoryEO); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @AutoLog(value = "市场法规清单历史版本-通过id删除") + @ApiOperation(value="市场法规清单历史版本-通过id删除", notes="市场法规清单历史版本-通过id删除") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name="id",required=true) String id) { + dummyInventoryInfoHistoryEOService.deleteById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @AutoLog(value = "市场法规清单历史版本-批量删除") + @ApiOperation(value="市场法规清单历史版本-批量删除", notes="市场法规清单历史版本-批量删除") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name="ids",required=true) String ids) { + this.dummyInventoryInfoHistoryEOService.deleteByIds(Arrays.asList(ids.split(","))); + return Result.OK("批量删除成功!"); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + @AutoLog(value = "市场法规清单历史版本-通过id查询") + @ApiOperation(value="市场法规清单历史版本-通过id查询", notes="市场法规清单历史版本-通过id查询") + @GetMapping(value = "/queryById") + public Result queryById(@RequestParam(name="id",required=true) String id) { + DummyInventoryInfoHistoryEO dummyInventoryInfoHistoryEO = dummyInventoryInfoHistoryEOService.queryById(id); + if(dummyInventoryInfoHistoryEO==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(dummyInventoryInfoHistoryEO); + } + + /** + * 导出excel + * + * @param request + * @param dummyInventoryInfoHistoryEO + */ + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, DummyInventoryInfoHistoryEO dummyInventoryInfoHistoryEO) { + return super.exportXls(request, dummyInventoryInfoHistoryEO, DummyInventoryInfoHistoryEO.class, "市场法规清单历史版本"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, DummyInventoryInfoHistoryEO.class); + } + +} diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/entity/DummyInventoryInfoHistoryEO.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/entity/DummyInventoryInfoHistoryEO.java new file mode 100644 index 000000000..2f9cf99d4 --- /dev/null +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/entity/DummyInventoryInfoHistoryEO.java @@ -0,0 +1,327 @@ +package com.jero.modules.dummy.entity; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; +import org.jeecgframework.poi.excel.annotation.Excel; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; + + +/** + * @Description: 市场法规清单历史版本 + * @Author: jero-boot + * @Date: 2023-10-30 + * @Version: V1.0 + */ +@Data +@TableName("dummy_inventory_info_history") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value="dummy_inventory_info_history对象", description="市场法规清单历史版本") +public class DummyInventoryInfoHistoryEO implements Serializable { + private static final long serialVersionUID = 1L; + + /**主键*/ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "主键") + private java.lang.String id; + + /**创建人*/ + @ApiModelProperty(value = "创建人") + private java.lang.String createBy; + + /**创建日期*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "创建日期") + private java.util.Date createTime; + + /**更新人*/ + @ApiModelProperty(value = "更新人") + private java.lang.String updateBy; + + /**更新日期*/ + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "更新日期") + private java.util.Date updateTime; + + /**所属部门*/ + @ApiModelProperty(value = "所属部门") + private java.lang.String sysOrgCode; + + /**法规清单基础表id*/ + @Excel(name = "法规清单基础表id", width = 15) + @ApiModelProperty(value = "法规清单基础表id") + private java.lang.String dummyInventoryBaseId; + + /**编号*/ + @Excel(name = "编号", width = 15) + @ApiModelProperty(value = "编号") + private java.lang.String serialNumber; + + /**标题*/ + @Excel(name = "标题", width = 15) + @ApiModelProperty(value = "标题") + private java.lang.String title; + + /**适用范围*/ + @Excel(name = "适用范围", width = 15) + @ApiModelProperty(value = "适用范围") + private java.lang.String shi4Yong4Fan4Wei2; + + /**状态*/ + @Excel(name = "状态", width = 15) + @ApiModelProperty(value = "状态") + private java.lang.String state; + + /**技术领域*/ + @Excel(name = "技术领域", width = 15) + @ApiModelProperty(value = "技术领域") + private java.lang.String technologyTerritory; + + /**新车型实施日期*/ + @Excel(name = "新车型实施日期", width = 15, format = "yyyy-MM-dd") + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") + @DateTimeFormat(pattern="yyyy-MM-dd") + @ApiModelProperty(value = "新车型实施日期") + private java.util.Date xin1Che1Xing2Shi2Shi1Ri4Qi1; + + /**在产车实施日期*/ + @Excel(name = "在产车实施日期", width = 15, format = "yyyy-MM-dd") + @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd") + @DateTimeFormat(pattern="yyyy-MM-dd") + @ApiModelProperty(value = "在产车实施日期") + private java.util.Date implementTime; + + /**对应标准*/ + @Excel(name = "对应标准", width = 15) + @ApiModelProperty(value = "对应标准") + private java.lang.String correspondingStandard; + + /**对应标准id*/ + @Excel(name = "对应标准id", width = 15) + @ApiModelProperty(value = "对应标准id") + private java.lang.String correspondingStandardId; + + /**WVTA ID*/ + @Excel(name = "WVTA ID", width = 15) + @ApiModelProperty(value = "WVTA ID") + private java.lang.String wvtaId; + + /**子标题*/ + @Excel(name = "子标题", width = 15) + @ApiModelProperty(value = "子标题") + private java.lang.String subtitle; + + /**实施类别*/ + @Excel(name = "实施类别", width = 15) + @ApiModelProperty(value = "实施类别") + private java.lang.String implementType; + + /**认证类型*/ + @Excel(name = "认证类型", width = 15) + @ApiModelProperty(value = "认证类型") + private java.lang.String attestationType; + + /**认证级别*/ + @Excel(name = "认证级别", width = 15) + @ApiModelProperty(value = "认证级别") + private java.lang.String attestationRank; + + /**责任领域*/ + @Excel(name = "责任领域", width = 15) + @ApiModelProperty(value = "责任领域") + private java.lang.String dutyTerritory; + + /**备注*/ + @Excel(name = "备注", width = 15) + @ApiModelProperty(value = "备注") + private java.lang.String remark; + + /**设计符合性确认-交付物类型*/ + @Excel(name = "设计符合性确认-交付物类型", width = 15) + @ApiModelProperty(value = "设计符合性确认-交付物类型") + private java.lang.String designDeliverableType; + + /**设计符合性确认-交付物模板*/ + @Excel(name = "设计符合性确认-交付物模板", width = 15) + @ApiModelProperty(value = "设计符合性确认-交付物模板") + private java.lang.String designDeliverableTemplate; + + /**设计符合性确认-发起人*/ + @Excel(name = "设计符合性确认-发起人", width = 15) + @ApiModelProperty(value = "设计符合性确认-发起人") + private java.lang.String designInitiator; + + /**设计符合性确认-责任人*/ + @Excel(name = "设计符合性确认-责任人", width = 15) + @ApiModelProperty(value = "设计符合性确认-责任人") + private java.lang.String designDuty; + + /**prehomo确认-交付物类型*/ + @Excel(name = "prehomo确认-交付物类型", width = 15) + @ApiModelProperty(value = "prehomo确认-交付物类型") + private java.lang.String prehomoDeliverableType; + + /**prehomo确认-交付物模板*/ + @Excel(name = "prehomo确认-交付物模板", width = 15) + @ApiModelProperty(value = "prehomo确认-交付物模板") + private java.lang.String prehomoDeliverableTemplate; + + /**prehomo确认-发起人*/ + @Excel(name = "prehomo确认-发起人", width = 15) + @ApiModelProperty(value = "prehomo确认-发起人") + private java.lang.String prehomoInitiator; + + /**prehomo确认-责任人*/ + @Excel(name = "prehomo确认-责任人", width = 15) + @ApiModelProperty(value = "prehomo确认-责任人") + private java.lang.String prehomoDuty; + + /**验证符合性确认-交付物类型*/ + @Excel(name = "验证符合性确认-交付物类型", width = 15) + @ApiModelProperty(value = "验证符合性确认-交付物类型") + private java.lang.String verifyDeliverableType; + + /**验证符合性确认-交付物模板*/ + @Excel(name = "验证符合性确认-交付物模板", width = 15) + @ApiModelProperty(value = "验证符合性确认-交付物模板") + private java.lang.String verifyDeliverableTemplate; + + /**验证符合性确认-发起人*/ + @Excel(name = "验证符合性确认-发起人", width = 15) + @ApiModelProperty(value = "验证符合性确认-发起人") + private java.lang.String verifyInitiator; + + /**验证符合性确认-责任人*/ + @Excel(name = "验证符合性确认-责任人", width = 15) + @ApiModelProperty(value = "验证符合性确认-责任人") + private java.lang.String verifyDuty; + + /**适用地区*/ + @Excel(name = "适用地区", width = 15) + @ApiModelProperty(value = "适用地区") + private java.lang.String region; + + /**适用增补件*/ + @Excel(name = "适用增补件", width = 15) + @ApiModelProperty(value = "适用增补件") + private java.lang.String applicableSupplement; + + /**验证备注*/ + @Excel(name = "验证备注", width = 15) + @ApiModelProperty(value = "验证备注") + private java.lang.String verifyRemark; + + /**pre备注*/ + @Excel(name = "pre备注", width = 15) + @ApiModelProperty(value = "pre备注") + private java.lang.String prehomoRemark; + + /**设计备注*/ + @Excel(name = "设计备注", width = 15) + @ApiModelProperty(value = "设计备注") + private java.lang.String designRemark; + + /**文档库id*/ + @Excel(name = "文档库id", width = 15) + @ApiModelProperty(value = "文档库id") + private java.lang.String bussDocumentLibraryId; + + /**责任部门*/ + @Excel(name = "责任部门", width = 15) + @ApiModelProperty(value = "责任部门") + private java.lang.String dutyDepart; + + @TableField(exist = false) + private String xin1Che1Xing2Shi2Shi1Ri4Qi1String; + + @TableField(exist = false) + private String implementTimeString; + + @TableField(exist = false) + private java.lang.String designDeliverableTypeName; + + @TableField(exist = false) + private java.lang.String prehomoDeliverableTypeName; + + @TableField(exist = false) + private java.lang.String verifyDeliverableTypeName; + + @TableField(exist = false) + private java.lang.String technologyTerritoryName; + + @TableField(exist = false) + private java.lang.String designDeliverableTemplateName; + + @TableField(exist = false) + private java.lang.String prehomoDeliverableTemplateName; + + @TableField(exist = false) + private java.lang.String verifyDeliverableTemplateName; + + @TableField(exist = false) + private String cut; + + @TableField(exist = false) + private String region_dictText; + + @TableField(exist = false) + private java.lang.String shi4Yong4Fan4Wei2Str; + + @TableField(exist = false) + private java.lang.String stateStr; + + @TableField(exist = false) + private String implementType_dictText; + + @TableField(exist = false) + private String attestationType_dictText; + + @TableField(exist = false) + private java.lang.String attestationRankStr; + + @TableField(exist = false) + private java.lang.String dutyTerritoryStr; + + @TableField(exist = false) + private String designInitiator_dictText; + + @TableField(exist = false) + private String designDuty_dictText; + + @TableField(exist = false) + private String prehomoInitiator_dictText; + + @TableField(exist = false) + private String prehomoDuty_dictText; + + @TableField(exist = false) + private String verifyInitiator_dictText; + + @TableField(exist = false) + private String verifyDuty_dictText; + + @TableField(exist = false) + private String state_dictText; + + @TableField(exist = false) + private String shi4Yong4Fan4Wei2_dictText; + + @TableField(exist = false) + private String attestationRank_dictText; + + @TableField(exist = false) + private String dutyTerritory_dictText; + +} diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/mapper/DummyInventoryInfoHistoryEOMapper.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/mapper/DummyInventoryInfoHistoryEOMapper.java new file mode 100644 index 000000000..6c87d1752 --- /dev/null +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/mapper/DummyInventoryInfoHistoryEOMapper.java @@ -0,0 +1,17 @@ +package com.jero.modules.dummy.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import com.jero.modules.dummy.entity.DummyInventoryInfoHistoryEO; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: 市场法规清单历史版本 + * @Author: jero-boot + * @Date: 2023-10-30 + * @Version: V1.0 + */ +public interface DummyInventoryInfoHistoryEOMapper extends BaseMapper { + +} diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/mapper/xml/DummyInventoryInfoHistoryEOMapper.xml b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/mapper/xml/DummyInventoryInfoHistoryEOMapper.xml new file mode 100644 index 000000000..62bb8dfd3 --- /dev/null +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/mapper/xml/DummyInventoryInfoHistoryEOMapper.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/IDummyInventoryInfoHistoryEOService.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/IDummyInventoryInfoHistoryEOService.java new file mode 100644 index 000000000..144e2de66 --- /dev/null +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/IDummyInventoryInfoHistoryEOService.java @@ -0,0 +1,66 @@ +package com.jero.modules.dummy.service; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.IService; +import com.jero.modules.dummy.entity.DummyInventoryInfoHistoryEO; + +import java.util.List; + +/** + * @Description: 市场法规清单历史版本 + * @Author: jero-boot + * @Date: 2023-10-30 + * @Version: V1.0 + */ +public interface IDummyInventoryInfoHistoryEOService extends IService { + + /** + * 保存 + * + * @param dummyInventoryInfoHistoryEO + * @return + */ + void add(DummyInventoryInfoHistoryEO dummyInventoryInfoHistoryEO); + + /** + * 更新 + * + * @param dummyInventoryInfoHistoryEO + * @return + */ + void editById(DummyInventoryInfoHistoryEO dummyInventoryInfoHistoryEO); + + /** + * 通过id删除 + * + * @param id + * @return + */ + void deleteById(String id); + + /** + * 批量删除 + * + * @param ids + * @return + */ + void deleteByIds(List ids); + + /** + * 通过id查询 + * + * @param id + * @return + */ + DummyInventoryInfoHistoryEO queryById(String id); + + /** + * 列表查询 + * + * @return + */ + List queryList(); + + IPage getPageInfo(Page page,DummyInventoryInfoHistoryEO dummyInventoryInfoHistoryEO); +} diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryBaseEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryBaseEOServiceImpl.java index f06bd5cd0..1749f783d 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryBaseEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryBaseEOServiceImpl.java @@ -17,6 +17,7 @@ import com.jero.modules.domain.service.DomainUserRelService; import com.jero.modules.dummy.entity.DummyContentChangeEO; import com.jero.modules.dummy.entity.DummyInventoryBaseEO; import com.jero.modules.dummy.entity.DummyInventoryInfoEO; +import com.jero.modules.dummy.entity.DummyInventoryInfoHistoryEO; import com.jero.modules.dummy.entity.DummyLogEO; import com.jero.modules.dummy.entity.DummyReadEO; import com.jero.modules.dummy.enums.DummyInventoryBaseFieldEnum; @@ -49,6 +50,7 @@ import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.ObjectUtils; import org.apache.commons.lang3.StringUtils; import org.apache.shiro.SecurityUtils; +import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; @@ -65,6 +67,7 @@ import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; +import java.util.UUID; import java.util.stream.Collectors; /** @@ -113,6 +116,8 @@ public class DummyInventoryBaseEOServiceImpl extends ServiceImpl createByNameList =new ArrayList<>(); -// if (StringUtils.isNotBlank(baseEO.getCreateBy())) { -// createByNameList = Arrays.asList(baseEO.getCreateBy().split(",")); -// -// if (CollectionUtils.isNotEmpty(createByNameList)){ -// if (!createByNameList.contains(loginUserName)) { -// if (CutEnum.CN.getValue().equals(dummyInventoryBaseEO.getCut())) { -// throw new JeroBootException("当前用户非创建者,无法发布"); -// } else { -// throw new JeroBootException("The current user is not the creator and cannot be issued."); -// } -// } -// } -// } Date now = new Date(); UpdateWrapper baseWrapper=new UpdateWrapper<>(); baseWrapper.set("state",dummyInventoryBaseEO.getState()); @@ -381,6 +372,27 @@ public class DummyInventoryBaseEOServiceImpl extends ServiceImpl wrapper = new LambdaQueryWrapper<>(); + wrapper.eq(DummyInventoryInfoEO::getDummyInventoryBaseId,dummyInventoryBaseEO.getId()); + List dummyInventoryInfoEOList = iDummyInventoryInfoEOService.list(wrapper); + if(ObjectUtils.isNotEmpty(dummyInventoryInfoEOList)){ + List dummyInventoryInfoHistoryEOList = new ArrayList<>(); + for (DummyInventoryInfoEO dummyInventoryInfoEO : dummyInventoryInfoEOList) { + DummyInventoryInfoHistoryEO dummyInventoryInfoHistoryEO = new DummyInventoryInfoHistoryEO(); + BeanUtils.copyProperties(dummyInventoryInfoEO,dummyInventoryInfoHistoryEO); + dummyInventoryInfoHistoryEO.setId(UUID.randomUUID().toString().replace("-", "")); + dummyInventoryInfoHistoryEOList.add(dummyInventoryInfoHistoryEO); + } + dummyInventoryInfoHistoryEOService.saveBatch(dummyInventoryInfoHistoryEOList); + } + } + + + // this.updateById(dummyInventoryBaseEO); //不管有没有维护清单,都返回操作成功 //发布与撤回均需要发消息(向订阅的人员发消息) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryInfoEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryInfoEOServiceImpl.java index 7ff8f138f..d8fbb7cfc 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryInfoEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryInfoEOServiceImpl.java @@ -211,7 +211,7 @@ public class DummyInventoryInfoEOServiceImpl extends ServiceImpl implements IDummyInventoryInfoHistoryEOService { + + @Autowired + private IPhasedImplementationDetailsEOService phasedImplementationDetailsEOService; + @Autowired + private IOSSFileService iOSSFileService; + @Autowired + private SysCategoryServiceImpl sysCategoryService; + @Autowired + private SysDictItemServiceImpl sysDictItemServiceImpl; + + + + /** + * 保存 + * + * @param dummyInventoryInfoHistoryEO + * @return + */ + @Override + public void add(DummyInventoryInfoHistoryEO dummyInventoryInfoHistoryEO) { + Date now = new Date(); + dummyInventoryInfoHistoryEO.setCreateTime(now); + dummyInventoryInfoHistoryEO.setUpdateTime(now); + save(dummyInventoryInfoHistoryEO); + } + + /** + * 更新 + * + * @param dummyInventoryInfoHistoryEO + * @return + */ + @Override + public void editById(DummyInventoryInfoHistoryEO dummyInventoryInfoHistoryEO) { + Date now = new Date(); + dummyInventoryInfoHistoryEO.setUpdateTime(now); + saveOrUpdate(dummyInventoryInfoHistoryEO); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @Override + public void deleteById(String id) { + removeById(id); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @Override + public void deleteByIds(List ids) { + removeByIds(ids); + } + + /** + * 通过id查询 + * + * @param id + * @return + */ + @Override + public DummyInventoryInfoHistoryEO queryById(String id) { + return getById(id); + } + + /** + * 列表查询 + * + * @return + */ + @Override + public List queryList() { + return list(); + } + + @Override + public IPage getPageInfo(Page page,DummyInventoryInfoHistoryEO dummyInventoryInfoHistoryEO) { + LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); + wrapper.eq(DummyInventoryInfoHistoryEO::getDummyInventoryBaseId,dummyInventoryInfoHistoryEO.getDummyInventoryBaseId()); + Page historyEOPage = this.page(page, wrapper); + + treeDict(dummyInventoryInfoHistoryEO, historyEOPage.getRecords()); + + disposeData(historyEOPage.getRecords()); + + dataDicDispose(historyEOPage.getRecords(),dummyInventoryInfoHistoryEO.getCut()); + + return historyEOPage; + } + + private void disposeData(List datas) { + if(CollectionUtils.isNotEmpty(datas)){ + List bussDocumentLibraryIdList = datas.stream().map(DummyInventoryInfoHistoryEO::getBussDocumentLibraryId).distinct().collect(Collectors.toList()); + QueryWrapper phasedDetailsQueryWrap = new QueryWrapper<>(); + phasedDetailsQueryWrap.lambda().in(PhasedImplementationDetailsEO::getBussDocumentLibraryId,bussDocumentLibraryIdList); + List phasedDetailsList = this.phasedImplementationDetailsEOService.list(phasedDetailsQueryWrap); + + // 新车型分阶段实施数据信息 + List newCarModelPhasedDetailsList = phasedDetailsList.stream().filter(phasedDetails -> { + boolean flag = false; + if(StringUtils.contains(phasedDetails.getImplementationType(), ImplementationTypeEnum.NEW_CAR_MODEL.getItemValue())){ + flag = true; + } + return flag; + }).collect(Collectors.toList()); + + // 在产车分阶段实施数据信息 + List carInProductionPhasedDetailsList = phasedDetailsList.stream().filter(phasedDetails -> { + boolean flag = false; + if(StringUtils.contains(phasedDetails.getImplementationType(), ImplementationTypeEnum.CAR_IN_PRODUCTION.getItemValue())){ + flag = true; + } + return flag; + }).collect(Collectors.toList()); + + for (DummyInventoryInfoHistoryEO data : datas) { + // 处理新车型实施日期展示 + List newCarModelDateList = newCarModelPhasedDetailsList.stream().filter(phasedDetails -> { + boolean flag = false; + if (StringUtils.equals(phasedDetails.getBussDocumentLibraryId(), data.getBussDocumentLibraryId())) { + flag = true; + } + return flag; + }).map(PhasedImplementationDetailsEO::getImplementationDate).collect(Collectors.toList()); + if(data.getXin1Che1Xing2Shi2Shi1Ri4Qi1() != null){ + newCarModelDateList.add(data.getXin1Che1Xing2Shi2Shi1Ri4Qi1()); + } + String newCarModelDateStr = DateUtils.formatDateList(newCarModelDateList); + data.setXin1Che1Xing2Shi2Shi1Ri4Qi1String(newCarModelDateStr); + + // 处理在产车实施日期展示 + List carInProductionDateList = carInProductionPhasedDetailsList.stream().filter(phasedDetails -> { + boolean flag = false; + if (StringUtils.equals(phasedDetails.getBussDocumentLibraryId(), data.getBussDocumentLibraryId())) { + flag = true; + } + return flag; + }).map(PhasedImplementationDetailsEO::getImplementationDate).collect(Collectors.toList()); + if(data.getImplementTime() != null){ + carInProductionDateList.add(data.getImplementTime()); + } + String carInProductionDateStr = DateUtils.formatDateList(carInProductionDateList); + data.setImplementTimeString(carInProductionDateStr); + } + } + } + + public void dataDicDispose(List datas, String cut){ + if(CollectionUtils.isNotEmpty(datas)){ + List sysDictItems = this.sysDictItemServiceImpl.getBaseMapper().selectItemsAll(); + + for (DummyInventoryInfoHistoryEO data : datas) { + // 适用地区 + String region = data.getRegion(); + if(StringUtils.isNotEmpty(region)){ + String region_dictText = this.disposeShowDictItemValue(sysDictItems, region,cut, DummyInventoryBaseFieldEnum.REGION.getValue()); + data.setRegion_dictText(region_dictText); + } + + // 适用范围 + String shi4Yong4Fan4Wei2 = data.getShi4Yong4Fan4Wei2(); + if(StringUtils.isNotEmpty(shi4Yong4Fan4Wei2)){ + String shi4Yong4Fan4Wei2_dictText = this.disposeShowDictItemValue(sysDictItems, shi4Yong4Fan4Wei2,cut, DummyInventoryBaseFieldEnum.SHI4_YONG4_FAN4_WEI2.getValue()); + data.setShi4Yong4Fan4Wei2_dictText(shi4Yong4Fan4Wei2_dictText); + data.setShi4Yong4Fan4Wei2Str(shi4Yong4Fan4Wei2_dictText); + }else{ + data.setShi4Yong4Fan4Wei2Str(""); + } + + // 状态 + String state = data.getState(); + if(StringUtils.isNotEmpty(state)){ + String state_dictText = this.disposeShowDictItemValue(sysDictItems, state,cut, DummyInventoryBaseFieldEnum.STATE.getValue()); + data.setState_dictText(state_dictText); + data.setStateStr(state_dictText); + }else{ + data.setStateStr(""); + } + + // 实施类别 + String implementType = data.getImplementType(); + if(StringUtils.isNotEmpty(implementType)){ + String implementType_dictText = this.disposeShowDictItemValue(sysDictItems, implementType,cut, DummyInventoryBaseFieldEnum.IMPLEMENT_TYPE.getValue()); + data.setImplementType_dictText(implementType_dictText); + } + + // 认证类别 + String attestationType = data.getAttestationType(); + if(StringUtils.isNotEmpty(attestationType)){ + String attestationType_dictText = this.disposeShowDictItemValue(sysDictItems, attestationType,cut, DummyInventoryBaseFieldEnum.ATTESTATION_TYPE.getValue()); + data.setAttestationType_dictText(attestationType_dictText); + } + + // 认证级别 + String attestationRank = data.getAttestationRank(); + if(StringUtils.isNotEmpty(attestationRank)){ + String attestationRank_dictText = this.disposeShowDictItemValue(sysDictItems, attestationRank,cut, DummyInventoryBaseFieldEnum.ATTESTATION_RANK.getValue()); + data.setAttestationRank_dictText(attestationRank_dictText); + data.setAttestationRankStr(attestationRank_dictText); + }else{ + data.setAttestationRankStr(""); + } + + // 责任领域 + String dutyTerritory = data.getDutyTerritory(); + if(StringUtils.isNotEmpty(dutyTerritory)){ + String dutyTerritory_dictText = this.disposeShowDictItemValue(sysDictItems, dutyTerritory,cut, DummyInventoryBaseFieldEnum.DUTY_TERRITORY.getValue()); + data.setDutyTerritory_dictText(dutyTerritory_dictText); + data.setDutyTerritoryStr(dutyTerritory_dictText); + }else{ + data.setDutyTerritoryStr(""); + } + + // 设计符合性-发起人 + String designInitiator = data.getDesignInitiator(); + if(StringUtils.isNotEmpty(designInitiator)){ + String designInitiator_dictText = this.disposeShowDictItemValue(sysDictItems, designInitiator,cut, DummyInventoryBaseFieldEnum.DESIGN_INITIATOR.getValue()); + data.setDesignInitiator_dictText(designInitiator_dictText); + } + + // 设计符合性-责任人 + String designDuty = data.getDesignDuty(); + if(StringUtils.isNotEmpty(designDuty)){ + String designDuty_dictText = this.disposeShowDictItemValue(sysDictItems, designDuty,cut, DummyInventoryBaseFieldEnum.DESIGN_DUTY.getValue()); + data.setDesignDuty_dictText(designDuty_dictText); + } + + // preHomo-发起人 + String prehomoInitiator = data.getPrehomoInitiator(); + if(StringUtils.isNotEmpty(prehomoInitiator)){ + String prehomoInitiator_dictText = this.disposeShowDictItemValue(sysDictItems, prehomoInitiator,cut, DummyInventoryBaseFieldEnum.PREHOMO_INITIATOR.getValue()); + data.setPrehomoInitiator_dictText(prehomoInitiator_dictText); + } + + // preHomo-责任人 + String prehomoDuty = data.getPrehomoDuty(); + if(StringUtils.isNotEmpty(prehomoDuty)){ + String prehomoDuty_dictText = this.disposeShowDictItemValue(sysDictItems, prehomoDuty,cut, DummyInventoryBaseFieldEnum.PREHOMO_DUTY.getValue()); + data.setPrehomoDuty_dictText(prehomoDuty_dictText); + } + + // 验证符合性-发起人 + String verifyInitiator = data.getVerifyInitiator(); + if(StringUtils.isNotEmpty(verifyInitiator)){ + String verifyInitiator_dictText = this.disposeShowDictItemValue(sysDictItems, verifyInitiator,cut, DummyInventoryBaseFieldEnum.VERIFY_INITIATOR.getValue()); + data.setVerifyInitiator_dictText(verifyInitiator_dictText); + } + + // 验证符合性-责任人 + String verifyDuty = data.getVerifyDuty(); + if(StringUtils.isNotEmpty(verifyDuty)){ + String verifyDuty_dictText = this.disposeShowDictItemValue(sysDictItems, verifyDuty,cut, DummyInventoryBaseFieldEnum.VERIFY_DUTY.getValue()); + data.setVerifyDuty_dictText(verifyDuty_dictText); + } + } + } + } + + private void treeDict(DummyInventoryInfoHistoryEO dummyInventoryInfoHistoryEO, + List dummyInventoryInfoHistoryEOList) { + + List deliverableList = new ArrayList<>(); + if(dummyInventoryInfoHistoryEOList.size() != 0){ + for (DummyInventoryInfoHistoryEO record : dummyInventoryInfoHistoryEOList) { + //设计符合性确认交付物模板 + if(StringUtils.isNotBlank(record.getDesignDeliverableTemplate())){ + deliverableList.addAll(Arrays.asList(record.getDesignDeliverableTemplate().split(","))); + } + // Prehomo确认交付物模板 + if(StringUtils.isNotBlank(record.getPrehomoDeliverableTemplate())){ + deliverableList.addAll(Arrays.asList(record.getPrehomoDeliverableTemplate().split(","))); + } + // 验证符合性确认交付物模板 + if(StringUtils.isNotBlank(record.getVerifyDeliverableTemplate())){ + deliverableList.addAll(Arrays.asList(record.getVerifyDeliverableTemplate().split(","))); + } + } + + //文件 + List fileInfos = new ArrayList<>(); + if(deliverableList.size() != 0){ + fileInfos = iOSSFileService.getFileInfos(StringUtils.join(deliverableList, ",")); + } + + //树形结构数据字典(技术领域) + List categoryList = sysCategoryService.list(); + + for (DummyInventoryInfoHistoryEO record : dummyInventoryInfoHistoryEOList) { + if(StringUtils.isBlank(record.getWvtaId())){ + record.setWvtaId(""); + } + //技术领域 + if (categoryList.size() != 0 && StringUtils.isNotBlank(record.getTechnologyTerritory())) { + List technologyTerritoryList = Arrays.asList(record.getTechnologyTerritory().split(",")); + String technologyTerritoryName = getTreeName(dummyInventoryInfoHistoryEO, categoryList, technologyTerritoryList); + record.setTechnologyTerritoryName(technologyTerritoryName); + } + //设计交付物类型 + if(StringUtils.isNotBlank(record.getDesignDeliverableType())){ + List designDeliverableTypeList = Arrays.asList(record.getDesignDeliverableType().split(",")); + String name = getTreeName(dummyInventoryInfoHistoryEO, categoryList, designDeliverableTypeList); + record.setDesignDeliverableTypeName(name); + } + + //pre交付物类型 + if(StringUtils.isNotBlank(record.getPrehomoDeliverableType())){ + List prehomoDeliverableTypeList = Arrays.asList(record.getPrehomoDeliverableType().split(",")); + String name = getTreeName(dummyInventoryInfoHistoryEO, categoryList, prehomoDeliverableTypeList); + record.setPrehomoDeliverableTypeName(name); + } + + //验证交付物类型 + if(StringUtils.isNotBlank(record.getVerifyDeliverableType())){ + List verifyDeliverableTypeList = Arrays.asList(record.getVerifyDeliverableType().split(",")); + String name = getTreeName(dummyInventoryInfoHistoryEO, categoryList, verifyDeliverableTypeList); + record.setVerifyDeliverableTypeName(name); + } + + //交付物类型模板 + if(fileInfos.size() != 0){ + if(StringUtils.isNotBlank(record.getDesignDeliverableTemplate())){ + String fileName = getFileName(fileInfos,record.getDesignDeliverableTemplate()); + if(StringUtils.isNotBlank(fileName)){ + record.setDesignDeliverableTemplateName(fileName); + } + } + if(StringUtils.isNotBlank(record.getPrehomoDeliverableTemplate())){ + String fileName = getFileName(fileInfos,record.getPrehomoDeliverableTemplate()); + if(StringUtils.isNotBlank(fileName)){ + record.setPrehomoDeliverableTemplateName(fileName); + } + } + if(StringUtils.isNotBlank(record.getVerifyDeliverableTemplate())){ + String fileName = getFileName(fileInfos,record.getVerifyDeliverableTemplate()); + if(StringUtils.isNotBlank(fileName)){ + record.setVerifyDeliverableTemplateName(fileName); + + } + } + } + } + } + } + + private String getTreeName(DummyInventoryInfoHistoryEO dummyInventoryInfoHistoryEO, + List categoryList, + List technologyTerritoryList) { + StringBuilder sb = new StringBuilder(); + for (String technologyTerritory : technologyTerritoryList) { + List collect = categoryList.stream().filter(e -> technologyTerritory.equals(e.getId())).collect(Collectors.toList()); + if(collect.size() != 0){ + if (CutEnum.CN.getValue().equals(dummyInventoryInfoHistoryEO.getCut())) { + sb.append(collect.get(0).getName() + ","); + } else { + sb.append(collect.get(0).getEnName()); + } + } + } + String technologyTerritoryName = ""; + if (StringUtils.isNotBlank(sb)) { + technologyTerritoryName = sb.substring(0, sb.length() - 1); + } + return technologyTerritoryName; + } + + private String getFileName(List fileInfos,String deliverableTemplate){ + StringBuilder sb = new StringBuilder(); + for (String s : deliverableTemplate.split(",")) { + List collect = fileInfos.stream().filter(e -> s.equals(e.getId())).collect(Collectors.toList()); + if(collect.size() != 0){ + sb.append(collect.get(0).getFileName() + ","); + } + } + String sbStr = ""; + if(StringUtils.isNotBlank(sb)){ + sbStr = sb.substring(0, sb.length() - 1); + } + return sbStr; + } + + public String disposeShowDictItemValue(List sysDictItems,String fieldValues,String cut,String dicCode){ + String result = ""; + List sysDictItemList = sysDictItems.stream().filter(e -> { + boolean flag = false; + if(StringUtils.equals(e.getDictCode(),dicCode)){ + flag = true; + } + return flag; + }).distinct().collect(Collectors.toList()); + if(CollectionUtils.isNotEmpty(sysDictItemList)){ + if(StringUtils.equals(cut,CutEnum.CN.getValue())){ + result = sysDictItemList.stream().filter(e -> { + boolean flag = false; + List fieldValueStrList = Arrays.asList(fieldValues.split(",")); + for (String fieldValueStr : fieldValueStrList) { + if(StringUtils.equals(fieldValueStr,e.getItemValue())){ + flag = true; + break; + } + } + return flag; + }).map(SysDictItem::getItemText).collect(Collectors.joining(",")); + }else if(StringUtils.equals(cut,CutEnum.EN.getValue())){ + result = sysDictItemList.stream().filter(e -> { + boolean flag = false; + List fieldValueStrList = Arrays.asList(fieldValues.split(",")); + for (String fieldValueStr : fieldValueStrList) { + if(StringUtils.equals(fieldValueStr,e.getItemValue())){ + flag = true; + break; + } + } + return flag; + }).map(SysDictItem::getEnName).collect(Collectors.joining(",")); + } + } + return result; + } + + +} diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/util/HttpUtils.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/util/HttpUtils.java new file mode 100644 index 000000000..bb6c2c43a --- /dev/null +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/util/HttpUtils.java @@ -0,0 +1,153 @@ +package com.jero.modules.dummy.util; +import java.io.BufferedReader; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStreamReader; +import java.io.OutputStream; +import java.io.PrintWriter; +import java.io.UnsupportedEncodingException; +import java.net.URL; +import java.net.URLConnection; +import java.util.List; +import java.util.Map; + +public class HttpUtils { + /** + * 向指定URL发送GET方法的请求 + * + * @param url + * 发送请求的URL + * @param param + * 请求参数,请求参数应该是 name1=value1&name2=value2 的形式。 + * @return URL 所代表远程资源的响应结果 + */ + public static String sendGet(String url, String param) { + String result = ""; + BufferedReader in = null; + try { + String urlNameString = url + "?" + param; + URL realUrl = new URL(urlNameString); + // 打开和URL之间的连接 + URLConnection connection = realUrl.openConnection(); + // 设置通用的请求属性 + connection.setRequestProperty("accept", "*/*"); + + connection.setRequestProperty("connection", "Keep-Alive"); + + connection.setRequestProperty("user-agent", + "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)"); + + connection.setRequestProperty("X-Access-Token",""); + // 建立实际的连接 + connection.connect(); + // 获取所有响应头字段 + Map> map = connection.getHeaderFields(); + // 遍历所有的响应头字段 + for (String key : map.keySet()) { + System.out.println(key + "--->" + map.get(key)); + } +// String fileName = map.get("Content-Disposition").get(0); + // 定义 BufferedReader输入流来读取URL的响应 + OutputStream out = new FileOutputStream("E:\\DeskTop\\获取文件\\"+"fileName"+"xls"); + in = new BufferedReader(new InputStreamReader( + connection.getInputStream(),"UTF-8")); + String line; + while ((line = in.readLine()) != null) { + result += line; + out.write(line.getBytes()); + } + } catch (Exception e) { + System.out.println("发送GET请求出现异常!" + e); + e.printStackTrace(); + } + // 使用finally块来关闭输入流 + finally { + try { + if (in != null) { + in.close(); + } + } catch (Exception e2) { + e2.printStackTrace(); + } + } + int a=0; + return result; + } + + /** + * 向指定 URL 发送POST方法的请求 + * + * @param url + * 发送请求的 URL + * @param param + * 请求参数,请求参数应该是 name1=value1&name2=value2 的形式。 + * @return 所代表远程资源的响应结果 + */ + public static String sendPost(String url, String param) { + PrintWriter out = null; + BufferedReader in = null; + String result = ""; + try { + URL realUrl = new URL(url); + // 打开和URL之间的连接 + URLConnection conn = realUrl.openConnection(); + // 设置通用的请求属性 + conn.setRequestProperty("accept", "*/*"); + conn.setRequestProperty("connection", "Keep-Alive"); + conn.setRequestProperty("Content-Type","application/json"); + conn.setRequestProperty("user-agent", + "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)"); + //海外平台调取接口的时候,是否是免登录的,如果不是免登录需要提供一个永久有效的token + conn.setRequestProperty("X-Access-Token","eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2NTY3ODI3MjEsInVzZXJuYW1lIjoid2FuZ2NoZW5nanVuIn0.AmJATH62P5G-0ojON0Q2PW-IHuwf1MbSU8N-gYsNUls"); + // 发送POST请求必须设置如下两行 + conn.setDoOutput(true); + conn.setDoInput(true); + // 获取URLConnection对象对应的输出流 + out = new PrintWriter(conn.getOutputStream()); + // 发送请求参数 + out.print(param); + // flush输出流的缓冲 + out.flush(); + // 定义BufferedReader输入流来读取URL的响应 + in = new BufferedReader( + new InputStreamReader(conn.getInputStream())); + String line; + while ((line = in.readLine()) != null) { + result += line; + } + } catch (Exception e) { + System.out.println("发送 POST 请求出现异常!"+e); + e.printStackTrace(); + } + //使用finally块来关闭输出流、输入流 + finally{ + try{ + if(out!=null){ + out.close(); + } + if(in!=null){ + in.close(); + } + } + catch(IOException ex){ + ex.printStackTrace(); + } + } + return result; + } + + public static void main(String[] args) { + String fileId = "75c2dbf7a66062b3b816847dc62b18f311"; + String key = "E26A7BEDE06C013A"; + String param = "fileId="+fileId+"&key="+key; + + String res= sendGet("http://localhost:8081/jeecg-boot/sys/common/static/getFileForeign",param); + System.out.println(res); + try { + System.out.println(new String(res.getBytes("GBK"),"UTF-8")); + } catch (UnsupportedEncodingException e) { + e.printStackTrace(); + } + } + +} diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/log/controller/MarketListVersionUpdateLogEOController.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/log/controller/MarketListVersionUpdateLogEOController.java index 5b309a684..c525115dd 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/log/controller/MarketListVersionUpdateLogEOController.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/log/controller/MarketListVersionUpdateLogEOController.java @@ -1,25 +1,33 @@ package com.jero.modules.log.controller; -import java.util.Arrays; -import java.util.List; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; import com.jero.common.api.vo.Result; +import com.jero.common.aspect.annotation.AutoLog; +import com.jero.common.system.base.controller.JeroController; import com.jero.common.system.query.QueryGenerator; import com.jero.modules.log.entity.MarketListVersionUpdateLogEO; import com.jero.modules.log.service.IMarketListVersionUpdateLogEOService; -import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.baomidou.mybatisplus.core.metadata.IPage; -import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import lombok.extern.slf4j.Slf4j; -import com.jero.common.system.base.controller.JeroController; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.*; -import org.springframework.web.servlet.ModelAndView; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; -import com.jero.common.aspect.annotation.AutoLog; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.servlet.ModelAndView; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.util.Arrays; +import java.util.List; /** @@ -35,7 +43,7 @@ import com.jero.common.aspect.annotation.AutoLog; public class MarketListVersionUpdateLogEOController extends JeroController { @Autowired private IMarketListVersionUpdateLogEOService marketListVersionUpdateLogEOService; - + /** * 分页列表查询 * @@ -53,9 +61,10 @@ public class MarketListVersionUpdateLogEOController extends JeroController queryWrapper = QueryGenerator.initQueryWrapper(marketListVersionUpdateLogEO, req.getParameterMap()); - Page page = new Page(pageNo, pageSize); - IPage pageList = marketListVersionUpdateLogEOService.page(page, queryWrapper); - return Result.OK(pageList); + IPage pageInfo = marketListVersionUpdateLogEOService.getPageInfo(queryWrapper, pageNo, pageSize); +// Page page = new Page(pageNo, pageSize); +// IPage pageList = marketListVersionUpdateLogEOService.page(page, queryWrapper); + return Result.OK(pageInfo); } /** diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/log/entity/MarketListVersionUpdateLogEO.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/log/entity/MarketListVersionUpdateLogEO.java index 421932ae8..cb531db99 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/log/entity/MarketListVersionUpdateLogEO.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/log/entity/MarketListVersionUpdateLogEO.java @@ -1,20 +1,21 @@ package com.jero.modules.log.entity; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; +import org.jeecgframework.poi.excel.annotation.Excel; +import org.springframework.format.annotation.DateTimeFormat; + import java.io.Serializable; import java.util.Date; -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import lombok.Data; -import com.fasterxml.jackson.annotation.JsonFormat; -import org.springframework.format.annotation.DateTimeFormat; -import org.jeecgframework.poi.excel.annotation.Excel; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import lombok.EqualsAndHashCode; -import lombok.experimental.Accessors; - /** * @Description: 市场清单版本更新log表 * @Author: jero-boot @@ -78,4 +79,13 @@ public class MarketListVersionUpdateLogEO implements Serializable { @ApiModelProperty(value = "清单id") private String listId; + @TableField(exist = false) + @ApiModelProperty(value = "清单名称") + private String name; + + @TableField(exist = false) + @ApiModelProperty(value = "适用说明") + private String useExplain; + + } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/log/service/IMarketListVersionUpdateLogEOService.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/log/service/IMarketListVersionUpdateLogEOService.java index cd43030f5..c505c930c 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/log/service/IMarketListVersionUpdateLogEOService.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/log/service/IMarketListVersionUpdateLogEOService.java @@ -1,7 +1,10 @@ package com.jero.modules.log.service; -import com.jero.modules.log.entity.MarketListVersionUpdateLogEO; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.IService; +import com.jero.modules.log.entity.MarketListVersionUpdateLogEO; + import java.util.List; /** @@ -58,4 +61,6 @@ public interface IMarketListVersionUpdateLogEOService extends IService queryList(); + + IPage getPageInfo(QueryWrapper queryWrapper,Integer pageNo,Integer pageSize); } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/log/service/impl/MarketListVersionUpdateLogEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/log/service/impl/MarketListVersionUpdateLogEOServiceImpl.java index d11b33a94..471b6b0f2 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/log/service/impl/MarketListVersionUpdateLogEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/log/service/impl/MarketListVersionUpdateLogEOServiceImpl.java @@ -1,29 +1,42 @@ package com.jero.modules.log.service.impl; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.jero.common.util.PageUtil; +import com.jero.modules.dummy.entity.DummyInventoryBaseEO; +import com.jero.modules.dummy.service.impl.DummyInventoryBaseEOServiceImpl; import com.jero.modules.log.entity.MarketListVersionUpdateLogEO; import com.jero.modules.log.mapper.MarketListVersionUpdateLogEOMapper; import com.jero.modules.log.service.IMarketListVersionUpdateLogEOService; +import org.apache.commons.lang3.ObjectUtils; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; -import java.util.List; + import java.util.Date; -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import java.util.List; +import java.util.stream.Collectors; /** * @Description: 市场清单版本更新log表 * @Author: jero-boot - * @Date: 2023-04-24 + * @Date: 2023-04-24 * @Version: V1.0 */ @Service public class MarketListVersionUpdateLogEOServiceImpl extends ServiceImpl implements IMarketListVersionUpdateLogEOService { - /** - * 保存 - * - * @param marketListVersionUpdateLogEO - * @return - */ - @Override + @Autowired + private DummyInventoryBaseEOServiceImpl dummyInventoryBaseEOService; + + /** + * 保存 + * + * @param marketListVersionUpdateLogEO + * @return + */ + @Override public void add(MarketListVersionUpdateLogEO marketListVersionUpdateLogEO) { Date now = new Date(); marketListVersionUpdateLogEO.setCreateTime(now); @@ -31,59 +44,90 @@ public class MarketListVersionUpdateLogEOServiceImpl extends ServiceImpl ids) { removeByIds(ids); } - /** - * 通过id查询 - * - * @param id - * @return - */ - @Override + /** + * 通过id查询 + * + * @param id + * @return + */ + @Override public MarketListVersionUpdateLogEO queryById(String id) { return getById(id); } /** - * 列表查询 - * - * @return - */ - @Override + * 列表查询 + * + * @return + */ + @Override public List queryList() { return list(); } + + @Override + public IPage getPageInfo(QueryWrapper queryWrapper, + Integer pageNo, + Integer pageSize) { + queryWrapper.lambda().orderByAsc(MarketListVersionUpdateLogEO::getCreateTime); + List marketListVersionUpdateLogEOList = this.list(queryWrapper); + if (ObjectUtils.isNotEmpty(marketListVersionUpdateLogEOList) + && marketListVersionUpdateLogEOList.size() == 1) { + return new Page<>(); + } + if (ObjectUtils.isNotEmpty(marketListVersionUpdateLogEOList) + && marketListVersionUpdateLogEOList.size() > 1) { + marketListVersionUpdateLogEOList.remove(marketListVersionUpdateLogEOList.size() - 1); + } + IPage pageList = PageUtil.getPages(pageNo, pageSize, marketListVersionUpdateLogEOList); + if (ObjectUtils.isNotEmpty(pageList.getRecords())) { + List idList = pageList.getRecords().stream().map(MarketListVersionUpdateLogEO::getListId).distinct().collect(Collectors.toList()); + List dummyInventoryBaseEOList = dummyInventoryBaseEOService.listByIds(idList); + + for (MarketListVersionUpdateLogEO record : pageList.getRecords()) { + List baseEOList = dummyInventoryBaseEOList.stream() + .filter(e -> e.getId().equals(record.getListId())).collect(Collectors.toList()); + if(ObjectUtils.isNotEmpty(baseEOList)){ + record.setName(baseEOList.get(0).getName()); + record.setUseExplain(baseEOList.get(0).getUseExplain()); + } + } + } + return pageList; + } } From b533edf18a98d63f43cece01eb2ef40715207d1f Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Mon, 30 Oct 2023 15:21:02 +0800 Subject: [PATCH 17/73] =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=94=B6=E9=9B=86?= =?UTF-8?q?=E8=BF=9B=E5=BA=A6=E7=AE=A1=E7=90=86-=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E6=8E=89=E6=8E=A7=E4=BB=B6=E7=B1=BB=E5=9E=8B=E4=B8=BA=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E7=9A=84=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../collect/service/impl/ParamsManifestEOServiceImpl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsManifestEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsManifestEOServiceImpl.java index 45143111f..227b2d417 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsManifestEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsManifestEOServiceImpl.java @@ -1222,6 +1222,11 @@ public class ParamsManifestEOServiceImpl extends ServiceImpl> listAll = paramsCollectManifestEOMapper.listInfoForExport(paramsCollectManifestEO, null); if(CollectionUtils.isEmpty(listAll)){ listAll = paramsCollectManifestHistoryEOMapper.listInfoForExport(paramsCollectManifestEO, null); + + if(ObjectUtil.isNotEmpty(listAll)){ + //过滤掉控件类型为标题的数据 + listAll = listAll.stream().filter(e->!ControlTypeEnum.Title.getValue().equals(e.get("control_type"))).collect(Collectors.toList()); + } } if(ObjectUtil.isNotEmpty(firstLevelDutyTerritoryMap)){ From a1ffe86826f12fd710872cef5bf975be519144df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Mon, 30 Oct 2023 15:38:32 +0800 Subject: [PATCH 18/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B8=82=E5=9C=BA?= =?UTF-8?q?=E6=B3=95=E8=A7=84=E6=B8=85=E5=8D=95=E8=AF=A6=E6=83=85=E7=9A=84?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AE=B0=E5=BD=95=E7=9A=84=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UpdateLog/versionUpdatedRecordList.vue | 24 ++++++--- .../components/virtualListDetails.vue | 50 +++++++++++-------- 2 files changed, 47 insertions(+), 27 deletions(-) diff --git a/jero-web/src/components/UpdateLog/versionUpdatedRecordList.vue b/jero-web/src/components/UpdateLog/versionUpdatedRecordList.vue index 1642c6f6c..bdba6d23b 100644 --- a/jero-web/src/components/UpdateLog/versionUpdatedRecordList.vue +++ b/jero-web/src/components/UpdateLog/versionUpdatedRecordList.vue @@ -10,12 +10,7 @@ :loading="loading" > - - - - + {{record.versionNum}}
@@ -36,6 +31,7 @@ From 77383f26fe98f40bd7121b14cd5e62ba20fbf0fe Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Mon, 30 Oct 2023 19:09:19 +0800 Subject: [PATCH 21/73] =?UTF-8?q?=E5=8F=82=E6=95=B0=E9=A1=B9=E6=94=B6?= =?UTF-8?q?=E9=9B=86=E6=B8=85=E5=8D=95-=E5=88=97=E8=A1=A8=E8=AE=A4?= =?UTF-8?q?=E8=AF=81=E7=B1=BB=E5=9E=8B=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ParamsCollectManifestEOServiceImpl.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java index 1eb8a70d2..782454042 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java @@ -62,6 +62,7 @@ import com.jero.modules.cert.report.service.IParamsReportConfigEOService; import com.jero.modules.cert.report.service.IParamsReportDetailEOService; import com.jero.modules.cert.report.service.IParamsReportEOService; import com.jero.modules.cert.report.service.IReportCertCategoryParamsInfoEOService; +import com.jero.modules.cert.template.entity.CertCategoryParamsInfoEO; import com.jero.modules.cert.template.entity.CertCategoryParamsInfoPublishEO; import com.jero.modules.cert.template.entity.ParamsInfoPublishEO; import com.jero.modules.cert.template.enums.ControlTypeEnum; @@ -69,6 +70,7 @@ import com.jero.modules.cert.template.enums.ControlVerifyEnum; import com.jero.modules.cert.template.enums.ParamsIsMustEnum; import com.jero.modules.cert.template.service.ICertCategoryParamsInfoPublishEOService; import com.jero.modules.cert.template.service.IParamsInfoPublishEOService; +import com.jero.modules.cert.template.service.impl.CertCategoryParamsInfoEOServiceImpl; import com.jero.modules.document.vo.QueryConditionVO; import com.jero.modules.feishu.enums.TemplateInfoEnum2; import com.jero.modules.feishu.service.IFeishuService; @@ -247,6 +249,10 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl paramsConfigIdList = paramsConfigEOList.stream().map(ParamsConfigEO::getId).collect(Collectors.toList()); List paramsConfigDataEOList = paramsConfigDataEOService.queryListByConfigIdList(paramsConfigIdList); // 查询所有配置数据 + List categoryParamsInfoEOList = new ArrayList<>(); + if(ObjectUtil.isNotEmpty(list)){ + String paramsTemplateId = list.get(0).getParamsTemplateId();//模板id + LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); + wrapper.eq(CertCategoryParamsInfoEO::getParamsTemplateId,paramsTemplateId); + categoryParamsInfoEOList = certCategoryParamsInfoEOService.list(wrapper); + } + // 普通数据字典 List dictItemList = new ArrayList<>(); List dictCodeList = new ArrayList<>(); @@ -819,6 +833,7 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl> listMap = new ArrayList<>(); + List finalCategoryParamsInfoEOList = categoryParamsInfoEOList; list.forEach(collectManifestEO -> { // 参数收集清单 // 处理数据字典字段 中英文切换 认证类型,责任领域 List certCategory = Arrays.asList(collectManifestEO.getCertCategory().split(",")); @@ -863,6 +878,17 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl certCategoryParamsInfoEOS = finalCategoryParamsInfoEOList.stream() + .filter(e -> e.getParamsTemplateId().equals(collectManifestEO.getParamsTemplateId()) + && e.getNioNumber().equals(collectManifestEO.getNioNumber())).collect(Collectors.toList()); + if(ObjectUtil.isNotEmpty(certCategoryParamsInfoEOS)){ + for (CertCategoryParamsInfoEO certCategoryParamsInfoEO : certCategoryParamsInfoEOS) { + String toHump = LineHumpUtil.lineToHump(certCategoryParamsInfoEO.getCertCategory()); + manifestMap.put(toHump,certCategoryParamsInfoEO.getParamsNumber()); + } + } + if (StringUtils.isNotEmpty(paramsManifestEO.getReferencesColName())) { Map referencesColMap = new HashMap<>(); referencesColMap.put("referencesColFlag",true); From 7378d1482e2d8061a29b0753bac65ddbc285018f Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Mon, 30 Oct 2023 20:12:27 +0800 Subject: [PATCH 22/73] =?UTF-8?q?=E5=8F=82=E6=95=B0=E9=A1=B9=E6=94=B6?= =?UTF-8?q?=E9=9B=86=E6=B8=85=E5=8D=95-=E8=A1=A8=E5=A4=B4=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/ParamsCollectManifestEOMapper.java | 1 + .../xml/ParamsCollectManifestEOMapper.xml | 9 + .../ParamsCollectManifestEOServiceImpl.java | 394 +++++++++++++++++- 3 files changed, 387 insertions(+), 17 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/ParamsCollectManifestEOMapper.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/ParamsCollectManifestEOMapper.java index a1013f53f..89190530f 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/ParamsCollectManifestEOMapper.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/ParamsCollectManifestEOMapper.java @@ -32,6 +32,7 @@ public interface ParamsCollectManifestEOMapper extends BaseMapper queryByParamManifestId(@Param("paramsManifestId") String paramsManifestIdString); IPage selectpage(@Param("page") IPage page, @Param("sqlJoin") String sqlJoin, @Param("paramsManifestEO")ParamsManifestEO paramsManifestEO); + List selectList(@Param("sqlJoin") String sqlJoin, @Param("paramsManifestEO")ParamsManifestEO paramsManifestEO); List queryByProjectId(@Param("projectId") String projectId); diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/xml/ParamsCollectManifestEOMapper.xml b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/xml/ParamsCollectManifestEOMapper.xml index d49dcd42e..101cffaa2 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/xml/ParamsCollectManifestEOMapper.xml +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/xml/ParamsCollectManifestEOMapper.xml @@ -149,6 +149,15 @@ ) temp ${sqlJoin} + diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java index 782454042..41aeef896 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java @@ -10,6 +10,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.google.common.collect.Lists; import com.jero.common.api.vo.Result; @@ -23,6 +24,7 @@ import com.jero.common.exception.JeroBootException; import com.jero.common.system.query.QueryGenerator; import com.jero.common.system.query.QueryRuleEnum; import com.jero.common.system.vo.LoginUser; +import com.jero.common.util.PageUtil; import com.jero.common.util.oss.CosBootUtil; import com.jero.generater.modules.online.cgform.entity.OnlCgformField; import com.jero.generater.modules.online.cgform.service.impl.OnlCgformFieldServiceImpl; @@ -72,6 +74,7 @@ import com.jero.modules.cert.template.service.ICertCategoryParamsInfoPublishEOSe import com.jero.modules.cert.template.service.IParamsInfoPublishEOService; import com.jero.modules.cert.template.service.impl.CertCategoryParamsInfoEOServiceImpl; import com.jero.modules.document.vo.QueryConditionVO; +import com.jero.modules.dummy.enums.OrderEnum; import com.jero.modules.feishu.enums.TemplateInfoEnum2; import com.jero.modules.feishu.service.IFeishuService; import com.jero.modules.feishu.vo.FeishuMsg2Vo; @@ -151,6 +154,7 @@ import java.lang.reflect.Modifier; import java.nio.file.Files; import java.nio.file.Paths; import java.nio.file.StandardOpenOption; +import java.text.Collator; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; @@ -161,6 +165,7 @@ import java.util.HashMap; import java.util.LinkedHashMap; import java.util.LinkedList; import java.util.List; +import java.util.Locale; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; @@ -791,32 +796,46 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl queryConditionVOList = JSONObject.parseArray(paramsCollectManifestVO.getQueryConditionVOListStr(), QueryConditionVO.class); this.createAdvanceedSearchCondition(queryConditionVOList, sqlJoinSb); } - + List categoryListtoHump = new ArrayList<>(); if (StringUtils.isEmpty(paramsCollectManifestVO.getOrderByField())) { sqlJoinSb.append(" ORDER BY del_flag DESC") .append(", add_flag DESC") .append(", change_flag DESC") .append(", nio_number ASC"); } else { - // 拼接动态排序字段 - sqlJoinSb.append(" ORDER BY ").append(paramsCollectManifestVO.getOrderByField()); - // 拼接排序方式 - if (StringUtils.equals(paramsCollectManifestVO.getOrderBy(), "1")) { - sqlJoinSb.append(" ASC"); - } else { - sqlJoinSb.append(" DESC"); + List categoryList = new ArrayList<>(); + List sysDictItemList = sysDictItemService.selectItemsByDictCode("cert_category"); + if(ObjectUtil.isNotEmpty(sysDictItemList)){ + categoryList = sysDictItemList.stream().map(SysDictItem::getItemValue).collect(Collectors.toList()); + if(ObjectUtil.isNotEmpty(categoryList)){ + for (String s : categoryList) { + String toHump = LineHumpUtil.lineToHump(s); + categoryListtoHump.add(toHump); + } + } + } + if(ObjectUtil.isEmpty(categoryListtoHump) + ||(ObjectUtil.isNotEmpty(categoryListtoHump) && !categoryListtoHump.contains(paramsCollectManifestVO.getOrderByField()))){ + // 拼接动态排序字段 + sqlJoinSb.append(" ORDER BY ").append(paramsCollectManifestVO.getOrderByField()); + // 拼接排序方式 + if (StringUtils.equals(paramsCollectManifestVO.getOrderBy(), "1")) { + sqlJoinSb.append(" ASC"); + } else { + sqlJoinSb.append(" DESC"); + } } } - - IPage pageInfo = paramsCollectManifestEOMapper.selectpage(page, sqlJoinSb.toString(), paramsManifestEO); // 查询固定列 - List list = pageInfo.getRecords(); // 查询固定列 + List paramsCollectManifestEOS = paramsCollectManifestEOMapper.selectList(sqlJoinSb.toString(), paramsManifestEO);// 查询固定列 +// IPage pageInfo = paramsCollectManifestEOMapper.selectpage(page, sqlJoinSb.toString(), paramsManifestEO); // 查询固定列 +// List list = pageInfo.getRecords(); // 查询固定列 List paramsConfigEOList = paramsConfigEOService.queryList(paramsManifestId); // 查询配置列 List paramsConfigIdList = paramsConfigEOList.stream().map(ParamsConfigEO::getId).collect(Collectors.toList()); List paramsConfigDataEOList = paramsConfigDataEOService.queryListByConfigIdList(paramsConfigIdList); // 查询所有配置数据 List categoryParamsInfoEOList = new ArrayList<>(); - if(ObjectUtil.isNotEmpty(list)){ - String paramsTemplateId = list.get(0).getParamsTemplateId();//模板id + if(ObjectUtil.isNotEmpty(paramsCollectManifestEOS)){ + String paramsTemplateId = paramsCollectManifestEOS.get(0).getParamsTemplateId();//模板id LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); wrapper.eq(CertCategoryParamsInfoEO::getParamsTemplateId,paramsTemplateId); categoryParamsInfoEOList = certCategoryParamsInfoEOService.list(wrapper); @@ -834,7 +853,7 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl> listMap = new ArrayList<>(); List finalCategoryParamsInfoEOList = categoryParamsInfoEOList; - list.forEach(collectManifestEO -> { // 参数收集清单 + paramsCollectManifestEOS.forEach(collectManifestEO -> { // 参数收集清单 // 处理数据字典字段 中英文切换 认证类型,责任领域 List certCategory = Arrays.asList(collectManifestEO.getCertCategory().split(",")); List dutyTerritory = Arrays.asList(collectManifestEO.getDutyTerritory().split(",")); // 单选 @@ -982,11 +1001,352 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl categoryListtoHump, List> listMap) { + if(ObjectUtil.isNotEmpty(categoryListtoHump) + && StringUtils.isNotBlank(paramsCollectManifestVO.getOrderByField()) + && categoryListtoHump.contains(paramsCollectManifestVO.getOrderByField())){ + Collator comparator = Collator.getInstance(Locale.CHINESE); + if (OrderEnum.POSITIVE.getValue().equals(paramsCollectManifestVO.getOrderBy())) { + Collections.sort(listMap, (e1, e2) -> { + String e1ReleaseName = StringUtils.isNotBlank((String) e1.get(paramsCollectManifestVO.getOrderByField())) ? (String) e1.get(paramsCollectManifestVO.getOrderByField()) : ""; + String e2ReleaseName = StringUtils.isNotBlank((String) e2.get(paramsCollectManifestVO.getOrderByField())) ? (String) e2.get(paramsCollectManifestVO.getOrderByField()) : ""; + return comparator.compare(e1ReleaseName, e2ReleaseName); + }); + } else if (OrderEnum.REVERSE.getValue().equals(paramsCollectManifestVO.getOrderBy())) { + Collections.sort(listMap, (e1, e2) -> { + String e1ReleaseName = StringUtils.isNotBlank((String) e1.get(paramsCollectManifestVO.getOrderByField())) ? (String) e1.get(paramsCollectManifestVO.getOrderByField()) : ""; + String e2ReleaseName = StringUtils.isNotBlank((String) e2.get(paramsCollectManifestVO.getOrderByField())) ? (String) e2.get(paramsCollectManifestVO.getOrderByField()) : ""; + return comparator.compare(e2ReleaseName, e1ReleaseName); + }); + } + } + } +// public IPage queryList(IPage page, ParamsCollectManifestVO paramsCollectManifestVO, String cut) { +// String paramsManifestId = paramsCollectManifestVO.getParamsManifestId(); +// ParamsManifestEO paramsManifestEO = paramsManifestEOService.queryById(paramsManifestId); +// +// String userTypes = paramsCollectManifestVO.getUserTypes(); +// if (StringUtils.isBlank(userTypes)) { +// if (CutEnum.CN.getValue().equals(cut)) { +// throw new JeroBootException("用户类型参数不能为空!"); +// } else { +// throw new JeroBootException("User type can not be null!"); +// } +// } +// if (!CollectManifestUserTypeEnum.doesValueExist(userTypes)) { +// if (CutEnum.CN.getValue().equals(cut)) { +// throw new JeroBootException("用户类型不存在!"); +// } else { +// throw new JeroBootException("User type is not exist!"); +// } +// } +// +// StringBuilder sqlJoinSb = new StringBuilder(); +// sqlJoinSb.append("where control_type not in ").append("('").append(ControlTypeEnum.Title.getValue()).append("')"); +// +// LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); // 获取当前登录用户 +// if ("sdt".equals(userTypes)) { +// sqlJoinSb.append(" and sdt = '").append(loginUser.getUsername()).append("'"); +// sqlJoinSb.append(" and state in ('2','4','5','6','7','8')"); +// } else if ("dre".equals(userTypes)) { +// sqlJoinSb.append(" and dre = '").append(loginUser.getUsername()).append("'"); +// sqlJoinSb.append(" and state in ('4','6','7','8')"); +// } else if ("guest".equals(userTypes)) { +// return page; +// } else if (CollectManifestUserTypeEnum.VIEWER.getValue().equals(userTypes)) { +// List dutyTerritoryList = projectUserDutyTerritoryService.queryDutyTerritoryByUserId(loginUser.getId()); +// StringBuilder dutyTerritorySb = new StringBuilder(); +// for (int i = 0; i < dutyTerritoryList.size(); i++) { +// dutyTerritorySb.append("'").append(dutyTerritoryList.get(i)).append("'"); +// // 如果还有下一条 +// if (i + 1 < dutyTerritoryList.size()) { +// dutyTerritorySb.append(","); +// } +// } +// +// sqlJoinSb.append(" and (").append("sdt = '").append(loginUser.getUsername()).append("'") +// .append(" or dre = '").append(loginUser.getUsername()).append("'") +// .append(" or duty_territory in (").append(dutyTerritorySb.toString()).append(")") +// .append(")"); +// } +// // 搜索NIO编号或认证类别编号 精确搜索 +// if (StringUtils.isNotEmpty(paramsCollectManifestVO.getAllNumber())) { +// paramsCollectManifestVO.setAllNumber(paramsCollectManifestVO.getAllNumber().replaceAll("'", "\'")); +// sqlJoinSb.append(" and (").append("nio_number = '").append(paramsCollectManifestVO.getAllNumber()).append("'"); +// sqlJoinSb.append(" or nio_number in (") +// .append("select nio_number from cert_category_params_info_publish where params_number = '").append(paramsCollectManifestVO.getAllNumber()).append("'") +// .append(")"); +// sqlJoinSb.append(")"); +// } +// if (StringUtils.isNotEmpty(paramsCollectManifestVO.getDutyTerritory())) { +// List dutyTerritoryList = Arrays.asList(paramsCollectManifestVO.getDutyTerritory().split(",")); +// StringBuilder dutyTerritoryListSb = new StringBuilder(); +// for (int i = 0; i < dutyTerritoryList.size(); i++) { +// dutyTerritoryListSb.append("'").append(dutyTerritoryList.get(i)).append("'"); +// if (i + 1 < dutyTerritoryList.size()) { +// dutyTerritoryListSb.append(","); +// } +// } +// +// sqlJoinSb.append(" and duty_territory in (").append(dutyTerritoryListSb.toString()).append(")"); +// } +// +// if (StringUtils.isNotEmpty(paramsCollectManifestVO.getParamsName())) { +// paramsCollectManifestVO.setParamsName(paramsCollectManifestVO.getParamsName().replaceAll("'", "\'")); +// sqlJoinSb.append(" and params_name like '%").append(paramsCollectManifestVO.getParamsName()).append("%'"); +// } +// +// if (StringUtils.isNotEmpty(paramsCollectManifestVO.getSdt())) { +// paramsCollectManifestVO.setSdt(paramsCollectManifestVO.getSdt().replaceAll("'", "\'")); +// sqlJoinSb.append(" and sdt like '%").append(paramsCollectManifestVO.getSdt()).append("%'"); +// } +// +// if (StringUtils.isNotEmpty(paramsCollectManifestVO.getDre())) { +// paramsCollectManifestVO.setDre(paramsCollectManifestVO.getDre().replaceAll("'", "\'")); +// sqlJoinSb.append(" and dre like '%").append(paramsCollectManifestVO.getDre()).append("%'"); +// } +// +// if (StringUtils.isNotEmpty(paramsCollectManifestVO.getState())) { +// paramsCollectManifestVO.setDre(paramsCollectManifestVO.getState().replaceAll("'", "\'")); +// String state = paramsCollectManifestVO.getState().replaceAll("'", "\'"); +//// state = "1,2,3,9"; +// StringBuilder sb = new StringBuilder(); +// for (String s : Arrays.asList(state.split(","))) { +// sb.append("'"+s+"',"); +// } +// String substring = sb.substring(0,sb.length() - 1); +// sqlJoinSb.append(" and state in ( ").append(substring).append(" )"); +// } +//// if (StringUtils.isNotEmpty(paramsCollectManifestVO.getState())) { +//// paramsCollectManifestVO.setDre(paramsCollectManifestVO.getState().replaceAll("'", "\'")); +//// sqlJoinSb.append(" and state = '").append(paramsCollectManifestVO.getDre()).append("'"); +//// } +// if (StringUtils.isNotEmpty(paramsCollectManifestVO.getCertCategory())) { +// sqlJoinSb.append(" and cert_category like '%").append(paramsCollectManifestVO.getCertCategory()).append("%'"); +// } +// +// // 如果高级查询条件不为空,拼接参数 +// if (StringUtils.isNotEmpty(paramsCollectManifestVO.getQueryConditionVOListStr())) { +// List queryConditionVOList = JSONObject.parseArray(paramsCollectManifestVO.getQueryConditionVOListStr(), QueryConditionVO.class); +// this.createAdvanceedSearchCondition(queryConditionVOList, sqlJoinSb); +// } +// +// if (StringUtils.isEmpty(paramsCollectManifestVO.getOrderByField())) { +// sqlJoinSb.append(" ORDER BY del_flag DESC") +// .append(", add_flag DESC") +// .append(", change_flag DESC") +// .append(", nio_number ASC"); +// } else { +// List categoryList = new ArrayList<>(); +// List categoryListtoHump = new ArrayList<>(); +// List sysDictItemList = sysDictItemService.selectItemsByDictCode("cert_category"); +// if(ObjectUtil.isNotEmpty(sysDictItemList)){ +// categoryList = sysDictItemList.stream().map(SysDictItem::getItemValue).collect(Collectors.toList()); +// if(ObjectUtil.isNotEmpty(categoryList)){ +// for (String s : categoryList) { +// String toHump = LineHumpUtil.lineToHump(s); +// categoryListtoHump.add(toHump); +// } +// } +// } +// if(ObjectUtil.isEmpty(categoryListtoHump) +// ||(ObjectUtil.isNotEmpty(categoryListtoHump) && !categoryListtoHump.contains(paramsCollectManifestVO.getOrderByField()))){ +// // 拼接动态排序字段 +// sqlJoinSb.append(" ORDER BY ").append(paramsCollectManifestVO.getOrderByField()); +// // 拼接排序方式 +// if (StringUtils.equals(paramsCollectManifestVO.getOrderBy(), "1")) { +// sqlJoinSb.append(" ASC"); +// } else { +// sqlJoinSb.append(" DESC"); +// } +// } +// } +// +// IPage pageInfo = paramsCollectManifestEOMapper.selectpage(page, sqlJoinSb.toString(), paramsManifestEO); // 查询固定列 +// List list = pageInfo.getRecords(); // 查询固定列 +// List paramsConfigEOList = paramsConfigEOService.queryList(paramsManifestId); // 查询配置列 +// List paramsConfigIdList = paramsConfigEOList.stream().map(ParamsConfigEO::getId).collect(Collectors.toList()); +// List paramsConfigDataEOList = paramsConfigDataEOService.queryListByConfigIdList(paramsConfigIdList); // 查询所有配置数据 +// +// List categoryParamsInfoEOList = new ArrayList<>(); +// if(ObjectUtil.isNotEmpty(list)){ +// String paramsTemplateId = list.get(0).getParamsTemplateId();//模板id +// LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); +// wrapper.eq(CertCategoryParamsInfoEO::getParamsTemplateId,paramsTemplateId); +// categoryParamsInfoEOList = certCategoryParamsInfoEOService.list(wrapper); +// } +// +// // 普通数据字典 +// List dictItemList = new ArrayList<>(); +// List dictCodeList = new ArrayList<>(); +// dictCodeList.add("duty_territory"); +// dictCodeList.add("cert_category"); +// for (String dictCode : dictCodeList) { +// List dictItems = sysDictItemService.selectItemsByDictCode(dictCode); +// dictItemList.addAll(dictItems); +// } +// +// List> listMap = new ArrayList<>(); +// List finalCategoryParamsInfoEOList = categoryParamsInfoEOList; +// list.forEach(collectManifestEO -> { // 参数收集清单 +// // 处理数据字典字段 中英文切换 认证类型,责任领域 +// List certCategory = Arrays.asList(collectManifestEO.getCertCategory().split(",")); +// List dutyTerritory = Arrays.asList(collectManifestEO.getDutyTerritory().split(",")); // 单选 +// String certCategoryName = ""; +// String dutyTerritoryName = ""; +// if (CutEnum.CN.getValue().equals(cut)) { +// certCategoryName = dictItemList.stream() +// .filter(e -> certCategory.contains(e.getItemValue())) +// .map(SysDictItem::getItemText) +// .collect(Collectors.joining(",")); +// +// dutyTerritoryName = dictItemList.stream() +// .filter(e -> dutyTerritory.contains(e.getItemValue())) +// .map(SysDictItem::getItemText) +// .collect(Collectors.joining(",")); +// +// } else if (CutEnum.EN.getValue().equals(cut)) { +// certCategoryName = dictItemList.stream() +// .filter(e -> certCategory.contains(e.getItemValue())) +// .map(SysDictItem::getEnName) +// .collect(Collectors.joining(",")); +// +// dutyTerritoryName = dictItemList.stream() +// .filter(e -> dutyTerritory.contains(e.getItemValue())) +// .map(SysDictItem::getEnName) +// .collect(Collectors.joining(",")); +// +// } +// +// collectManifestEO.setCertCategory(certCategoryName); +// collectManifestEO.setDutyTerritory(dutyTerritoryName); +// +// // 处理状态字段 +// Map collectManifestStateMap = CollectManifestStateEnum.toMap(cut); +// String stateName = collectManifestStateMap.get(collectManifestEO.getState()); +// collectManifestEO.setState(stateName); +// +// List configIdList = new ArrayList<>(); // 配置列名 +// +// Map manifestMap = objectToMap(collectManifestEO); // 对象转map +// String controlType = collectManifestEO.getControlType(); +// String paramsCollectManifestId = collectManifestEO.getId(); +// +// //认证类型 +// List certCategoryParamsInfoEOS = finalCategoryParamsInfoEOList.stream() +// .filter(e -> e.getParamsTemplateId().equals(collectManifestEO.getParamsTemplateId()) +// && e.getNioNumber().equals(collectManifestEO.getNioNumber())).collect(Collectors.toList()); +// if(ObjectUtil.isNotEmpty(certCategoryParamsInfoEOS)){ +// for (CertCategoryParamsInfoEO certCategoryParamsInfoEO : certCategoryParamsInfoEOS) { +// String toHump = LineHumpUtil.lineToHump(certCategoryParamsInfoEO.getCertCategory()); +// manifestMap.put(toHump,certCategoryParamsInfoEO.getParamsNumber()); +// } +// } +// +// if (StringUtils.isNotEmpty(paramsManifestEO.getReferencesColName())) { +// Map referencesColMap = new HashMap<>(); +// referencesColMap.put("referencesColFlag",true); +// Map referencesColConfigDataVOMap = new HashMap<>(); +// String referencesCol = collectManifestEO.getReferencesCol(); +// if (StringUtils.isNotBlank(referencesCol)) { +// String[] referencesColArr = referencesCol.split("
"); +// int index = 0; +// for (String col : referencesColArr) { +// List referencesColVOList = getReferencesColList(controlType, col, collectManifestEO, userTypes); // 重新组合配置数据 +// String key = index+"+"+UUID.randomUUID().toString().replaceAll("-",""); +// referencesColConfigDataVOMap.put(key,referencesColVOList); +// index++; +// } +// +// referencesColMap.put("controlType", controlType); +// referencesColMap.put("paramsConfigData", referencesColConfigDataVOMap); +// manifestMap.put("referencesCol", referencesColMap); +// } else { +// List referencesColVOList = getReferencesColList(controlType, " # # #", collectManifestEO, userTypes); // 重新组合配置数据 +// referencesColMap.put("controlType", controlType); +// +// String key = "0+"+UUID.randomUUID().toString().replaceAll("-",""); +// referencesColConfigDataVOMap.put(key,referencesColVOList); +// referencesColMap.put("paramsConfigData", referencesColConfigDataVOMap); +// manifestMap.put("referencesCol", referencesColMap); +// } +// } +// +// if (CollectionUtil.isNotEmpty(paramsConfigEOList)) { +// paramsConfigEOList.forEach(paramsConfigEO -> { // 参数配置 +// Map paramsConfigDataVO = new HashMap<>(); +// Map configMap = new HashMap<>(); +// String paramsConfigId = paramsConfigEO.getId(); +// List paramsConfigDatas = this.getConfigDataEOListByConfigIdAndCollectManifestId(paramsConfigId, paramsCollectManifestId, paramsConfigDataEOList); // 参数配置数据 +// if(CollectionUtils.isNotEmpty(paramsConfigDatas)){ +// // 匿名比较器排序 +// Collections.sort(paramsConfigDatas, new Comparator() { +// @Override +// public int compare(ParamsConfigDataEO p1, ParamsConfigDataEO p2) { +// if (p2.getOrderNum() == null || p1.getOrderNum() == null) { +// return 0; +// } +// return p1.getOrderNum().compareTo(p2.getOrderNum()); +// } +// }); +// for (ParamsConfigDataEO paramsConfigDataEO : paramsConfigDatas) { +// List paramsConfigDataVOList = this.getConfigDataVOList(controlType, paramsConfigEO, paramsConfigDataEO, collectManifestEO); // 重新组合配置数据 +// String num = "0"; +// if(ObjectUtil.isNotEmpty(paramsConfigDataEO.getOrderNum())){ +// num = String.valueOf(paramsConfigDataEO.getOrderNum()); +// } +// paramsConfigDataVO.put(num + "+" + paramsConfigDataEO.getId(), paramsConfigDataVOList); +// } +// }else{ +// ParamsConfigDataEO paramsConfigDataEO = this.getConfigDataEOByConfigIdAndCollectManifestId(paramsConfigId, paramsCollectManifestId, paramsConfigDataEOList); // 参数配置数据 +// List paramsConfigDataVOList = this.getConfigDataVOList(controlType, paramsConfigEO, paramsConfigDataEO, collectManifestEO); // 重新组合配置数据 +// String key = UUID.randomUUID().toString().replaceAll("-", ""); +// paramsConfigDataVO.put("0+" + key, paramsConfigDataVOList); +// } +// configMap.put("controlType",controlType); +// configMap.put("paramsConfigData",paramsConfigDataVO); +// configMap.put("configId",paramsConfigEO.getId()); +// manifestMap.put(paramsConfigEO.getId(),configMap); +// +// configIdList.add(paramsConfigEO.getId()); +// }); +// } +// +// // 处理负责领域 +// Map dutyTerritoryMap = new HashMap<>(); +// dutyTerritoryMap.put("id", collectManifestEO.getId()); +// dutyTerritoryMap.put("state", collectManifestEO.getState()); +// dutyTerritoryMap.put("dataValue", collectManifestEO.getDutyTerritory()); +// manifestMap.put("dutyTerritory", dutyTerritoryMap); +// +// // 处理工程接口人 +// Map sdtMap = new HashMap<>(); +// sdtMap.put("id", collectManifestEO.getId()); +// sdtMap.put("state", collectManifestEO.getState()); +// sdtMap.put("dutyTerritory", StringUtils.join(dutyTerritory, ",")); +// if (StringUtils.isNotBlank(collectManifestEO.getSdt())) { +// sdtMap.put("dataValue", collectManifestEO.getSdt()); +// } else { +// sdtMap.put("dataValue", null); +// } +// manifestMap.put("sdt", sdtMap); +// +// // 配置列名数组 +// manifestMap.put("configIds", configIdList); +// +// listMap.add(manifestMap); +// }); +// +// pageInfo.setRecords(listMap); +// return pageInfo; +// } + /** * 重新组装配置数据 用于返回前端 * From 3d45934c74977a4c80be29007418430b0463c7c1 Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Tue, 31 Oct 2023 10:06:37 +0800 Subject: [PATCH 23/73] =?UTF-8?q?=E5=B8=82=E5=9C=BA=E6=B3=95=E8=A7=84?= =?UTF-8?q?=E6=B8=85=E5=8D=95-=E5=8E=86=E5=8F=B2=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-boot/db/蔚来标准sql/dev_third_record.sql | 1 + .../cert/collect/mapper/ParamsCollectManifestEOMapper.java | 3 ++- .../cert/collect/mapper/xml/ParamsCollectManifestEOMapper.xml | 2 +- .../service/impl/ParamsCollectManifestEOServiceImpl.java | 2 +- .../jero/modules/dummy/entity/DummyInventoryInfoHistoryEO.java | 3 +++ .../dummy/service/impl/DummyInventoryBaseEOServiceImpl.java | 3 ++- .../service/impl/DummyInventoryInfoHistoryEOServiceImpl.java | 1 + jero-web/src/components/UpdateLog/versionUpdatedRecordList.vue | 3 ++- .../virtualList/components/virtualListDetails.vue | 1 + 9 files changed, 14 insertions(+), 5 deletions(-) diff --git a/jero-boot/db/蔚来标准sql/dev_third_record.sql b/jero-boot/db/蔚来标准sql/dev_third_record.sql index c22b3b7a6..bf99cbc43 100644 --- a/jero-boot/db/蔚来标准sql/dev_third_record.sql +++ b/jero-boot/db/蔚来标准sql/dev_third_record.sql @@ -1387,6 +1387,7 @@ CREATE TABLE `dummy_inventory_info_history` ( `design_remark` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '设计备注', `buss_document_library_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '文档库id', `duty_depart` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '责任部门', + `market_list_version_update_log_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '市场清单版本更新log表id', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/ParamsCollectManifestEOMapper.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/ParamsCollectManifestEOMapper.java index 89190530f..4571e69bf 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/ParamsCollectManifestEOMapper.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/ParamsCollectManifestEOMapper.java @@ -32,7 +32,8 @@ public interface ParamsCollectManifestEOMapper extends BaseMapper queryByParamManifestId(@Param("paramsManifestId") String paramsManifestIdString); IPage selectpage(@Param("page") IPage page, @Param("sqlJoin") String sqlJoin, @Param("paramsManifestEO")ParamsManifestEO paramsManifestEO); - List selectList(@Param("sqlJoin") String sqlJoin, @Param("paramsManifestEO")ParamsManifestEO paramsManifestEO); + + List getListInfo(@Param("sqlJoin") String sqlJoin, @Param("paramsManifestEO")ParamsManifestEO paramsManifestEO); List queryByProjectId(@Param("projectId") String projectId); diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/xml/ParamsCollectManifestEOMapper.xml b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/xml/ParamsCollectManifestEOMapper.xml index 101cffaa2..d4b74d554 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/xml/ParamsCollectManifestEOMapper.xml +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/xml/ParamsCollectManifestEOMapper.xml @@ -149,7 +149,7 @@ ) temp ${sqlJoin} - select * from ( select pcm.* diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java index 41aeef896..dcaf163db 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsCollectManifestEOServiceImpl.java @@ -826,7 +826,7 @@ public class ParamsCollectManifestEOServiceImpl extends ServiceImpl paramsCollectManifestEOS = paramsCollectManifestEOMapper.selectList(sqlJoinSb.toString(), paramsManifestEO);// 查询固定列 + List paramsCollectManifestEOS = paramsCollectManifestEOMapper.getListInfo(sqlJoinSb.toString(), paramsManifestEO);// 查询固定列 // IPage pageInfo = paramsCollectManifestEOMapper.selectpage(page, sqlJoinSb.toString(), paramsManifestEO); // 查询固定列 // List list = pageInfo.getRecords(); // 查询固定列 List paramsConfigEOList = paramsConfigEOService.queryList(paramsManifestId); // 查询配置列 diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/entity/DummyInventoryInfoHistoryEO.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/entity/DummyInventoryInfoHistoryEO.java index 2f9cf99d4..92a9a1577 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/entity/DummyInventoryInfoHistoryEO.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/entity/DummyInventoryInfoHistoryEO.java @@ -243,6 +243,9 @@ public class DummyInventoryInfoHistoryEO implements Serializable { @ApiModelProperty(value = "责任部门") private java.lang.String dutyDepart; + @ApiModelProperty(value = "市场清单版本更新log表id") + private java.lang.String marketListVersionUpdateLogId; + @TableField(exist = false) private String xin1Che1Xing2Shi2Shi1Ri4Qi1String; diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryBaseEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryBaseEOServiceImpl.java index 1749f783d..fcfa46069 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryBaseEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/dummy/service/impl/DummyInventoryBaseEOServiceImpl.java @@ -356,6 +356,7 @@ public class DummyInventoryBaseEOServiceImpl extends ServiceImpl getPageInfo(Page page,DummyInventoryInfoHistoryEO dummyInventoryInfoHistoryEO) { LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); wrapper.eq(DummyInventoryInfoHistoryEO::getDummyInventoryBaseId,dummyInventoryInfoHistoryEO.getDummyInventoryBaseId()); + wrapper.eq(DummyInventoryInfoHistoryEO::getMarketListVersionUpdateLogId,dummyInventoryInfoHistoryEO.getMarketListVersionUpdateLogId()); Page historyEOPage = this.page(page, wrapper); treeDict(dummyInventoryInfoHistoryEO, historyEOPage.getRecords()); diff --git a/jero-web/src/components/UpdateLog/versionUpdatedRecordList.vue b/jero-web/src/components/UpdateLog/versionUpdatedRecordList.vue index c600af84d..a5c7cb8a6 100644 --- a/jero-web/src/components/UpdateLog/versionUpdatedRecordList.vue +++ b/jero-web/src/components/UpdateLog/versionUpdatedRecordList.vue @@ -123,7 +123,8 @@ versionNum:row.versionNum, id: row.listId, title: '市场清单详情', - isColophon: 'yes' + isColophon: 'yes', + marketListVersionUpdateLogId:row.id } }) window.open(newUrl.href, '_blank') diff --git a/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue b/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue index 5ab29158b..1f52918cc 100644 --- a/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue +++ b/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue @@ -1333,6 +1333,7 @@ let url = '' if (this.$route.query.isColophon && this.$route.query.isColophon == 'yes') { url = '/dummy/dummyInventoryInfoHistoryEO/page' + query.marketListVersionUpdateLogId = this.$route.query.marketListVersionUpdateLogId } else { url = this.url.list } From 8aa8b3a642c6d3c5027ff1ebb4defca8236ea490 Mon Sep 17 00:00:00 2001 From: gaosong Date: Mon, 6 Nov 2023 08:26:47 +0800 Subject: [PATCH 24/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E7=AB=AF=E7=9A=84=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PhoneHomePermissionController.java | 383 ++++++++++++++++++ 1 file changed, 383 insertions(+) create mode 100644 jero-boot/jero-boot-modules/src/main/java/com/jero/modules/home/controller/PhoneHomePermissionController.java diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/home/controller/PhoneHomePermissionController.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/home/controller/PhoneHomePermissionController.java new file mode 100644 index 000000000..2a291061e --- /dev/null +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/home/controller/PhoneHomePermissionController.java @@ -0,0 +1,383 @@ +package com.jero.modules.home.controller; + +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.jero.common.api.vo.Result; +import com.jero.common.constant.CommonConstant; +import com.jero.common.constant.enums.CutEnum; +import com.jero.common.system.vo.LoginUser; +import com.jero.common.util.MD5Util; +import com.jero.common.util.oConvertUtils; +import com.jero.modules.ota.entity.OtaManageReceiveNsdp; +import com.jero.modules.ota.service.IOtaManageApplyEOService; +import com.jero.modules.system.entity.SysPermission; +import com.jero.modules.system.enums.SysPermissionEnum; +import com.jero.modules.system.mapper.TodoCenterMapper; +import com.jero.modules.system.service.ISysPermissionService; +import com.jero.modules.system.util.PermissionDataUtil; +import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; +import org.apache.shiro.SecurityUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + *

+ * 菜单权限表 为了做待办中心消息提醒放过来的 + *

+ * + * @Author scott + * @since 2018-12-21 + */ +@Slf4j +@RestController +@RequestMapping("/phone/home/permission") +public class PhoneHomePermissionController { + + @Autowired + private ISysPermissionService sysPermissionService; + + @Autowired + private TodoCenterMapper todoCenterMapper; + + @Autowired + private IOtaManageApplyEOService otaManageApplyEOService; + + + + /** + * 查询用户拥有的菜单权限和按钮权限 + * + * @return + */ + @RequestMapping(value = "/getUserPermissionByToken", method = RequestMethod.GET) + public Result getUserPermissionByToken(String cut) { + Result result = new Result(); + try { + //直接获取当前用户不适用前端token + LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); + if (oConvertUtils.isEmpty(loginUser)) { + return Result.error("请登录系统!"); + } + List metaList = sysPermissionService.queryByUser(loginUser.getUsername()); + //添加首页路由 + //update-begin-author:taoyan date:20200211 for: TASK #3368 【路由缓存】首页的缓存设置有问题,需要根据后台的路由配置来实现是否缓存 + if (!PermissionDataUtil.hasIndexPage(metaList)) { + SysPermission indexMenu = sysPermissionService.list(new LambdaQueryWrapper().eq(SysPermission::getName, "首页")).get(0); + metaList.add(0, indexMenu); + } + //update-end-author:taoyan date:20200211 for: TASK #3368 【路由缓存】首页的缓存设置有问题,需要根据后台的路由配置来实现是否缓存 + JSONObject json = new JSONObject(); + JSONArray menujsonArray = new JSONArray(); + this.getPermissionJsonArray(menujsonArray, metaList, null, cut); + JSONArray authjsonArray = new JSONArray(); + this.getAuthJsonArray(authjsonArray, metaList); + //查询所有的权限 + LambdaQueryWrapper query = new LambdaQueryWrapper(); + query.eq(SysPermission::getDelFlag, CommonConstant.DEL_FLAG_0); + query.eq(SysPermission::getMenuType, CommonConstant.MENU_TYPE_2); + //query.eq(SysPermission::getStatus, "1"); + List allAuthList = sysPermissionService.list(query); + JSONArray allauthjsonArray = new JSONArray(); + this.getAllAuthJsonArray(allauthjsonArray, allAuthList); + //路由菜单 + json.put("menu", menujsonArray); + //按钮权限(用户拥有的权限集合) + json.put("auth", authjsonArray); + //全部权限配置集合(按钮权限,访问权限) + json.put("allAuth", allauthjsonArray); + result.setResult(json); + result.success("查询成功"); + } catch (Exception e) { + result.error500("查询失败:" + e.getMessage()); + log.error(e.getMessage(), e); + } + return result; + } + + /** + * 获取菜单JSON数组 + * + * @param jsonArray + * @param metaList + * @param parentJson + */ + private void getPermissionJsonArray(JSONArray jsonArray, List metaList, JSONObject parentJson, String cut) { + for (SysPermission permission : metaList) { + if (permission.getMenuType() == null) { + continue; + } + String tempPid = permission.getParentId(); + JSONObject json = getPermissionJsonObject(permission, cut); + if (json == null) { + continue; + } + if (parentJson == null && oConvertUtils.isEmpty(tempPid)) { + jsonArray.add(json); + if (!permission.isLeaf()) { + getPermissionJsonArray(jsonArray, metaList, json, cut); + } + } else if (parentJson != null && oConvertUtils.isNotEmpty(tempPid) && tempPid.equals(parentJson.getString("id"))) { + // 类型( 0:一级菜单 1:子菜单 2:按钮 ) + if (permission.getMenuType().equals(CommonConstant.MENU_TYPE_2)) { + JSONObject metaJson = parentJson.getJSONObject("meta"); + if (metaJson.containsKey("permissionList")) { + metaJson.getJSONArray("permissionList").add(json); + } else { + JSONArray permissionList = new JSONArray(); + permissionList.add(json); + metaJson.put("permissionList", permissionList); + } + // 类型( 0:一级菜单 1:子菜单 2:按钮 ) + } else if (permission.getMenuType().equals(CommonConstant.MENU_TYPE_1) || permission.getMenuType().equals(CommonConstant.MENU_TYPE_0)) { + if (parentJson.containsKey("children")) { + parentJson.getJSONArray("children").add(json); + } else { + JSONArray children = new JSONArray(); + children.add(json); + parentJson.put("children", children); + } + + if (!permission.isLeaf()) { + getPermissionJsonArray(jsonArray, metaList, json, cut); + } + } + } + + } + } + + + /** + * 获取权限JSON数组 + * + * @param jsonArray + * @param metaList + */ + private void getAuthJsonArray(JSONArray jsonArray, List metaList) { + for (SysPermission permission : metaList) { + if (permission.getMenuType() == null) { + continue; + } + JSONObject json = null; + if (permission.getMenuType().equals(CommonConstant.MENU_TYPE_2) && CommonConstant.STATUS_1.equals(permission.getStatus())) { + json = new JSONObject(); + json.put("action", permission.getPerms()); + json.put("type", permission.getPermsType()); + json.put("describe", permission.getName()); + jsonArray.add(json); + } + } + } + + + /** + * 获取权限JSON数组 + * + * @param jsonArray + * @param allList + */ + private void getAllAuthJsonArray(JSONArray jsonArray, List allList) { + JSONObject json = null; + for (SysPermission permission : allList) { + json = new JSONObject(); + json.put("action", permission.getPerms()); + json.put("status", permission.getStatus()); + //1显示2禁用 + json.put("type", permission.getPermsType()); + json.put("describe", permission.getName()); + jsonArray.add(json); + } + } + + + /** + * 根据菜单配置生成路由json + * + * @param permission + * @return + */ + private JSONObject getPermissionJsonObject(SysPermission permission, String cut) { + JSONObject json = new JSONObject(); + // 类型(0:一级菜单 1:子菜单 2:按钮) + if (permission.getMenuType().equals(CommonConstant.MENU_TYPE_2)) { + //json.put("action", permission.getPerms()); + //json.put("type", permission.getPermsType()); + //json.put("describe", permission.getName()); + return null; + } else if (permission.getMenuType().equals(CommonConstant.MENU_TYPE_0) || permission.getMenuType().equals(CommonConstant.MENU_TYPE_1)) { + json.put("id", permission.getId()); + if (permission.isRoute()) { + json.put("route", "1");// 表示生成路由 + } else { + json.put("route", "0");// 表示不生成路由 + } + + if (isWWWHttpUrl(permission.getUrl())) { + json.put("path", MD5Util.MD5Encode(permission.getUrl(), "utf-8")); + } else { + json.put("path", permission.getUrl()); + } + + // 重要规则:路由name (通过URL生成路由name,路由name供前端开发,页面跳转使用) + if (oConvertUtils.isNotEmpty(permission.getComponentName())) { + json.put("name", permission.getComponentName()); + } else { + json.put("name", urlToRouteName(permission.getUrl())); + } + + // 是否隐藏路由,默认都是显示的 + if (permission.isHidden()) { + json.put("hidden", true); + } + // 聚合路由 + if (permission.isAlwaysShow()) { + json.put("alwaysShow", true); + } + json.put("component", permission.getComponent()); + JSONObject meta = new JSONObject(); + // 由用户设置是否缓存页面 用布尔值 + if (permission.isKeepAlive()) { + meta.put("keepAlive", true); + } else { + meta.put("keepAlive", false); + } + + /*update_begin author:wuxianquan date:20190908 for:往菜单信息里添加外链菜单打开方式 */ + //外链菜单打开方式 + if (permission.isInternalOrExternal()) { + meta.put("internalOrExternal", true); + } else { + meta.put("internalOrExternal", false); + } + /* update_end author:wuxianquan date:20190908 for: 往菜单信息里添加外链菜单打开方式*/ + + if (CutEnum.EN.getValue().equals(cut)) { + meta.put("title", permission.getMenuEn()); + } else { + meta.put("title", permission.getName()); + } + + //update-begin--Author:scott Date:20201015 for:路由缓存问题,关闭了tab页时再打开就不刷新 #842 + String component = permission.getComponent(); + if (oConvertUtils.isNotEmpty(permission.getComponentName()) || oConvertUtils.isNotEmpty(component)) { + meta.put("componentName", oConvertUtils.getString(permission.getComponentName(), component.substring(component.lastIndexOf("/") + 1))); + } + //update-end--Author:scott Date:20201015 for:路由缓存问题,关闭了tab页时再打开就不刷新 #842 + + if (oConvertUtils.isEmpty(permission.getParentId())) { + // 一级菜单跳转地址 + json.put("redirect", permission.getRedirect()); + if (oConvertUtils.isNotEmpty(permission.getIcon())) { + meta.put("icon", permission.getIcon()); + } + } else { + if (oConvertUtils.isNotEmpty(permission.getIcon())) { + meta.put("icon", permission.getIcon()); + } + } + if (isWWWHttpUrl(permission.getUrl())) { + meta.put("url", permission.getUrl()); + } + + LoginUser currentUser = (LoginUser) SecurityUtils.getSubject().getPrincipal(); + + Map params = new HashMap<>(); + params.put("currentUserId", currentUser.getId()); + + List flowTypeList = new ArrayList<>(); + //项目法规任务 + if (StringUtils.equals(permission.getId(), SysPermissionEnum.PROJECT_REGULATION_TASKS.getId())) { + flowTypeList.add("1"); + flowTypeList.add("2"); + flowTypeList.add("3"); + flowTypeList.add("4"); + flowTypeList.add("10"); + flowTypeList.add("21"); + params.put("flowTypeList", flowTypeList); + //存在待办任务标识,true为有 + boolean existTaskFlag = false; + int result = todoCenterMapper.todoCenterTaskCount(params); + if (result > 0) { + existTaskFlag = true; + } + //查询当前登录用户是否有项目法规任务 + meta.put("existTask", existTaskFlag); + } + //法规评估任务 + if (StringUtils.equals(permission.getId(), SysPermissionEnum.REGULATORY_ASSESSMENT_TASKS.getId())) { + flowTypeList.add("5"); + flowTypeList.add("6"); + params.put("flowTypeList", flowTypeList); + int result = todoCenterMapper.todoCenterTaskCount(params); + boolean existTaskFlag = false; + if (result > 0) { + existTaskFlag = true; + } + meta.put("existTask", existTaskFlag); + } + //项目参数任务 + if (StringUtils.equals(permission.getId(), SysPermissionEnum.PROJECT_PARAMETER_TASKS.getId())) { + boolean existTaskFlag = false; + existTaskFlag = sysPermissionService.judgeToDo(); + meta.put("existTask", existTaskFlag); + } + //OTA任务 + if (StringUtils.equals(permission.getId(), SysPermissionEnum.OTA_TASKS.getId())) { + boolean existTaskFlag = false; + List otaList = otaManageApplyEOService.getOtaTodoList(new OtaManageReceiveNsdp()); + if(!otaList.isEmpty()){ + existTaskFlag = true; + } + meta.put("existTask", existTaskFlag); + } + + json.put("meta", meta); + } + + return json; + } + + /** + * 判断是否外网URL 例如: http://localhost:8080/jero-boot/swagger-ui.html#/ 支持特殊格式: {{ + * window._CONFIG['domianURL'] }}/druid/ {{ JS代码片段 }},前台解析会自动执行JS代码片段 + * + * @return + */ + private boolean isWWWHttpUrl(String url) { + if (url != null && (url.startsWith("http://") || url.startsWith("https://") || url.startsWith("{{"))) { + return true; + } + return false; + } + + /** + * 通过URL生成路由name(去掉URL前缀斜杠,替换内容中的斜杠‘/’为-) 举例: URL = /isystem/role RouteName = + * isystem-role + * + * @return + */ + private String urlToRouteName(String url) { + if (oConvertUtils.isNotEmpty(url)) { + if (url.startsWith("/")) { + url = url.substring(1); + } + url = url.replace("/", "-"); + + // 特殊标记 + url = url.replace(":", "@"); + return url; + } else { + return null; + } + } + +} From 657130b9f1cd39fe5c789f4ec7d6f100bedcf491 Mon Sep 17 00:00:00 2001 From: gaosong Date: Thu, 9 Nov 2023 16:25:05 +0800 Subject: [PATCH 25/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E6=B8=85=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/components/globalAdvancedQuery/index.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jero-web/src/components/globalAdvancedQuery/index.vue b/jero-web/src/components/globalAdvancedQuery/index.vue index d67d3003e..4a00f2d4c 100644 --- a/jero-web/src/components/globalAdvancedQuery/index.vue +++ b/jero-web/src/components/globalAdvancedQuery/index.vue @@ -632,6 +632,12 @@ delete item.options //update-end-author:taoyan date:20200819 for:【开源问题】 高级查询 下拉框作为并且选项很多多多 LOWCOD-779 } + if (Array.isArray(item.tree)) { + // 如果有字典属性,就不需要保存 options 了 + //update-begin-author:taoyan date:20200819 for:【开源问题】 高级查询 下拉框作为并且选项很多多多 LOWCOD-779 + delete item.tree + //update-end-author:taoyan date:20200819 for:【开源问题】 高级查询 下拉框作为并且选项很多多多 LOWCOD-779 + } } } return array From f06b3950d344e531fc775741fe1757e20c18ce34 Mon Sep 17 00:00:00 2001 From: gaosong Date: Sat, 11 Nov 2023 15:28:45 +0800 Subject: [PATCH 26/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=95=E8=A7=84?= =?UTF-8?q?=E6=B8=85=E5=8D=95=E8=AF=84=E8=AE=BA=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projectManagement/ProjectDetails/index.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/jero-web/src/views/projectManagement/ProjectDetails/index.vue b/jero-web/src/views/projectManagement/ProjectDetails/index.vue index d24bf45f4..793cd49cd 100644 --- a/jero-web/src/views/projectManagement/ProjectDetails/index.vue +++ b/jero-web/src/views/projectManagement/ProjectDetails/index.vue @@ -17,13 +17,13 @@ - - - - - - - +
+ + {{$t('comment')}} +
Date: Sun, 12 Nov 2023 14:59:29 +0800 Subject: [PATCH 27/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9OTA=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-boot/db/蔚来标准sql/dev_third_record.sql | 18 +++++++++++++++++- .../jero/modules/ota/entity/OtaBaSjSjyxpg.java | 16 ++++++++++++++++ .../service/impl/OtaBaCxListServiceImpl.java | 2 +- .../service/impl/OtaBaSjListServiceImpl.java | 2 +- .../service/impl/OtaBaSjSjmbcxServiceImpl.java | 6 +++++- .../service/impl/OtaBaSjSjyxpgServiceImpl.java | 17 ++++++++++++++++- 6 files changed, 56 insertions(+), 5 deletions(-) diff --git a/jero-boot/db/蔚来标准sql/dev_third_record.sql b/jero-boot/db/蔚来标准sql/dev_third_record.sql index bf99cbc43..950e7cb13 100644 --- a/jero-boot/db/蔚来标准sql/dev_third_record.sql +++ b/jero-boot/db/蔚来标准sql/dev_third_record.sql @@ -1343,7 +1343,7 @@ ALTER TABLE `problem_management` ADD COLUMN `project_type` varchar(255) NULL COMMENT '相关项目类型' AFTER `problem_priority`; --- 市场法规清单历史表 2023-10-30 未同步数据库 +-- 市场法规清单历史表 2023-10-30 已同步生产环境 CREATE TABLE `dummy_inventory_info_history` ( `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `create_by` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人', @@ -1391,6 +1391,22 @@ CREATE TABLE `dummy_inventory_info_history` ( PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; +-- OTA升级活动是否提供用户确认 2023-11-11 已同步数据库 +INSERT INTO `sys_dict` (`id`, `dict_name`, `dict_code`, `description`, `del_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `type`, `dict_en_name`, `is_tag_dict`, `is_read_only`, `attribute_type`, `order_num`) VALUES ('1665537106720296962', 'OTA-升级影响评估-升级确认', 'O_T_A_-_sheng1_ji2_ying3_xiang3_ping2_gu1_-_sheng1_ji2_que4_ren4', NULL, '0', 'admin', '2023-06-05 09:52:45', 'song.gao2.o', '2023-08-31 09:57:28', NULL, NULL, '1', '0', '1', '4'); +INSERT INTO `sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`, `stat_node`) VALUES ('1665537773488803842', '1665537106720296962', '车辆信息娱乐系统', 'd546d06291b14f248a9d551bbc308317', NULL, '1', '1', 'admin', '2023-06-05 09:55:24', NULL, NULL, '1', NULL, NULL, '0', 'Vehicle infotainment system', NULL); +INSERT INTO `sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`, `stat_node`) VALUES ('1665537835442868226', '1665537106720296962', '车辆仪表盘', '4b0e60e866a442e7a1198787ac0c432c', NULL, '2', '1', 'admin', '2023-06-05 09:55:39', NULL, NULL, '1', NULL, NULL, '0', 'Vehicle dashboard', NULL); +INSERT INTO `sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`, `stat_node`) VALUES ('1665537903860355073', '1665537106720296962', '移动应用程序', '225b9b71bc594c42847ad209af7266ab', NULL, '3', '1', 'admin', '2023-06-05 09:55:55', NULL, NULL, '1', NULL, NULL, '0', 'Mobile application', NULL); +INSERT INTO `sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`, `stat_node`) VALUES ('1665537980683227138', '1665537106720296962', '电子邮件', 'bebb284fe5814eb48a9d39ff369f8447', NULL, '4', '1', 'admin', '2023-06-05 09:56:13', NULL, NULL, '1', NULL, NULL, '0', 'E-mail', NULL); +INSERT INTO `sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`, `stat_node`) VALUES ('1665538039910993922', '1665537106720296962', '合同协议', '2502a124b6c44dd391afff9759ec4e25', NULL, '5', '1', 'admin', '2023-06-05 09:56:28', NULL, NULL, '1', NULL, NULL, '0', 'Contract agreement', NULL); +INSERT INTO `sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`, `stat_node`) VALUES ('1665538110215917569', '1665537106720296962', '短信', 'ce0225b4ecd146e4a8d88068fb05aa78', NULL, '6', '1', 'admin', '2023-06-05 09:56:44', NULL, NULL, '1', NULL, NULL, '0', 'Short message', NULL); +INSERT INTO `sys_dict_item` (`id`, `dict_id`, `item_text`, `item_value`, `description`, `sort_order`, `status`, `create_by`, `create_time`, `update_by`, `update_time`, `is_tag_dict`, `is_read_only`, `attribute_type`, `del_flag`, `en_name`, `stat_node`) VALUES ('1665538157657690114', '1665537106720296962', '其他', '344a3320beba45afb3718c59b7a7144a', NULL, '7', '1', 'admin', '2023-06-05 09:56:56', NULL, NULL, '1', NULL, NULL, '0', 'others', NULL); + +ALTER TABLE `ota_ba_sj_sjyxpg` + ADD COLUMN `yhqr_xlk` varchar(50) NULL COMMENT '升级活动是否提供用户确认选项-下拉框' AFTER `yhqr`, +ADD COLUMN `yhqr_qt` varchar(1000) NULL COMMENT '升级活动是否提供用户确认选项-其他文本' AFTER `yhqr_xlk`; +ADD COLUMN `yhqr_no` varchar(1000) NULL COMMENT '升级活动是否提供用户确认选项-否文本' AFTER `yhqr_qt`; + + diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/ota/entity/OtaBaSjSjyxpg.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/ota/entity/OtaBaSjSjyxpg.java index cb092367c..97b64eafb 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/ota/entity/OtaBaSjSjyxpg.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/ota/entity/OtaBaSjSjyxpg.java @@ -126,6 +126,22 @@ public class OtaBaSjSjyxpg implements Serializable { @ApiModelProperty(value = "升级活动是否提供用户确认选项") private java.lang.Integer yhqr; + /**升级活动是否提供用户确认选项-下拉框*/ + @Excel(name = "升级活动是否提供用户确认选项-下拉框", width = 15) + @ApiModelProperty(value = "升级活动是否提供用户确认选项-下拉框") + @Dict(dicCode = "_sheng1_ji2_ying3_xiang3_ping2_gu1_-_sheng1_ji2_que4_ren4") + private java.lang.String yhqrXlk; + + /**升级活动是否提供用户确认选项-其他文本*/ + @Excel(name = "升级活动是否提供用户确认选项-其他文本", width = 15) + @ApiModelProperty(value = "升级活动是否提供用户确认选项-其他文本") + private java.lang.String yhqrQt; + + /**升级活动是否提供用户确认选项-否文本*/ + @Excel(name = "升级活动是否提供用户确认选项-否文本", width = 15) + @ApiModelProperty(value = "升级活动是否提供用户确认选项-否文本") + private java.lang.String yhqrNo; + /**升级包测试*/ @Excel(name = "升级包测试", width = 15) @ApiModelProperty(value = "升级包测试") diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/ota/service/impl/OtaBaCxListServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/ota/service/impl/OtaBaCxListServiceImpl.java index 0b3e47927..1f4b3fe3b 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/ota/service/impl/OtaBaCxListServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/ota/service/impl/OtaBaCxListServiceImpl.java @@ -179,7 +179,7 @@ public class OtaBaCxListServiceImpl extends ServiceImpl Date: Sun, 12 Nov 2023 15:05:14 +0800 Subject: [PATCH 28/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9OTA=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/upgradetargetmodel.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue index b9f9b4c49..e04d0dfef 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue @@ -257,7 +257,21 @@ export default { if (res.result.dllx1 == null || res.result.dllx1 == "") { this.form.dllx1 = undefined - + }else{ + let list = [] + getAction('sys/dict/getDictItems/vehicle_dynamic_type1', { }).then((res) => { + if (res.success) { + res.result.forEach((item,index) => { + let w = item.value + let a = w.indexOf("-") + let l = w.substring(0,a) + if(this.form.dllx1 == l){ + list.push(item) + } + }) + this.projectNameList2 = list + } + }) } if (res.result.dllx2 == null || res.result.dllx2 == "") { this.form.dllx2 = undefined From 88d4972270db993ee73e3b748e4222681202b03c Mon Sep 17 00:00:00 2001 From: gaosong Date: Sun, 12 Nov 2023 15:13:33 +0800 Subject: [PATCH 29/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9OTA=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/upgradeimpactassessment.vue | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradeimpactassessment.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradeimpactassessment.vue index 330db7124..9451d0efe 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradeimpactassessment.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradeimpactassessment.vue @@ -139,30 +139,30 @@
- {{ $t('yes') }} - {{ $t('not') }} + {{ $t('yes') }} + {{ $t('not') }}
@@ -434,11 +434,11 @@ this.$forceUpdate() this.flagly = true this.qrheight = '100px' } - if(this.form.yhqr == '1' && this.form.flagqr == '344a3320beba45afb3718c59b7a7144a'){ + if(this.form.yhqr == '1' && this.form.yhqrXlk == '344a3320beba45afb3718c59b7a7144a'){ this.qrheight = '150px' this.flagqrqt = true this.flagly = false - }else if(this.form.yhqr == '1' && this.form.flagqr != '344a3320beba45afb3718c59b7a7144a'){ + }else if(this.form.yhqr == '1' && this.form.yhqrXlk != '344a3320beba45afb3718c59b7a7144a'){ this.flagqr = true this.flagqrqt = false this.flagly = false @@ -489,7 +489,7 @@ this.$forceUpdate() this.qrheight = '100px' this.flagqr = true this.flagly = false - if(this.form.flagqr == '344a3320beba45afb3718c59b7a7144a'){ + if(this.form.yhqrXlk == '344a3320beba45afb3718c59b7a7144a'){ this.qrheight = '150px' this.flagqrqt = true } From 4cdafeb1b7227107035278019342a3f07db10feb Mon Sep 17 00:00:00 2001 From: gaosong Date: Sun, 12 Nov 2023 15:22:13 +0800 Subject: [PATCH 30/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E6=B8=85=E5=8D=95=E7=B1=BB=E5=88=AB=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/certificationList/index.vue | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/jero-web/src/views/projectManagement/components/certificationList/index.vue b/jero-web/src/views/projectManagement/components/certificationList/index.vue index d40476924..9f8cc43e8 100644 --- a/jero-web/src/views/projectManagement/components/certificationList/index.vue +++ b/jero-web/src/views/projectManagement/components/certificationList/index.vue @@ -78,7 +78,15 @@ v-model="queryParam.serialNumber">
- + +
+
+ {{ $t('category') }} +
+ +
+
@@ -648,11 +656,11 @@ 'Component report not submitted': 'TrackedColor' }, fieldList: [ - { - type: 'string', - value: 'category', - text: this.$t('category') - }, + // { + // type: 'string', + // value: 'category', + // text: this.$t('category') + // }, { type: 'string', value: 'configItem', From 1039e1a76e2cd0627edde50dcd81fc3ce096f22c Mon Sep 17 00:00:00 2001 From: gaosong Date: Sun, 12 Nov 2023 15:58:51 +0800 Subject: [PATCH 31/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=95=E8=A7=84?= =?UTF-8?q?=E6=B8=85=E5=8D=95=E9=AB=98=E7=BA=A7=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/listOfRegulations.vue | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/jero-web/src/views/projectManagement/components/listOfRegulations.vue b/jero-web/src/views/projectManagement/components/listOfRegulations.vue index 4995c32d8..3a222b72d 100644 --- a/jero-web/src/views/projectManagement/components/listOfRegulations.vue +++ b/jero-web/src/views/projectManagement/components/listOfRegulations.vue @@ -1403,17 +1403,17 @@ value: 'attestationRank', text: this.$t('certificationLevel'), dictCode: 'attestation_rank'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框 - } - // { - // type: 'deliverables', - // value: 'designDeliverableType', - // text: this.$t('designaconformancedeliverabletype'), - // }, - // { - // type: 'deliverables', - // value: 'verifyDeliverableType', - // text: this.$t('verifytheconformancedeliverabletype'), - // }, + }, + { + type: 'deliverables', + value: 'designDeliverableType', + text: this.$t('designaconformancedeliverabletype'), + }, + { + type: 'deliverables', + value: 'verifyDeliverableType', + text: this.$t('verifytheconformancedeliverabletype'), + }, // { // type: 'Personnel', // value: 'designDutyId', From d4123217b5911914b2589d13679c6ae6b26dc2d6 Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Thu, 16 Nov 2023 16:54:06 +0800 Subject: [PATCH 32/73] =?UTF-8?q?ES=E6=96=87=E6=A1=A3=E5=BA=93=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../searchcenter/service/impl/DocumentSearchServiceImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/searchcenter/service/impl/DocumentSearchServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/searchcenter/service/impl/DocumentSearchServiceImpl.java index b1e328453..e84e8c595 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/searchcenter/service/impl/DocumentSearchServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/searchcenter/service/impl/DocumentSearchServiceImpl.java @@ -234,6 +234,7 @@ public class DocumentSearchServiceImpl implements IDocumentSearchService { }else{ mapSortTemp.put(orderByField,mapSort); } + sort.putAll(mapSortTemp); }else{ if(ObjectUtils.isNotEmpty(((Map) map.get("mapOne")).get("serial_number")) || ObjectUtils.isNotEmpty(((Map) map.get("mapTwo")).get("serial_number")) From d65da69c1d62ccd6eb7967d5ba8ab418b0c20d8b Mon Sep 17 00:00:00 2001 From: gaosong Date: Sat, 18 Nov 2023 12:24:19 +0800 Subject: [PATCH 33/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=A8=A1=E7=89=88=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-boot/jero-boot-modules/pom.xml | 25 +++++- .../service/impl/ParamsInfoEOServiceImpl.java | 26 +++--- .../utils/RightSheetExcelImportUtil.java | 20 +++++ .../utils/RightSheetSaxReadExcel.java | 81 +++++++++++++++++++ 4 files changed, 138 insertions(+), 14 deletions(-) create mode 100644 jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/template/utils/RightSheetExcelImportUtil.java create mode 100644 jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/template/utils/RightSheetSaxReadExcel.java diff --git a/jero-boot/jero-boot-modules/pom.xml b/jero-boot/jero-boot-modules/pom.xml index 1f4c12fa2..28338b917 100644 --- a/jero-boot/jero-boot-modules/pom.xml +++ b/jero-boot/jero-boot-modules/pom.xml @@ -124,7 +124,7 @@ cn.afterturn easypoi-base - 3.2.0 + 3.3.0 org.apache.poi @@ -143,12 +143,31 @@ cn.afterturn easypoi-web - 3.2.0 + 3.3.0 cn.afterturn easypoi-annotation - 3.2.0 + 3.3.0 + + + com.monitorjbl + xlsx-streamer + 1.2.0 + + + org.apache.poi + poi-ooxml-schemas + + + org.apache.poi + poi-ooxml + + + org.apache.poi + poi + + com.github.junrar diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/template/service/impl/ParamsInfoEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/template/service/impl/ParamsInfoEOServiceImpl.java index f41bf40a0..2d39a24d8 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/template/service/impl/ParamsInfoEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/template/service/impl/ParamsInfoEOServiceImpl.java @@ -6,6 +6,7 @@ import cn.afterturn.easypoi.excel.entity.result.ExcelImportResult; import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ZipUtil; +import cn.hutool.poi.excel.ExcelReader; import com.aliyuncs.utils.IOUtils; import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; @@ -25,6 +26,7 @@ import com.jero.modules.cert.template.mapper.ParamsInfoEOMapper; import com.jero.modules.cert.template.service.ICertCategoryParamsInfoEOService; import com.jero.modules.cert.template.service.IParamsInfoEOService; import com.jero.modules.cert.template.utils.CommonExcelExportStyler; +import com.jero.modules.cert.template.utils.RightSheetExcelImportUtil; import com.jero.modules.cert.template.vo.*; import com.jero.modules.oss.entity.OSSFile; import com.jero.modules.oss.service.IOSSFileService; @@ -34,6 +36,7 @@ import com.jero.modules.system.entity.SysCategory; import com.jero.modules.system.entity.SysDictItem; import com.jero.modules.system.service.ISysDictItemService; import com.jero.modules.system.service.impl.SysCategoryServiceImpl; +import com.monitorjbl.xlsx.StreamingReader; import org.apache.commons.io.FileUtils; import org.apache.commons.lang3.ObjectUtils; import org.apache.commons.lang3.StringUtils; @@ -904,8 +907,11 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl paramsInfoEOList = new ArrayList<>(); Map> certCategoryParamsInfoEOListMap = new HashMap<>(); @@ -936,16 +942,16 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl resultEn = ExcelImportUtil.importExcelMore(excelfile,ParamsInfoEnImport.class, params); - List paramsInfoEOListEn = resultEn.getList(); + // importExcelBySax 方法有bug,仅能导入第一个sheet页,所以仅针对numSheet为0的时候使用 + List paramsInfoEOListEn = RightSheetExcelImportUtil.importExcelBySax(new FileInputStream(excelfile), ParamsInfoCnImport.class, params); + copyParamsInfoList(paramsInfoEOListEn, paramsInfoEOList); } else { String fields[] ={ "*NIO编号", "*是否必填", "*参数名称","*参数批次","*责任领域", "参数说明", "*控件类型", "控件校验", "控件备选值", "默认值", "附件模板"}; params.setImportFields(fields); - - ExcelImportResult result = ExcelImportUtil.importExcelMore(excelfile, ParamsInfoCnImport.class, params); - paramsInfoEOList = result.getList(); + // importExcelBySax 方法有bug,仅能导入第一个sheet页,所以仅针对numSheet为0的时候使用 + paramsInfoEOList = RightSheetExcelImportUtil.importExcelBySax(new FileInputStream(excelfile), ParamsInfoCnImport.class, params); } } else { // 认证类别参数表 @@ -955,15 +961,13 @@ public class ParamsInfoEOServiceImpl extends ServiceImpl resultEn = ExcelImportUtil.importExcelMore(excelfile, CertCategoryParamsInfoEnImport.class, params); - List listEn = resultEn.getList(); + List listEn = RightSheetExcelImportUtil.importExcelBySax(new FileInputStream(excelfile), CertCategoryParamsInfoEnImport.class, params); copycertCategoryParamsInfoList(listEn, list); } else { String fields[] ={ "*NIO编号", "*编号", "*参数名称","参数说明"}; params.setImportFields(fields); - ExcelImportResult result = ExcelImportUtil.importExcelMore(excelfile, CertCategoryParamsInfoCnImport.class, params); - list = result.getList(); + list = RightSheetExcelImportUtil.importExcelBySax(new FileInputStream(excelfile), CertCategoryParamsInfoCnImport.class, params); } if (CollectionUtil.isNotEmpty(list)) { list.remove(0); // 去掉填写说明 diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/template/utils/RightSheetExcelImportUtil.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/template/utils/RightSheetExcelImportUtil.java new file mode 100644 index 000000000..bbf4b787d --- /dev/null +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/template/utils/RightSheetExcelImportUtil.java @@ -0,0 +1,20 @@ +package com.jero.modules.cert.template.utils; + +import cn.afterturn.easypoi.excel.entity.ImportParams; +import cn.afterturn.easypoi.excel.imports.sax.SaxReadExcel; +import cn.afterturn.easypoi.excel.imports.sax.parse.ISaxRowRead; +import cn.afterturn.easypoi.handler.inter.IExcelReadRowHandler; + +import java.io.InputStream; +import java.util.List; + +/** + * 覆写为正确的sheet读取的工具类 + */ +public class RightSheetExcelImportUtil { + + public static List importExcelBySax(InputStream inputstream, Class pojoClass, ImportParams params) { + return (new RightSheetSaxReadExcel()).readExcel(inputstream, pojoClass, params, (ISaxRowRead)null, (IExcelReadRowHandler)null); + } + +} diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/template/utils/RightSheetSaxReadExcel.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/template/utils/RightSheetSaxReadExcel.java new file mode 100644 index 000000000..ef2442881 --- /dev/null +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/template/utils/RightSheetSaxReadExcel.java @@ -0,0 +1,81 @@ +package com.jero.modules.cert.template.utils; + +import cn.afterturn.easypoi.excel.entity.ImportParams; +import cn.afterturn.easypoi.excel.imports.sax.SaxReadExcel; +import cn.afterturn.easypoi.excel.imports.sax.SheetHandler; +import cn.afterturn.easypoi.excel.imports.sax.parse.ISaxRowRead; +import cn.afterturn.easypoi.excel.imports.sax.parse.SaxRowRead; +import cn.afterturn.easypoi.exception.excel.ExcelImportException; +import cn.afterturn.easypoi.handler.inter.IExcelReadRowHandler; +import org.apache.poi.openxml4j.opc.OPCPackage; +import org.apache.poi.xssf.eventusermodel.XSSFReader; +import org.apache.poi.xssf.model.SharedStringsTable; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.xml.sax.ContentHandler; +import org.xml.sax.InputSource; +import org.xml.sax.SAXException; +import org.xml.sax.XMLReader; +import org.xml.sax.helpers.XMLReaderFactory; + +import java.io.InputStream; +import java.util.Iterator; +import java.util.List; + +/** + * 修复SaxReadExcel Sheet不正确的问题 + */ +public class RightSheetSaxReadExcel extends SaxReadExcel { + + private static final Logger LOGGER = LoggerFactory.getLogger(RightSheetSaxReadExcel.class); + + @Override + public List readExcel(InputStream inputstream, Class pojoClass, ImportParams params, ISaxRowRead rowRead, IExcelReadRowHandler hanlder) { + try { + OPCPackage opcPackage = OPCPackage.open(inputstream); + return this.readExcel(opcPackage, pojoClass, params, rowRead, hanlder); + } catch (Exception var7) { + LOGGER.error(var7.getMessage(), var7); + throw new ExcelImportException(var7.getMessage()); + } + } + + private List readExcel(OPCPackage opcPackage, Class pojoClass, ImportParams params, ISaxRowRead rowRead, IExcelReadRowHandler hanlder) { + try { + XSSFReader xssfReader = new XSSFReader(opcPackage); + SharedStringsTable sst = xssfReader.getSharedStringsTable(); + if (rowRead == null) { + rowRead = new SaxRowRead(pojoClass, params, hanlder); + } + + XMLReader parser = this.fetchSheetParser(sst, (ISaxRowRead)rowRead); + Iterator sheets = xssfReader.getSheetsData(); + int sheetIndex = 0; + + while (sheets.hasNext() && sheetIndex < params.getSheetNum() + params.getStartSheetIndex()) { + if (sheetIndex < params.getStartSheetIndex()) { + sheets.next(); + } else { + InputStream sheet = sheets.next(); + InputSource sheetSource = new InputSource(sheet); + parser.parse(sheetSource); + sheet.close(); + } + sheetIndex++; + } + + return ((ISaxRowRead)rowRead).getList(); + } catch (Exception var13) { + LOGGER.error(var13.getMessage(), var13); + throw new ExcelImportException("SAX导入数据失败"); + } + } + + private XMLReader fetchSheetParser(SharedStringsTable sst, ISaxRowRead rowRead) throws SAXException { + XMLReader parser = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser"); + ContentHandler handler = new SheetHandler(sst, rowRead); + parser.setContentHandler(handler); + return parser; + } + +} From e4a2ad5a56122693e86618b102298f7afe770216 Mon Sep 17 00:00:00 2001 From: gaosong Date: Sat, 18 Nov 2023 12:39:25 +0800 Subject: [PATCH 34/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=88=97=E8=A1=A8=E9=BB=98=E8=AE=A4=E6=8C=89?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E5=80=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/ProjectLibraryBaseServiceImpl.java | 29 ++++++++++++------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java index 80eb89f2f..553e17fa4 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java @@ -2716,38 +2716,47 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl> dataList,Map params) { String orderByField = (String) params.get("orderByField"); String orderBy = (String) params.get("orderBy"); + //默认按数量倒序 + if(null == orderByField){ + orderByField = "amount"; + } + if(null == orderBy){ + orderBy = "2"; + } if(CollectionUtils.isNotEmpty(dataList)){ Collator comparator = Collator.getInstance(Locale.CHINESE); - Collections.sort(dataList,(data1,data2)->{ + String finalOrderByField = orderByField; + String finalOrderBy = orderBy; + Collections.sort(dataList,(data1, data2)->{ String param1 = ""; String param2 = ""; // 一级责任领域名称 - if("dutyTerritoryName".equals(orderByField)){ + if("dutyTerritoryName".equals(finalOrderByField)){ param1 = StringUtils.isNotEmpty((String) data1.get("dutyTerritoryName")) ? (String) data1.get("dutyTerritoryName") : ""; param2 = StringUtils.isNotEmpty((String) data2.get("dutyTerritoryName")) ? (String) data2.get("dutyTerritoryName") : ""; - if(OrderEnum.POSITIVE.getValue().equals(orderBy)){ + if(OrderEnum.POSITIVE.getValue().equals(finalOrderBy)){ return comparator.compare(param1,param2); - }else if(OrderEnum.REVERSE.getValue().equals(orderBy)){ + }else if(OrderEnum.REVERSE.getValue().equals(finalOrderBy)){ return comparator.compare(param2,param1); } } // 数量 - if(StringUtils.isEmpty(orderByField) || "amount".equals(orderByField)){ + if(StringUtils.isEmpty(finalOrderByField) || "amount".equals(finalOrderByField)){ double p1 = data1.get("amount") != null ? (double) data1.get("amount") : 0; double p2 = data2.get("amount") != null ? (double) data2.get("amount") : 0; - if(StringUtils.isEmpty(orderBy) || OrderEnum.POSITIVE.getValue().equals(orderBy)){ + if(StringUtils.isEmpty(finalOrderBy) || OrderEnum.POSITIVE.getValue().equals(finalOrderBy)){ return (int)(p1 - p2); - }else if(OrderEnum.REVERSE.getValue().equals(orderBy)){ + }else if(OrderEnum.REVERSE.getValue().equals(finalOrderBy)){ return (int)(p2 - p1); } } // 占比 - if("percentage".equals(orderByField)){ + if("percentage".equals(finalOrderByField)){ double p1 = StringUtils.isNotEmpty((String) data1.get("percentage")) ? Double.parseDouble (((String) data1.get("percentage")).replace("%","")) : 0; double p2 = StringUtils.isNotEmpty((String) data2.get("percentage")) ? Double.parseDouble (((String) data2.get("percentage")).replace("%","")) : 0; - if(OrderEnum.POSITIVE.getValue().equals(orderBy)){ + if(OrderEnum.POSITIVE.getValue().equals(finalOrderBy)){ return (int)(p1 - p2); - }else if(OrderEnum.REVERSE.getValue().equals(orderBy)){ + }else if(OrderEnum.REVERSE.getValue().equals(finalOrderBy)){ return (int)(p2 - p1); } } From 13f034fb98ba084b708294407c64d3f9c37dcd54 Mon Sep 17 00:00:00 2001 From: gaosong Date: Sat, 18 Nov 2023 13:27:32 +0800 Subject: [PATCH 35/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E5=BA=93=E5=88=86=E4=BA=AB=E6=94=B9=E8=AE=A2=E9=98=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ParamsManifestEOController.java | 2 +- .../ProjectLawsInventoryEOServiceImpl.java | 6 +++ .../library/docDetail/index.vue | 46 +++++++++++++++---- .../components/listEditModel.vue | 12 ++--- .../components/listOfRegulations.vue | 2 +- 5 files changed, 51 insertions(+), 17 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/controller/ParamsManifestEOController.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/controller/ParamsManifestEOController.java index 14c8158b0..fc2056eed 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/controller/ParamsManifestEOController.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/controller/ParamsManifestEOController.java @@ -163,7 +163,7 @@ public class ParamsManifestEOController extends JeroController updateModel(String mid, String version,String cid) { boolean isSuccess = paramsManifestEOService.updateModel(mid,version, cid); diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java index 73101fb79..e89f930a6 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java @@ -9408,12 +9408,18 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl
+ :title="collectFlag == '1' ? $t('CancelCollection') : $t('Collection')"> {{ collectFlag == '1' ? $t('CancelCollection') : $t('Collection') }}
-
- - {{ $t('share') }} -
+ + + + + +
+ + {{ subscribeFlag == '1' ? $t('CancelSubscribe') : $t('subscribe') }} +
@@ -466,6 +472,28 @@ export default { } }) }, + subscribeClick(val){ + let _this = this + this.$confirm({ + content: val.subscribeFlag == 0 || !val.subscribeFlag ? _this.$t('ConfirmSubscribe') : _this.$t('cancelConfirmSubscribe'), + onOk() { + let url = '' + if (val.subscribeFlag == 0 || !val.subscribeFlag) { + url = 'document/bussDocumentLibraryEO/addSubscribe' + } else { + url = 'document/bussDocumentLibraryEO/cancelSubscribe' + } + getAction(url, { id: val.id }).then((res) => { + if (res.success) { + _this.$message.success(_this.$t('OperationSuccessful')) + _this.getWdkCollectAndSubscribeInfoByUser() + } else { + _this.$message.warning(_this.$t('operationFailed')) + } + }) + } + }) + }, CollectionClick(val) { let _this = this this.$confirm({ @@ -959,14 +987,14 @@ body { font-weight: 400; color: #040B29; display: inline-block; - width: 130px; + max-width: 130px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; text-align: center; height: 40px; - border: 1px solid #CED0D8; - border-radius: 4px; + //border: 1px solid #CED0D8; + //border-radius: 4px; line-height: 40px; padding: 0 5px; } diff --git a/jero-web/src/views/projectManagement/components/listEditModel.vue b/jero-web/src/views/projectManagement/components/listEditModel.vue index dac7d0fda..4664b8487 100644 --- a/jero-web/src/views/projectManagement/components/listEditModel.vue +++ b/jero-web/src/views/projectManagement/components/listEditModel.vue @@ -758,22 +758,22 @@ ], designRemark: [ { - max: 300, - message: this.$t('descriptionDeliverables') + this.$t('cannotExceed') + 300 + this.$t('Characters'), + max: 1000, + message: this.$t('descriptionDeliverables') + this.$t('cannotExceed') + 1000 + this.$t('Characters'), trigger: 'blur' } ], verifyRemark: [ { - max: 300, - message: this.$t('descriptionDeliverables') + this.$t('cannotExceed') + 300 + this.$t('Characters'), + max: 1000, + message: this.$t('descriptionDeliverables') + this.$t('cannotExceed') + 1000 + this.$t('Characters'), trigger: 'blur' } ], prehomoRemark: [ { - max: 300, - message: this.$t('descriptionDeliverables') + this.$t('cannotExceed') + 300 + this.$t('Characters'), + max: 1000, + message: this.$t('descriptionDeliverables') + this.$t('cannotExceed') + 1000 + this.$t('Characters'), trigger: 'blur' } ], diff --git a/jero-web/src/views/projectManagement/components/listOfRegulations.vue b/jero-web/src/views/projectManagement/components/listOfRegulations.vue index 3a222b72d..6538bf28a 100644 --- a/jero-web/src/views/projectManagement/components/listOfRegulations.vue +++ b/jero-web/src/views/projectManagement/components/listOfRegulations.vue @@ -2997,7 +2997,7 @@ this.confirmLoading = false this.getList() } else { - this.$message.warning(this.$t('operationFailed')) + this.$message.warning(res.message) this.confirmLoading = false } let that = this From cc4e548d0f04945fed274d151cf032dd93561e3f Mon Sep 17 00:00:00 2001 From: gaosong Date: Sat, 18 Nov 2023 14:07:44 +0800 Subject: [PATCH 36/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=A8=A1=E7=89=88=E5=8F=91=E5=B8=83=EF=BC=8C=E5=8A=A0=E9=81=AE?= =?UTF-8?q?=E7=BD=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/xml/ParamsManifestEOMapper.xml | 2 +- .../impl/ParamsManifestEOServiceImpl.java | 28 +++++++++++++------ .../parameter/ParameterTemplate/index.vue | 7 +++++ 3 files changed, 28 insertions(+), 9 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/xml/ParamsManifestEOMapper.xml b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/xml/ParamsManifestEOMapper.xml index 3b8f336e0..7c97b3e40 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/xml/ParamsManifestEOMapper.xml +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/mapper/xml/ParamsManifestEOMapper.xml @@ -52,7 +52,7 @@ pm.params_template_publish_version as params_template_publish_version, pm.project_version as project_version, pm.explanation as explanation, - if (pt.params_template_name is not null, pt.params_template_name, pm.params_template_name) as params_template_name + pt.params_template_name as params_template_name diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsManifestEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsManifestEOServiceImpl.java index 227b2d417..c91e9f1e3 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsManifestEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsManifestEOServiceImpl.java @@ -158,17 +158,20 @@ public class ParamsManifestEOServiceImpl extends ServiceImpl queryList(ParamsManifestEO paramsManifestEO) { + IPage page = new Page(1, 100); + IPage pageList = pageInfo(page, paramsManifestEO); List resList = new ArrayList<>(); - LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - if(StringUtils.isNotEmpty(paramsManifestEO.getTitle())){ - queryWrapper.eq(ParamsManifestEO::getTitle, paramsManifestEO.getTitle()); - } - queryWrapper.eq(ParamsManifestEO::getProjectId, paramsManifestEO.getProjectId()); - List paramsManifestEOList = list(queryWrapper); - resList.addAll(paramsManifestEOList); +// LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); +// if(StringUtils.isNotEmpty(paramsManifestEO.getTitle())){ +// queryWrapper.eq(ParamsManifestEO::getTitle, paramsManifestEO.getTitle()); +// } +// queryWrapper.eq(ParamsManifestEO::getProjectId, paramsManifestEO.getProjectId()); + List paramsManifestEOList = pageList.getRecords(); for (ParamsManifestEO pm : paramsManifestEOList) { pm.setIsHistory("0"); } + resList.addAll(paramsManifestEOList); + List hisList = paramsManifestHistoryEOService.getHistoryListByProjectId(paramsManifestEO.getProjectId()); if(CollectionUtils.isNotEmpty(hisList)){ for (ParamsManifestHistoryEO his : hisList) { @@ -280,6 +283,9 @@ public class ParamsManifestEOServiceImpl extends ServiceImpl queryWrapper = new LambdaQueryWrapper<>(); queryWrapper.eq(ParamsCollectManifestEO::getParamsManifestId, cid); List paramsCollectManifestEOList = paramsCollectManifestEOService.list(queryWrapper); + for (ParamsCollectManifestEO peo:paramsCollectManifestEOList) { + peo.setState(CollectManifestStateEnum.WAIT_FILL.getValue()); + } // 根据参数模板id发布版本查询对应参数项集合 List paramsInfoPublishEOList = paramsInfoPublishEOService.getListByPublishVersion(mid, Integer.parseInt(version)); @@ -294,7 +300,13 @@ public class ParamsManifestEOServiceImpl extends ServiceImpl
+ {{ $t('pleaseWaitWhileRunning') }} @@ -139,6 +140,7 @@ export default { token:Vue.ls.get(ACCESS_TOKEN), loading: false, toggleSearchStatus: false, + JLoading:false, selectedRowKeys: [], selectedRowKeysArray: '', orderBy: '1', @@ -299,13 +301,16 @@ export default { this.$confirm({ content: item.status && item.status == '1' ? _this.$t('confirmWithdraw') : _this.$t('confirmRelease'), onOk() { + _this.JLoading = true if (item.status && item.status == '1'){ getAction('params/paramsInfo/withdraw', { paramsTemplateId: item.id }).then((res) => { if (res.success) { _this.$message.success(res.result) _this.getList() + _this.JLoading = false } else { _this.$message.warning(res.message) + _this.JLoading = false } }) }else{ @@ -313,8 +318,10 @@ export default { if (res.success) { _this.$message.success(res.result) _this.getList() + _this.JLoading = false } else { _this.$message.warning(res.message) + _this.JLoading = false } }) } From 021b841c3c0d48a4b53d087575d4754d2adb51d7 Mon Sep 17 00:00:00 2001 From: gaosong Date: Tue, 21 Nov 2023 17:57:17 +0800 Subject: [PATCH 37/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=A8=A1=E7=89=88=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../collect/service/impl/ParamsManifestEOServiceImpl.java | 4 +--- .../service/impl/ProjectLawsInventoryEOServiceImpl.java | 4 ++-- jero-web/src/views/parameter/ParameterTemplate/index.vue | 7 ++++--- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsManifestEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsManifestEOServiceImpl.java index c91e9f1e3..5c94ddde5 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsManifestEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/cert/collect/service/impl/ParamsManifestEOServiceImpl.java @@ -283,9 +283,6 @@ public class ParamsManifestEOServiceImpl extends ServiceImpl queryWrapper = new LambdaQueryWrapper<>(); queryWrapper.eq(ParamsCollectManifestEO::getParamsManifestId, cid); List paramsCollectManifestEOList = paramsCollectManifestEOService.list(queryWrapper); - for (ParamsCollectManifestEO peo:paramsCollectManifestEOList) { - peo.setState(CollectManifestStateEnum.WAIT_FILL.getValue()); - } // 根据参数模板id发布版本查询对应参数项集合 List paramsInfoPublishEOList = paramsInfoPublishEOService.getListByPublishVersion(mid, Integer.parseInt(version)); @@ -310,6 +307,7 @@ public class ParamsManifestEOServiceImpl extends ServiceImpl projectLawsInventoryEOListTemp = new ArrayList<>(); for (DummyInventoryInfoEO dummyInventoryInfoEO : dummyInventoryInfoEOListNew) { List collect = projectLawsInventoryEOList.stream() - .filter(e -> e.getSerialNumber().equals(dummyInventoryInfoEO.getSerialNumber())).collect(Collectors.toList()); + .filter(e -> e.getSerialNumber().equals(dummyInventoryInfoEO.getSerialNumber())&&e.getDutyTerritory().equals(dummyInventoryInfoEO.getDutyTerritory())).collect(Collectors.toList()); if (collect.size() != 0) { for (ProjectLawsInventoryEO lawsInventoryEO : collect) { //数据对比 @@ -3715,7 +3715,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl 50 ? text.slice(0, 49) + '...' : text }} - {{$t('edit')}} + {{$t('edit')}} {{record.status && record.status == '1'? $t('withdraw') : $t('release')}} - {{$t('maintenanceTemplate')}} - {{$t('deleteLib')}} + {{$t('deleteLib')}}
From 77f2f1e82b8d8ebe6ffe04a264ce695951168050 Mon Sep 17 00:00:00 2001 From: gaosong Date: Thu, 23 Nov 2023 21:15:31 +0800 Subject: [PATCH 38/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E5=BA=93=E6=96=87=E6=A1=A3=E7=BC=96=E5=8F=B7=E3=80=81=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E5=8F=98=E5=8C=96=EF=BC=8C=E8=99=9A=E6=8B=9F=E6=B8=85?= =?UTF-8?q?=E5=8D=95=EF=BC=8C=E6=B3=95=E8=A7=84=E6=B8=85=E5=8D=95=E4=B8=8D?= =?UTF-8?q?=E8=81=94=E5=8A=A8=EF=BC=88=E6=B3=95=E8=A7=84/=E8=AE=A4?= =?UTF-8?q?=E8=AF=81=E6=B8=85=E5=8D=95=E4=B8=AD=E8=8B=A5=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E4=B8=BA=E7=AC=A6=E5=90=88=E6=97=B6=E5=88=99=E7=BC=96=E5=8F=B7?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E4=B8=8D=E5=86=8D=E9=9A=8F=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E5=BA=93=E5=8F=98=E5=8C=96=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ctCertificationInventoryEOServiceImpl.java | 17 +++++++++++++- .../ProjectLawsInventoryEOServiceImpl.java | 22 +++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) 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 d88420ee8..d6e667f79 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 @@ -1396,8 +1396,23 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl sysUserList = this.sysUserService.querySysUserListByIdList(userIdList); - + List standIdList = datas.stream().map(ProjectCertificationInventoryEO::getBussDocumentLibraryId).distinct().collect(Collectors.toList()); + List docList = iBussDocumentLibraryEOService.listByIds(standIdList); for (ProjectCertificationInventoryEO data : datas) { + //处理编号,认证清单中若状态为符合时则编号标题不再随文档库变化 + if (!data.getFlowStatus().equals(CertificationInventoryFlowStatusEnum.REVIEW_AND_PASS.getValue()) + && StringUtils.isNotBlank(data.getBussDocumentLibraryId())) { + BussDocumentLibraryEO docObj = null; + for (BussDocumentLibraryEO obj : docList) { + if (obj.getId().equals(data.getBussDocumentLibraryId())) { + docObj = obj; + break; + } + } + if(null != docObj){ + data.setSerialNumber(docObj.getSerialNumber()); + } + } if(StringUtils.isNotEmpty(data.getSdt())){ String sdtName = sysUserList.stream().filter(sysUser -> { boolean flag = false; diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java index 01438f915..d5d2ca6fe 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java @@ -1556,7 +1556,29 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl standIdList = list.stream().map(ProjectLawsInventoryEO::getStandId).distinct().collect(Collectors.toList()); + List docList = bussDocumentLibraryEOService.listByIds(standIdList); for (ProjectLawsInventoryEO projectLawsInventoryEO : list) { + //处理编号,法规清单中若状态为符合时则编号标题不再随文档库变化 + if ((!projectLawsInventoryEO.getDesignFlowStatus().equals(ComplianceFlowStatusEnum.CONFORMITY.getValue()) + || !projectLawsInventoryEO.getVerifyFlowStatus().equals(ComplianceFlowStatusEnum.CONFORMITY.getValue())) + && StringUtils.isNotBlank(projectLawsInventoryEO.getStandId())) { + BussDocumentLibraryEO docObj = null; + for (BussDocumentLibraryEO obj : docList) { + if (obj.getId().equals(projectLawsInventoryEO.getStandId())) { + docObj = obj; + break; + } + } + if(null != docObj){ + projectLawsInventoryEO.setSerialNumber(docObj.getSerialNumber()); + if (StringUtils.equals(cut, CutEnum.CN.getValue())) { + projectLawsInventoryEO.setTitle(docObj.getTitle()); + } else { + projectLawsInventoryEO.setTitle(docObj.getTitleEn()); + } + } + } //处理交付物类型 String designDeliverableType = projectLawsInventoryEO.getDesignDeliverableType(); String prehomoDeliverableType = projectLawsInventoryEO.getPrehomoDeliverableType(); From 5b4054bcef3db71b99f535f1efd99732e26a1498 Mon Sep 17 00:00:00 2001 From: gaosong Date: Sun, 26 Nov 2023 14:05:59 +0800 Subject: [PATCH 39/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=AD=E8=8B=B1?= =?UTF-8?q?=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/jero/modules/system/enums/ProjectRoleEnum.java | 10 +++++----- .../lawsOpinionGather/enums/GatherResultEnum.java | 2 +- .../com/jero/modules/wkflow/enums/FlowTypeEnum.java | 2 +- jero-web/src/common/lang/en-us.js | 6 +++--- .../views/projectManagement/ProjectDetails/index.vue | 10 +++++----- .../platformItemLibraryDetails/index.vue | 10 +++++----- 6 files changed, 20 insertions(+), 20 deletions(-) diff --git a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/enums/ProjectRoleEnum.java b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/enums/ProjectRoleEnum.java index b4c675812..303bda11b 100644 --- a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/enums/ProjectRoleEnum.java +++ b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/enums/ProjectRoleEnum.java @@ -7,18 +7,18 @@ import org.apache.commons.lang3.StringUtils; */ public enum ProjectRoleEnum { STUDIO_ENGINEER("studio工程师","0","R&H Studio","R&H Studio"), - REGULATI_ENGINEER("法规工程师","1","studio","Regulation"), - HOMOLOGATION_ENGINEER("认证工程师","2","homo","homo"), - REGULATI_AND_HOMOLOGATION_ENGINEER("法规工程师/认证工程师","4","Regulatory Engineer/Certification Engineer","Regulatory Engineer/Certification Engineer"), + REGULATI_ENGINEER("法规工程师","1","studio","Regulation Engineer"), + HOMOLOGATION_ENGINEER("认证工程师","2","homo","Homo Engineer"), + REGULATI_AND_HOMOLOGATION_ENGINEER("法规工程师/认证工程师","4","Regulatory Engineer/Certification Engineer","Regulation Engineer/Homo Engineer"), MANAGER("领导角色","11","R&H Manager","R&H Manager"), ADMIN("系统管理员","12","admin","admin"), VIEWER("Viewer","13","Viewer","Viewer"), BRAND_ADMINISTRATOR("品牌管理员","14","BrandAdministrator","BrandAdministrator"), //法规清单使用 - INTERFACE_PERSON1("工程接口人","30","Interface person","Interface person"), + INTERFACE_PERSON1("工程接口人","30","Interface person","Eng. Interface"), PERSON_LIABLE1("责任人","31","Person liable","Person liable"), // 项目库-认证清单使用。 - INTERFACE_PERSON("工程接口人","20","Interface person","Interface person"), + INTERFACE_PERSON("工程接口人","20","Interface person","Eng. Interface"), PERSON_LIABLE("责任人","21","Person liable","Person liable"), ; diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsOpinionGather/enums/GatherResultEnum.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsOpinionGather/enums/GatherResultEnum.java index ef0721ab5..af48b5c33 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsOpinionGather/enums/GatherResultEnum.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/lawsOpinionGather/enums/GatherResultEnum.java @@ -8,7 +8,7 @@ import org.apache.commons.lang3.StringUtils; */ public enum GatherResultEnum { - UNDERWAY("进行中","Underway","Underway"), + UNDERWAY("进行中","Underway","In progress"), COMPLETED("已完成","Completed","Completed"), ; diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/wkflow/enums/FlowTypeEnum.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/wkflow/enums/FlowTypeEnum.java index 77c6683f8..9189e8856 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/wkflow/enums/FlowTypeEnum.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/wkflow/enums/FlowTypeEnum.java @@ -12,7 +12,7 @@ public enum FlowTypeEnum { RWQRLC("1","任务确认流程","RWQRLC","任务确认流程","rwqrlc","清单任务确认","List task confirmation"), SJFHXSHLC("2","设计符合性审查流程","SJFHXSHLC","设计符合性审查流程","sjfhxlc","设计符合性流程","Design Compliance Process"), PREHOMOQRLC("3","prehomo确认流程","PREHOMOQRLC","prehomo确认流程","prehomoqrlc","Pre-Homo确认","Pre-Homo Confirmation"), - YZFHXSCLC("4","验证符合性审查流程","YZFHXSCLC","验证符合性审查流程","yzfhxsclc","验证符合性流程","Verification Compliance Process"), + YZFHXSCLC("4","验证符合性审查流程","YZFHXSCLC","验证符合性审查流程","yzfhxsclc","验证符合性流程","Validation Compliance Process"), FGYJSJLC("5","法规意见收集流程","FGYJSJLC","法规意见收集流程","fgyjsjlc","法规意见收集","Opinion Collection on Regulation"), FGJSPG("6","法规技术评估流程","FGJSPG","法规技术评估流程","fgjspglc","法规技术评估","Regulatory Technical Assessment"), QDQR("10","清单确认","QDQR","清单确认流程","qdqr","法规清单发布","Regulation List Release"), diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index 4a2b93eff..bfc0b4fd3 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -828,7 +828,7 @@ module.exports = { releaseVersion: 'Release Version', parameterTemplate: 'Parameter Template', contentDescription: 'Description', - WhetherMergeParameters: 'Merge Parameters?', + WhetherMergeParameters: 'Merge Parameters', merge: 'Yes', nonjoinder: 'No', MergeSeparator: 'Merge separator', @@ -1647,7 +1647,7 @@ module.exports = { afterthesoftwareversionupgraded: 'After software version number upgrade', beforetheOSversionupgraded: 'Before the operating system version number is upgraded', aftertheoperatingsystemversionupgraded: 'After the operating system version number is upgraded', - initialpackageforintegrityinflammatorydata: 'Initial package for integrity of inflammatory data', + initialpackageforintegrityinflammatorydata: 'Integrity Verification Data for the Initial Package', upgradepackageintegrityverificationdata: 'Upgrade package integrity verification data', upgradepackagesize: 'Upgrade package size (MB)', differentialupgradeornot: 'Differential upgrade or not', @@ -2032,7 +2032,7 @@ module.exports = { high: 'High', centre: 'Centre', low: 'Low', - interfacePerson: 'Interface person', + interfacePerson: 'Eng. Interface', regulationEngineerInitiateProcess: 'Regulation Engineer Initiate Process', parameterCollectionDescription:'In the extension parameter collection list, the data highlighted in red represents the deleted parameters after template update, the data highlighted in yellow represents the changed parameters after template update, and for the newly added parameters after template update, homo engineer should find in "More-Add" and add them to the parameter collection list.', } \ No newline at end of file diff --git a/jero-web/src/views/projectManagement/ProjectDetails/index.vue b/jero-web/src/views/projectManagement/ProjectDetails/index.vue index 793cd49cd..a1fd5ec66 100644 --- a/jero-web/src/views/projectManagement/ProjectDetails/index.vue +++ b/jero-web/src/views/projectManagement/ProjectDetails/index.vue @@ -293,16 +293,16 @@ export default { }, roleSwitchListEn: { '0': 'R&H Studio', - '1': 'Regulation', - '2': 'homo', - '4': 'Regulatory Engineer/Certification Engineer', + '1': 'Regulation Engineer', + '2': 'Homo Engineer', + '4': 'Regulation Engineer/Homo Engineer', '11': 'R&H Manager', '12': 'admin', '13': 'Viewer', '14': 'BrandAdministrator', - '20': 'Interface person', + '20': 'Eng. Interface', '21': 'Person liable', - '30': 'Engineering interface person', + '30': 'Eng. Interface', '31': 'Person liable' }, areaOfResponsibility: {}, diff --git a/jero-web/src/views/projectManagement/platformItemLibraryDetails/index.vue b/jero-web/src/views/projectManagement/platformItemLibraryDetails/index.vue index 663ec2e0c..b2f8697c8 100644 --- a/jero-web/src/views/projectManagement/platformItemLibraryDetails/index.vue +++ b/jero-web/src/views/projectManagement/platformItemLibraryDetails/index.vue @@ -199,16 +199,16 @@ export default { }, roleSwitchListEn: { '0': 'R&H Studio', - '1': 'studio', - '2': 'homo', - '4': 'Regulatory Engineer/Certification Engineer', + '1': 'Studio', + '2': 'Homo Engineer', + '4': 'Regulation Engineer/Homo Engineer', '11': 'R&H Manager', '12': 'admin', '13': 'Viewer', '14': 'BrandAdministrator', - '20': 'Interface person', + '20': 'Eng. Interface', '21': 'Person liable', - '30': 'Engineering interface person', + '30': 'Eng. Interface', '31': 'Person liable' }, areaOfResponsibility: {}, From c64aa2a678b4f15eae4436998f46d033ca4b6379 Mon Sep 17 00:00:00 2001 From: gaosong Date: Sun, 26 Nov 2023 14:28:01 +0800 Subject: [PATCH 40/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=AD=E8=8B=B1?= =?UTF-8?q?=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/jero/modules/report/util/WordUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/report/util/WordUtil.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/report/util/WordUtil.java index 95a35cde3..1bf448791 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/report/util/WordUtil.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/report/util/WordUtil.java @@ -1250,7 +1250,7 @@ public class WordUtil { setBlank(text, run, sb, itemText); } if ("Usage".equals(fieldName)) { - String itemText = "Mandatory,Recommend,if fitted"; + String itemText = "Mandatory,Recommend,Mandatory if fitted"; setBlank(text, run, sb, itemText); } } @@ -1270,7 +1270,7 @@ public class WordUtil { text = "Voluntary"; } if (text.equals("installation is compliant")) { - text = "if fitted"; + text = "Mandatory if fitted"; } if (text.equals("Public Notice")) { @@ -1395,7 +1395,7 @@ public class WordUtil { case "Voluntary": blank = "\r\n"; break; - case "if fitted": + case "Mandatory if fitted": blank = ""; break; case "Publicity": From ba3944347263a2979d26136d777e73e072fb8fea Mon Sep 17 00:00:00 2001 From: gaosong Date: Sun, 26 Nov 2023 14:36:31 +0800 Subject: [PATCH 41/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9ota=E8=BD=A6=E5=9E=8B?= =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ota/service/impl/OtaManageApplyEOServiceImpl.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/ota/service/impl/OtaManageApplyEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/ota/service/impl/OtaManageApplyEOServiceImpl.java index 7e84d88dc..4942f81fb 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/ota/service/impl/OtaManageApplyEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/ota/service/impl/OtaManageApplyEOServiceImpl.java @@ -999,8 +999,10 @@ public class OtaManageApplyEOServiceImpl extends ServiceImpl carList = new ArrayList<>(carSet); + Collections.sort(carList); result.put("plannedBpLaunchBatchList", plannedBpLaunchBatchList); - result.put("carSet", carSet); + result.put("carSet", carList); result.put("marketSet", marketSet); } return result; @@ -1036,7 +1038,9 @@ public class OtaManageApplyEOServiceImpl extends ServiceImpl carList = new ArrayList<>(vehicleSet); + Collections.sort(carList); + resList.addAll(carList); return resList; } From 5a49c09ff24bcb72659201180a0ba815abd4ea68 Mon Sep 17 00:00:00 2001 From: gaosong Date: Sun, 26 Nov 2023 14:49:54 +0800 Subject: [PATCH 42/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8B=B1=E6=96=87?= =?UTF-8?q?=E9=A6=96=E5=AD=97=E6=AF=8D=E5=A4=A7=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/common/lang/en-us.js | 44 +++++++++++++++---------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index bfc0b4fd3..56b4c3010 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -1973,7 +1973,7 @@ module.exports = { progresstracking: 'Progress Track', Fileupload: 'File upload', Addresslink: 'Address link', - Problemanagement: 'Problem management', + Problemanagement: 'Problem Management', Correspondingversion: 'Corresponding version', Listcreationtime: 'List creation time', Chinesecharacters: 'The role code cannot enter Chinese characters', @@ -1998,30 +1998,30 @@ module.exports = { power: 'Latent Parameter', producer: 'producer', Nameplatelabel: 'Nameplate label', - Batteryfilingrecord: 'Battery filing record', - Modelinformation: 'Model information', - Batterynationalcode: 'Battery national code', - Recordnformation: 'Record information', - Electriccellproductionenterprises: 'Electric cell production enterprises', - Assemblymanufacturer: 'Assembly manufacturer', + Batteryfilingrecord: 'Battery Filing Record', + Modelinformation: 'Model Information', + Batterynationalcode: 'Battery National Code', + Recordnformation: 'Record Information', + Electriccellproductionenterprises: 'Electric Cell Production Enterprises', + Assemblymanufacturer: 'Assembly Manufacturer', PartNumberCN: 'Part Number (Domestic)', PartNumberEU: 'Part Number (Foreign)', - bitfilecode: '24-bit file code', - Vendorcode: 'Vendor code', + bitfilecode: '24-bit File Code', + Vendorcode: 'Vendor Code', Productclasscode: 'Product Type', - Batterytypecode: 'Battery type code', - Specificationcode: 'Specification code', - Traceinformationcode: 'Trace information code', - Productionyearmonthdateserialnumber: 'Production year month date serial number', - dimension: 'dimension(mm)', - Ratedcapacity: 'Rated capacity(Ah)', - Nominalvoltage: 'Nominal voltage(V)', - Ratedmass: 'Rated mass(kg)', - Numbercontainedmodules: 'Number of contained modules', - Moduleseriesparallelmode: 'Module series parallel mode', - modulspecificationcodeused: 'The module or monomer specification code used', - Coolingmode: 'Cooling mode', - Filingcompletiontime: 'Filing completion time', + Batterytypecode: 'Battery Type Code', + Specificationcode: 'Specification Code', + Traceinformationcode: 'Trace Information Code', + Productionyearmonthdateserialnumber: 'Production Year Month Date Serial Number', + dimension: 'Dimension(mm)', + Ratedcapacity: 'Rated Capacity(Ah)', + Nominalvoltage: 'Nominal Voltage(V)', + Ratedmass: 'Rated Mass(kg)', + Numbercontainedmodules: 'Number of Contained Modules', + Moduleseriesparallelmode: 'Module Series Parallel Mode', + modulspecificationcodeused: 'The Module or Monomer Specification Code Used', + Coolingmode: 'Cooling Mode', + Filingcompletiontime: 'Filing Completion Time', Platformdevelopmentvalvepoint: 'Platform development valve point', Compliancemanagementvalvepoint: 'Compliance management valve point', designTaskValidation: 'Design Task Confirmation', From b7fc51663837940557ce6f18c6d1ff3acbb2736a Mon Sep 17 00:00:00 2001 From: gaosong Date: Tue, 28 Nov 2023 18:41:26 +0800 Subject: [PATCH 43/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../moudles/detilModel.vue | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue b/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue index 995ce517f..24e1f5cfb 100644 --- a/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue +++ b/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue @@ -442,10 +442,15 @@ }, ...mapGetters(['userInfo']), edit(row) { + console.log(row) + // this.getNameList() + this.getFirstLevelDutyTerritory() + this.title = this.$t('view') + this.formInline = JSON.parse(JSON.stringify(row)) this.projectNameList = [] if (row.projectType == 'model') { this.getNameList() - if (this.formInline.projectId != null) { + if (this.formInline.projectId) { this.formInline.projectId = this.formInline.projectId.split(',') } else { this.formInline.projectId = undefined @@ -453,10 +458,6 @@ } else if (row.projectType == 'numberPlatform' || row.projectType == 'carPlatform') { this.getPlatform(row.projectType) } - // this.getNameList() - this.getFirstLevelDutyTerritory() - this.title = this.$t('view') - this.formInline = row if (this.formInline.dutyTerritory != null) { this.formInline.dutyTerritory = this.formInline.dutyTerritory.split(',') } else { @@ -465,17 +466,13 @@ if (this.formInline.problemState == null) { this.formInline.problemState = undefined } - if (this.formInline.projectId != null) { - this.formInline.projectId = this.formInline.projectId.split(',') - } else { - this.formInline.projectId = undefined - } getAction('/project/problemManagementEO/queryById', { id: this.formInline.id }).then((res) => { if (res.success) { this.formInline.fileList = res.result.fileList this.formInline.approvalEvidenceFileList = res.result.approvalEvidenceFileList } }) + this.formInline = {...this.formInline} console.log(this.formInline) this.visible = true this.disabled = true From 67ed7ffa87a39664184041a509fddda4cd1c7a72 Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Tue, 5 Dec 2023 14:47:49 +0800 Subject: [PATCH 44/73] =?UTF-8?q?=E8=BD=A6=E5=9E=8B=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=BA=93=E5=85=B3=E8=81=94=E5=B9=B3=E5=8F=B0=E4=BB=B6=E5=90=8E?= =?UTF-8?q?--=E7=BB=9F=E8=AE=A1=E7=9A=84=E6=95=B0=E6=8D=AE=E4=B8=BA?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E4=BB=B6=E7=9A=84=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...rojectCertificationInventoryEOService.java | 6 +- .../IProjectLawsInventoryEOService.java | 12 +- ...ctCertificationInventoryEOServiceImpl.java | 86 ++++++- .../ProjectLawsInventoryEOServiceImpl.java | 209 +++++++++++++++++- .../impl/ProjectLibraryBaseServiceImpl.java | 97 ++++++-- 5 files changed, 371 insertions(+), 39 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 f205301bb..ed36a3a1a 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 @@ -261,14 +261,16 @@ public interface IProjectCertificationInventoryEOService extends IService> getTaskToConfirmStatistics(List pciEoList); + List> getTaskToConfirmStatistics(List pciEoList, + List projectCertificationInventoryEOList); /** * 获取Pre-Homo统计信息 * @param pciEoList * @return */ - List> getPrehomoStatistice(List pciEoList); + List> getPrehomoStatistice(List pciEoList + ,List projectCertificationInventoryEOList); /** * 获取认证进度统计信息 全部 diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectLawsInventoryEOService.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectLawsInventoryEOService.java index 17828c496..0c6997549 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectLawsInventoryEOService.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectLawsInventoryEOService.java @@ -271,28 +271,32 @@ public interface IProjectLawsInventoryEOService extends IService> getDesignTaskToConfirmStatistics(List projectLawsInventoryEOList); + List> getDesignTaskToConfirmStatistics(List projectLawsInventoryEOList, + List projectLawsInventoryPlatFormList); /** * 验证任务确认 * @param projectLawsInventoryEOList * @return */ - List> getVerifyTaskToConfirmStatistics(List projectLawsInventoryEOList); + List> getVerifyTaskToConfirmStatistics(List projectLawsInventoryEOList, + List projectLawsInventoryPlatFormList); /** * 获取设计符合性统计信息 * @param projectLawsInventoryEOList * @return */ - List> getDesignComplianceStatistice(List projectLawsInventoryEOList); + List> getDesignComplianceStatistice(List projectLawsInventoryEOList, + List projectLawsInventoryPlatFormList); /** * 获取验证符合性统计信息 * @param projectLawsInventoryEOList * @return */ - List> getVerifyComplianceStatistice(List projectLawsInventoryEOList); + List> getVerifyComplianceStatistice(List projectLawsInventoryEOList, + List projectLawsInventoryPlatFormList); List> queryNotComplianList(Map params); 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 d6e667f79..f65235c85 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 @@ -38,7 +38,6 @@ import com.jero.modules.project.entity.ProjectCertificationInventoryDutyEnginner import com.jero.modules.project.entity.ProjectCertificationInventoryEO; import com.jero.modules.project.entity.ProjectCertificationInventoryEOEn; import com.jero.modules.project.entity.ProjectCertificationInventoryLogEO; -import com.jero.modules.project.entity.ProjectLawsInventoryEO; import com.jero.modules.project.entity.ProjectLibraryBase; import com.jero.modules.project.entity.ProjectLibraryRoleRelEO; import com.jero.modules.project.entity.ProjectRelatedPersonnel; @@ -3297,7 +3296,8 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl> getTaskToConfirmStatistics(List pciEoList) { + public List> getTaskToConfirmStatistics(List pciEoList, + List projectCertificationInventoryEOList) { List> result = new ArrayList<>(); int listToBeReleasedCount = 0;//清单待发布 @@ -3305,7 +3305,7 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl { @@ -3347,6 +3347,40 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl { + boolean flag = ( + StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.LIST_TO_BE_CHECKED.getValue()) + ); + return flag; + }).count(); + // 任务待确认 + taskToBeConfirmedCount += (int) projectCertificationInventoryEOList.stream().filter(pciEo -> { + boolean flag = ( + StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue()) + ); + return flag; + }).count(); + // 责任人接受 + acceptedCount += (int) projectCertificationInventoryEOList.stream().filter(pciEo -> { + boolean flag = ( + StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue()) + || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.RESULTS_TO_BE_REVIEWED.getValue()) + || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.REVIEW_AND_PASS.getValue()) + || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.REVIEW_AND_RETURN.getValue()) + ); + return flag; + }).count(); + // 责任人拒绝 + rejectedCount += (int) projectCertificationInventoryEOList.stream().filter(pciEo -> { + boolean flag = ( + StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.REFUSAL_OF_RESPONSIBLE_PERSON.getValue()) + ); + return flag; + }).count(); + } Map listToBeReleasedMap = new HashMap<>(); Map taskToBeInitiatedMap = new HashMap<>(); @@ -3378,7 +3412,8 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl> getPrehomoStatistice(List pciEoList) { + public List> getPrehomoStatistice(List pciEoList, + List projectCertificationInventoryEOList) { List> result = new ArrayList<>(); int taskToBeConfirmedCount = 0;//任务待确认 @@ -3387,6 +3422,7 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl { @@ -3428,6 +3464,48 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl { + boolean flag = ( + StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.LIST_TO_BE_RELEASED.getValue()) + || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.CERTIFICATION_RETURNED.getValue()) + || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.LIST_TO_BE_CHECKED.getValue()) + || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue()) + || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.REFUSAL_OF_RESPONSIBLE_PERSON.getValue()) + ); + return flag; + }).count(); + // 结果待提交 + resultsToBeSubmittedCount += (int) projectCertificationInventoryEOList.stream().filter(pciEo -> { + boolean flag = ( + StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue()) + ); + return flag; + }).count(); + // 结果待审查 + resultsToBeReviewedCount += (int) projectCertificationInventoryEOList.stream().filter(pciEo -> { + boolean flag = ( + StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.RESULTS_TO_BE_REVIEWED.getValue()) + ); + return flag; + }).count(); + // 审查通过 + reviewAndPassCount += (int) projectCertificationInventoryEOList.stream().filter(pciEo -> { + boolean flag = ( + StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.REVIEW_AND_PASS.getValue()) + ); + return flag; + }).count(); + // 审查退回 + reviewAndReturnCount += (int) projectCertificationInventoryEOList.stream().filter(pciEo -> { + boolean flag = ( + StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.REVIEW_AND_RETURN.getValue()) + ); + return flag; + }).count(); + } Map taskToBeConfirmedMap = new HashMap<>(); Map resultsToBeSubmittedMap = new HashMap<>(); Map resultsToBeReviewedMap = new HashMap<>(); diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java index d5d2ca6fe..d2d6d8178 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java @@ -10299,7 +10299,8 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl> getDesignTaskToConfirmStatistics(List projectLawsInventoryEOList) { + public List> getDesignTaskToConfirmStatistics(List projectLawsInventoryEOList, + List projectLawsInventoryPlatFormList) { List> result = new ArrayList<>(); int listToBeReleasedCount = 0;//清单待发布 @@ -10307,9 +10308,11 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl { + listToBeReleasedCount += (int) projectLawsInventoryEOList.stream().filter(pliEo -> { boolean flag = ( StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue()) || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue()) @@ -10318,7 +10321,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl { + taskToBeInitiatedCount += (int) projectLawsInventoryEOList.stream().filter(pliEo -> { boolean flag = ( StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue()) ); @@ -10326,7 +10329,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl { + taskToBeConfirmedCount += (int) projectLawsInventoryEOList.stream().filter(pliEo -> { boolean flag = ( StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue()) ); @@ -10334,7 +10337,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl { + acceptedCount += (int) projectLawsInventoryEOList.stream().filter(pliEo -> { boolean flag = ( StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue()) || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_REVIEWED.getValue()) @@ -10346,7 +10349,45 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl { + rejectedCount += (int) projectLawsInventoryEOList.stream().filter(pliEo -> { + boolean flag = ( + StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue()) + ); + return flag; + }).count(); + } + //平台件数据统计----------------------------------------------- + if(CollectionUtils.isNotEmpty(projectLawsInventoryPlatFormList)){ + // 任务待发起 + taskToBeInitiatedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { + boolean flag = ( + StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue()) + ); + return flag; + }).count(); + + // 任务待确认 + taskToBeConfirmedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { + boolean flag = ( + StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue()) + ); + return flag; + }).count(); + + // 责任人接收 + acceptedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { + boolean flag = ( + StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue()) + || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_REVIEWED.getValue()) + || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.CONFORMITY.getValue()) + || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.INCONFORMITY.getValue()) + || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.TO_TRACK.getValue()) + ); + return flag; + }).count(); + + // 责任人拒绝 + rejectedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { boolean flag = ( StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue()) ); @@ -10389,7 +10430,8 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl> getVerifyTaskToConfirmStatistics(List projectLawsInventoryEOList) { + public List> getVerifyTaskToConfirmStatistics(List projectLawsInventoryEOList, + List projectLawsInventoryPlatFormList) { List> result = new ArrayList<>(); int listToBeReleasedCount = 0;//清单待发布 @@ -10397,6 +10439,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl { @@ -10443,6 +10486,44 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl { + boolean flag = ( + StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue()) + ); + return flag; + }).count(); + + // 任务待确认 + taskToBeConfirmedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { + boolean flag = ( + StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue()) + ); + return flag; + }).count(); + + // 责任人接收 + acceptedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { + boolean flag = ( + StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue()) + || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_REVIEWED.getValue()) + || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.CONFORMITY.getValue()) + || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.INCONFORMITY.getValue()) + || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.TO_TRACK.getValue()) + ); + return flag; + }).count(); + + // 责任人拒绝 + rejectedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { + boolean flag = ( + StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue()) + ); + return flag; + }).count(); + } Map listToBeReleasedMap = new HashMap<>();//清单待发布 Map taskToBeInitiatedMap = new HashMap<>();//任务待发起 @@ -10474,7 +10555,8 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl> getDesignComplianceStatistice(List projectLawsInventoryEOList) { + public List> getDesignComplianceStatistice(List projectLawsInventoryEOList, + List projectLawsInventoryPlatFormList) { List> result = new ArrayList<>(); int taskToBeConfirmedCount = 0;//任务待确认 int resultsToBeSubmittedCount = 0;//结果待提交 @@ -10482,6 +10564,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl { @@ -10534,6 +10617,59 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl { + boolean flag = ( + StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue()) + || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue()) + || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue()) + || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue()) + || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue()) + + ); + return flag; + }).count(); + + // 结果待提交 + resultsToBeSubmittedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { + boolean flag = ( + StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue()) + ); + return flag; + }).count(); + + // 结果待审查 + resultsToBeReviewedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { + boolean flag = ( + StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_REVIEWED.getValue()) + ); + return flag; + }).count(); + + // 符合 + complianceCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { + boolean flag = ( + StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.CONFORMITY.getValue()) + ); + return flag; + }).count(); + // 不符合 + nonComplianceCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { + boolean flag = ( + StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.INCONFORMITY.getValue()) + ); + return flag; + }).count(); + // 待追踪 + toBeTrackedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { + boolean flag = ( + StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.TO_TRACK.getValue()) + ); + return flag; + }).count(); + } Map taskToBeConfirmedMap = new HashMap<>(); Map resultsToBeSubmittedMap = new HashMap<>(); @@ -10570,7 +10706,8 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl> getVerifyComplianceStatistice(List projectLawsInventoryEOList) { + public List> getVerifyComplianceStatistice(List projectLawsInventoryEOList, + List projectLawsInventoryPlatFormList) { List> result = new ArrayList<>(); int taskToBeConfirmedCount = 0;//任务待确认 int resultsToBeSubmittedCount = 0;//结果待提交 @@ -10578,6 +10715,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl { @@ -10630,6 +10768,59 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl { + boolean flag = ( + StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue()) + || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue()) + || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue()) + || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue()) + || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue()) + + ); + return flag; + }).count(); + + // 结果待提交 + resultsToBeSubmittedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { + boolean flag = ( + StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue()) + ); + return flag; + }).count(); + + // 结果待审查 + resultsToBeReviewedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { + boolean flag = ( + StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_REVIEWED.getValue()) + ); + return flag; + }).count(); + + // 符合 + complianceCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { + boolean flag = ( + StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.CONFORMITY.getValue()) + ); + return flag; + }).count(); + // 不符合 + nonComplianceCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { + boolean flag = ( + StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.INCONFORMITY.getValue()) + ); + return flag; + }).count(); + // 待追踪 + toBeTrackedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { + boolean flag = ( + StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.TO_TRACK.getValue()) + ); + return flag; + }).count(); + } Map taskToBeConfirmedMap = new HashMap<>(); Map resultsToBeSubmittedMap = new HashMap<>(); diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java index 553e17fa4..f0516703a 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java @@ -2199,23 +2199,43 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl lawsInventoryEOQueryWrapper = new QueryWrapper<>(); lawsInventoryEOQueryWrapper.lambda().in(ProjectLawsInventoryEO::getProjectLibraryId,Arrays.asList(id.split(","))); List projectLawsInventoryEOList = projectLawsInventoryEOMapper.selectList(lawsInventoryEOQueryWrapper); - if(CollectionUtils.isNotEmpty(projectLawsInventoryEOList)){ - List projectLawsInventoryIdList = projectLawsInventoryEOList.stream().distinct().map(ProjectLawsInventoryEO::getId).collect(Collectors.toList()); - //任务确认统计 -// List> taskToConfirmMapList = this.projectLawsInventoryEOService.getTaskToConfirmStatistics(projectLawsInventoryEOList); -// int taskAffirmStatusCount = 0; -// if(CollectionUtils.isNotEmpty(taskToConfirmMapList)){ -// //taskAffirmStatusCount -// for (Map taskToConfirm : taskToConfirmMapList) { -// taskAffirmStatusCount += (int) taskToConfirm.get("taskAffirmStatusCount"); -// } -// } -// taskToConfirmMap.put("taskToConfirmMapList",taskToConfirmMapList); -// taskToConfirmMap.put("count",taskAffirmStatusCount); -// result.put("taskToConfirmMap",taskToConfirmMap); + //法规符合性管理统计(统计的是法规清单)------------------------------------------------------------------------------------------------------------------------------ + if(CollectionUtils.isNotEmpty(projectLawsInventoryEOList)){ + List projectLawsInventoryIdList = projectLawsInventoryEOList.stream() + .distinct().map(ProjectLawsInventoryEO::getId).collect(Collectors.toList()); + //法规清单关联的所有平台件 + LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); + wrapper.in(LawsInventoryPlatformEO::getLawsInventoryId,projectLawsInventoryIdList); + List lawsInventoryPlatformEOList = lawsInventoryPlatformEOService.list(wrapper); + //区分哪些法规清单关联了平台件,哪些法规清单没有关联平台件 + List yesList = new ArrayList<>(); + List noList = new ArrayList<>(); + List projectLawsInventoryPlatFormList = new ArrayList<>(); + if(ObjectUtils.isNotEmpty(lawsInventoryPlatformEOList)){ + //所关联平台件的法规清单id + List idList = lawsInventoryPlatformEOList.stream() + .map(LawsInventoryPlatformEO::getPlatformLawsInventoryId).collect(Collectors.toList()); + LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); + queryWrapper.in(ProjectLawsInventoryEO::getId,idList); + projectLawsInventoryPlatFormList = projectLawsInventoryEOMapper.selectList(queryWrapper); + for (ProjectLawsInventoryEO projectLawsInventoryEO : projectLawsInventoryEOList) { + List collect = lawsInventoryPlatformEOList.stream() + .filter(e -> e.getLawsInventoryId().equals(projectLawsInventoryEO.getId())).collect(Collectors.toList()); + if(ObjectUtils.isNotEmpty(collect)){ + yesList.add(projectLawsInventoryEO); + }else{ + noList.add(projectLawsInventoryEO); + } + } + } + if(ObjectUtils.isEmpty(noList)){ + noList = projectLawsInventoryEOList; + } //设计任务确认 - List> designTaskToConfirmMapList = this.projectLawsInventoryEOService.getDesignTaskToConfirmStatistics(projectLawsInventoryEOList); + List> designTaskToConfirmMapList = + this.projectLawsInventoryEOService.getDesignTaskToConfirmStatistics(noList,projectLawsInventoryPlatFormList); + int designTaskAffirmStatusCount = 0; if(CollectionUtils.isNotEmpty(designTaskToConfirmMapList)){ //taskAffirmStatusCount @@ -2228,7 +2248,8 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl> verifyTaskToConfirmMapList = this.projectLawsInventoryEOService.getVerifyTaskToConfirmStatistics(projectLawsInventoryEOList); + List> verifyTaskToConfirmMapList + = this.projectLawsInventoryEOService.getVerifyTaskToConfirmStatistics(noList,projectLawsInventoryPlatFormList); int verifyTaskAffirmStatusCount = 0; if(CollectionUtils.isNotEmpty(verifyTaskToConfirmMapList)){ //taskAffirmStatusCount @@ -2241,7 +2262,8 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl> designComplianceMapList = this.projectLawsInventoryEOService.getDesignComplianceStatistice(projectLawsInventoryEOList); + List> designComplianceMapList + = this.projectLawsInventoryEOService.getDesignComplianceStatistice(noList,projectLawsInventoryPlatFormList); int designFlowTaskStatusCount = 0; if(CollectionUtils.isNotEmpty(designComplianceMapList)){ for (Map designCompliance : designComplianceMapList) { @@ -2253,7 +2275,8 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl> verifyComplianceMapList = this.projectLawsInventoryEOService.getVerifyComplianceStatistice(projectLawsInventoryEOList); + List> verifyComplianceMapList + = this.projectLawsInventoryEOService.getVerifyComplianceStatistice(noList,projectLawsInventoryPlatFormList); int verifyFlowTaskStatusCount = 0; if(CollectionUtils.isNotEmpty(verifyComplianceMapList)){ for (Map verifyCompliance : verifyComplianceMapList) { @@ -2274,9 +2297,40 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl projectCertificationInventoryIdList = pciEoList.stream().map(ProjectCertificationInventoryEO::getId).collect(Collectors.toList()); + //认证清单关联的平台件 + LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); + wrapper.in(LawsInventoryPlatformEO::getLawsInventoryId,projectCertificationInventoryIdList); + List lawsInventoryPlatformEOList = lawsInventoryPlatformEOService.list(wrapper); + List projectCertificationInventoryEOList = new ArrayList<>(); + List yesList = new ArrayList<>(); + List noList = new ArrayList<>(); + if(ObjectUtils.isNotEmpty(lawsInventoryPlatformEOList)){ + List idList = lawsInventoryPlatformEOList.stream() + .map(LawsInventoryPlatformEO::getPlatformLawsInventoryId).collect(Collectors.toList()); + LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); + queryWrapper.in(ProjectCertificationInventoryEO::getId,idList); + projectCertificationInventoryEOList = projectCertificationInventoryEOService.list(queryWrapper); + for (ProjectCertificationInventoryEO certificationInventoryEO : pciEoList) { + List collect = lawsInventoryPlatformEOList.stream() + .filter(e -> e.getPlatformLawsInventoryId().equals(certificationInventoryEO.getId())) + .collect(Collectors.toList()); + if(ObjectUtils.isNotEmpty(collect)){ + yesList.add(certificationInventoryEO); + }else{ + noList.add(certificationInventoryEO); + } + } + } + if(ObjectUtils.isEmpty(noList)){ + noList = pciEoList; + } // 认证清单-任务确认统计 - List> rzTaskToConfirmMapList = this.projectCertificationInventoryEOService.getTaskToConfirmStatistics(pciEoList); + List> rzTaskToConfirmMapList = + this.projectCertificationInventoryEOService.getTaskToConfirmStatistics(noList,projectCertificationInventoryEOList); int taskAffirmStatusCount = 0; if(CollectionUtils.isNotEmpty(rzTaskToConfirmMapList)){ for (Map rzTaskToConfirm : rzTaskToConfirmMapList) { @@ -2288,7 +2342,8 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl> prehomoMapList = this.projectCertificationInventoryEOService.getPrehomoStatistice(pciEoList); + List> prehomoMapList = + this.projectCertificationInventoryEOService.getPrehomoStatistice(noList,projectCertificationInventoryEOList); int preHomoCount = 0; if (CollectionUtils.isNotEmpty(prehomoMapList)) { for (Map prehomo : prehomoMapList) { @@ -2299,6 +2354,8 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl> allMapList = this.projectCertificationInventoryEOService.getAllCertificationProgressStatistics(pciEoList); List> carMapList = this.projectCertificationInventoryEOService.getCarCertificationProgressStatistics(pciEoList); From 8c31c979fec1229f31fc17fa233e888b386c384c Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Tue, 5 Dec 2023 16:42:38 +0800 Subject: [PATCH 45/73] =?UTF-8?q?=E7=BB=9F=E8=AE=A1-=E8=B4=A3=E4=BB=BB?= =?UTF-8?q?=E9=A2=86=E5=9F=9F=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/ProjectLibraryBaseServiceImpl.java | 96 ++++++++++++++++++- 1 file changed, 95 insertions(+), 1 deletion(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java index f0516703a..d12460ae3 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java @@ -2316,7 +2316,7 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl collect = lawsInventoryPlatformEOList.stream() - .filter(e -> e.getPlatformLawsInventoryId().equals(certificationInventoryEO.getId())) + .filter(e -> e.getLawsInventoryId().equals(certificationInventoryEO.getId())) .collect(Collectors.toList()); if(ObjectUtils.isNotEmpty(collect)){ yesList.add(certificationInventoryEO); @@ -2522,6 +2522,9 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl projectLawsInventoryEOList = projectLawsInventoryEOMapper.selectList(lawsInventoryEOQueryWrapper); + //如果法规清单关联平台件,需要特殊处理 + projectLawsInventoryEOList = getProjectLawsInventoryEOS(projectLawsInventoryEOList); + List sysDictItems = new ArrayList<>(); // 法规清单所有的责任领域 String pliDutyTerritoryStr = projectLawsInventoryEOList.stream().map(ProjectLawsInventoryEO::getDutyTerritory).collect(Collectors.joining(",")); @@ -2692,6 +2695,10 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl projectCertificationInventoryEOList = this.projectCertificationInventoryEOService.list(pciQueryWrap); + //如果认证清单关联平台件,需要特殊处理 + projectCertificationInventoryEOList = getProjectCertificationInventoryEOS(projectCertificationInventoryEOList); + + String pciDutyTerritoryStr = projectCertificationInventoryEOList.stream().map(ProjectCertificationInventoryEO::getDutyTerritory).collect(Collectors.joining(",")); if (StringUtils.isNotEmpty(pciDutyTerritoryStr)) { List pciDutyTerritoryList = Arrays.asList(pciDutyTerritoryStr.split(",")).stream().distinct().collect(Collectors.toList()); @@ -2765,6 +2772,93 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl getProjectCertificationInventoryEOS(List projectCertificationInventoryEOList) { + List projectCertificationInventoryIdList = projectCertificationInventoryEOList.stream().map(ProjectCertificationInventoryEO::getId).collect(Collectors.toList()); + //认证清单关联的平台件 + LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); + wrapper.in(LawsInventoryPlatformEO::getLawsInventoryId,projectCertificationInventoryIdList); + List lawsInventoryPlatformEOList = lawsInventoryPlatformEOService.list(wrapper); + List projectCertificationInventoryEOListTemp = new ArrayList<>(); + List yesList = new ArrayList<>(); + List noList = new ArrayList<>(); + if(ObjectUtils.isNotEmpty(lawsInventoryPlatformEOList)){ + List idList = lawsInventoryPlatformEOList.stream() + .map(LawsInventoryPlatformEO::getPlatformLawsInventoryId).collect(Collectors.toList()); + LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); + queryWrapper.in(ProjectCertificationInventoryEO::getId,idList); + projectCertificationInventoryEOListTemp = projectCertificationInventoryEOService.list(queryWrapper); + for (ProjectCertificationInventoryEO certificationInventoryEO : projectCertificationInventoryEOList) { + List collect = lawsInventoryPlatformEOList.stream() + .filter(e -> e.getLawsInventoryId().equals(certificationInventoryEO.getId())) + .collect(Collectors.toList()); + if(ObjectUtils.isNotEmpty(collect)){ + yesList.add(certificationInventoryEO); + }else{ + noList.add(certificationInventoryEO); + } + } + } + if(ObjectUtils.isNotEmpty(projectCertificationInventoryEOList) + && ObjectUtils.isNotEmpty(yesList) + && projectCertificationInventoryEOList.size() != yesList.size()){ + //法规清单有数据且部分关联了平台件 + projectCertificationInventoryEOList = noList; + projectCertificationInventoryEOList.addAll(projectCertificationInventoryEOListTemp); + }else if(ObjectUtils.isNotEmpty(projectCertificationInventoryEOList) + && ObjectUtils.isNotEmpty(yesList) + && projectCertificationInventoryEOList.size() == yesList.size()){ + //认证清单有数据且全部关联了平台件 + projectCertificationInventoryEOList = projectCertificationInventoryEOListTemp; + } + return projectCertificationInventoryEOList; + } + + @NotNull + private List getProjectLawsInventoryEOS(List projectLawsInventoryEOList) { + List projectLawsInventoryIdList = projectLawsInventoryEOList.stream() + .distinct().map(ProjectLawsInventoryEO::getId).collect(Collectors.toList()); + //法规清单关联的所有平台件 + LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); + wrapper.in(LawsInventoryPlatformEO::getLawsInventoryId,projectLawsInventoryIdList); + List lawsInventoryPlatformEOList = lawsInventoryPlatformEOService.list(wrapper); + //区分哪些法规清单关联了平台件,哪些法规清单没有关联平台件 + List yesList = new ArrayList<>(); + List noList = new ArrayList<>(); + List projectLawsInventoryPlatFormList = new ArrayList<>(); + if(ObjectUtils.isNotEmpty(lawsInventoryPlatformEOList)){ + //所关联平台件的法规清单id + List idList = lawsInventoryPlatformEOList.stream() + .map(LawsInventoryPlatformEO::getPlatformLawsInventoryId).collect(Collectors.toList()); + LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); + queryWrapper.in(ProjectLawsInventoryEO::getId,idList); + projectLawsInventoryPlatFormList = projectLawsInventoryEOMapper.selectList(queryWrapper); + for (ProjectLawsInventoryEO projectLawsInventoryEO : projectLawsInventoryEOList) { + List collect = lawsInventoryPlatformEOList.stream() + .filter(e -> e.getLawsInventoryId().equals(projectLawsInventoryEO.getId())).collect(Collectors.toList()); + if(ObjectUtils.isNotEmpty(collect)){ + yesList.add(projectLawsInventoryEO); + }else{ + noList.add(projectLawsInventoryEO); + } + } + } + if(ObjectUtils.isNotEmpty(projectLawsInventoryEOList) + && ObjectUtils.isNotEmpty(yesList) + && yesList.size() != projectLawsInventoryEOList.size() + ){ + //法规清单有数据且部分关联平台件数据 + projectLawsInventoryEOList = noList; + projectLawsInventoryEOList.addAll(projectLawsInventoryPlatFormList); + }else if(ObjectUtils.isNotEmpty(projectLawsInventoryEOList) + && ObjectUtils.isNotEmpty(yesList) + && yesList.size() == projectLawsInventoryEOList.size()){ + //法规清单有数据且全部关联了平台件 + projectLawsInventoryEOList = projectLawsInventoryPlatFormList; + + } + return projectLawsInventoryEOList; + } + /** * 项目库详情统计-根据责任领域分组统计数据-表头排序 * @param dataList From 66243f5a540f99d9376207d27f66df6949cfb4cb Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Tue, 5 Dec 2023 17:45:15 +0800 Subject: [PATCH 46/73] =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/ProjectLibraryBaseServiceImpl.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java index d12460ae3..4016b3285 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java @@ -3526,6 +3526,11 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl pliQueryWrap = new QueryWrapper<>(); pliQueryWrap.lambda().eq(ProjectLawsInventoryEO::getProjectLibraryId,projectLibraryId); List pliEOList = this.projectLawsInventoryEOMapper.selectList(pliQueryWrap); + + //法规清单绑定平台件,需要特殊处理 + pliEOList = getProjectLawsInventoryEOS(pliEOList); + + List sysDictItems = new ArrayList<>(); String pliDutyTerritoryStr = pliEOList.stream().map(ProjectLawsInventoryEO::getDutyTerritory).collect(Collectors.joining(",")); if (StringUtils.isNotEmpty(pliDutyTerritoryStr)) { @@ -3772,6 +3777,11 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl sysDictItems = new ArrayList<>(); if (StringUtils.isNotEmpty(pciDutyTerritoryStr)) { From 817f0e57305eb2bd19440afadbcdabc0cc23e3bd Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Tue, 5 Dec 2023 18:14:02 +0800 Subject: [PATCH 47/73] =?UTF-8?q?=E8=BD=A6=E5=9E=8B=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=BA=93=E7=BB=9F=E8=AE=A1-=E5=85=B3=E8=81=94=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...rojectCertificationInventoryEOService.java | 6 +- .../IProjectLawsInventoryEOService.java | 12 +- ...ctCertificationInventoryEOServiceImpl.java | 82 +------ .../ProjectLawsInventoryEOServiceImpl.java | 206 +----------------- .../impl/ProjectLibraryBaseServiceImpl.java | 74 +------ 5 files changed, 27 insertions(+), 353 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 ed36a3a1a..f205301bb 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 @@ -261,16 +261,14 @@ public interface IProjectCertificationInventoryEOService extends IService> getTaskToConfirmStatistics(List pciEoList, - List projectCertificationInventoryEOList); + List> getTaskToConfirmStatistics(List pciEoList); /** * 获取Pre-Homo统计信息 * @param pciEoList * @return */ - List> getPrehomoStatistice(List pciEoList - ,List projectCertificationInventoryEOList); + List> getPrehomoStatistice(List pciEoList); /** * 获取认证进度统计信息 全部 diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectLawsInventoryEOService.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectLawsInventoryEOService.java index 0c6997549..17828c496 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectLawsInventoryEOService.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/IProjectLawsInventoryEOService.java @@ -271,32 +271,28 @@ public interface IProjectLawsInventoryEOService extends IService> getDesignTaskToConfirmStatistics(List projectLawsInventoryEOList, - List projectLawsInventoryPlatFormList); + List> getDesignTaskToConfirmStatistics(List projectLawsInventoryEOList); /** * 验证任务确认 * @param projectLawsInventoryEOList * @return */ - List> getVerifyTaskToConfirmStatistics(List projectLawsInventoryEOList, - List projectLawsInventoryPlatFormList); + List> getVerifyTaskToConfirmStatistics(List projectLawsInventoryEOList); /** * 获取设计符合性统计信息 * @param projectLawsInventoryEOList * @return */ - List> getDesignComplianceStatistice(List projectLawsInventoryEOList, - List projectLawsInventoryPlatFormList); + List> getDesignComplianceStatistice(List projectLawsInventoryEOList); /** * 获取验证符合性统计信息 * @param projectLawsInventoryEOList * @return */ - List> getVerifyComplianceStatistice(List projectLawsInventoryEOList, - List projectLawsInventoryPlatFormList); + List> getVerifyComplianceStatistice(List projectLawsInventoryEOList); List> queryNotComplianList(Map params); 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 f65235c85..f87f528f6 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 @@ -3296,8 +3296,7 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl> getTaskToConfirmStatistics(List pciEoList, - List projectCertificationInventoryEOList) { + public List> getTaskToConfirmStatistics(List pciEoList) { List> result = new ArrayList<>(); int listToBeReleasedCount = 0;//清单待发布 @@ -3347,40 +3346,6 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl { - boolean flag = ( - StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.LIST_TO_BE_CHECKED.getValue()) - ); - return flag; - }).count(); - // 任务待确认 - taskToBeConfirmedCount += (int) projectCertificationInventoryEOList.stream().filter(pciEo -> { - boolean flag = ( - StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue()) - ); - return flag; - }).count(); - // 责任人接受 - acceptedCount += (int) projectCertificationInventoryEOList.stream().filter(pciEo -> { - boolean flag = ( - StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue()) - || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.RESULTS_TO_BE_REVIEWED.getValue()) - || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.REVIEW_AND_PASS.getValue()) - || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.REVIEW_AND_RETURN.getValue()) - ); - return flag; - }).count(); - // 责任人拒绝 - rejectedCount += (int) projectCertificationInventoryEOList.stream().filter(pciEo -> { - boolean flag = ( - StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.REFUSAL_OF_RESPONSIBLE_PERSON.getValue()) - ); - return flag; - }).count(); - } Map listToBeReleasedMap = new HashMap<>(); Map taskToBeInitiatedMap = new HashMap<>(); @@ -3412,8 +3377,7 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl> getPrehomoStatistice(List pciEoList, - List projectCertificationInventoryEOList) { + public List> getPrehomoStatistice(List pciEoList) { List> result = new ArrayList<>(); int taskToBeConfirmedCount = 0;//任务待确认 @@ -3464,48 +3428,6 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl { - boolean flag = ( - StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.LIST_TO_BE_RELEASED.getValue()) - || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.CERTIFICATION_RETURNED.getValue()) - || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.LIST_TO_BE_CHECKED.getValue()) - || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue()) - || StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.REFUSAL_OF_RESPONSIBLE_PERSON.getValue()) - ); - return flag; - }).count(); - // 结果待提交 - resultsToBeSubmittedCount += (int) projectCertificationInventoryEOList.stream().filter(pciEo -> { - boolean flag = ( - StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue()) - ); - return flag; - }).count(); - // 结果待审查 - resultsToBeReviewedCount += (int) projectCertificationInventoryEOList.stream().filter(pciEo -> { - boolean flag = ( - StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.RESULTS_TO_BE_REVIEWED.getValue()) - ); - return flag; - }).count(); - // 审查通过 - reviewAndPassCount += (int) projectCertificationInventoryEOList.stream().filter(pciEo -> { - boolean flag = ( - StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.REVIEW_AND_PASS.getValue()) - ); - return flag; - }).count(); - // 审查退回 - reviewAndReturnCount += (int) projectCertificationInventoryEOList.stream().filter(pciEo -> { - boolean flag = ( - StringUtils.equals(pciEo.getFlowStatus(),CertificationInventoryFlowStatusEnum.REVIEW_AND_RETURN.getValue()) - ); - return flag; - }).count(); - } Map taskToBeConfirmedMap = new HashMap<>(); Map resultsToBeSubmittedMap = new HashMap<>(); Map resultsToBeReviewedMap = new HashMap<>(); diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java index d2d6d8178..7c4f1c26b 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java @@ -10299,8 +10299,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl> getDesignTaskToConfirmStatistics(List projectLawsInventoryEOList, - List projectLawsInventoryPlatFormList) { + public List> getDesignTaskToConfirmStatistics(List projectLawsInventoryEOList) { List> result = new ArrayList<>(); int listToBeReleasedCount = 0;//清单待发布 @@ -10308,11 +10307,9 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl { + listToBeReleasedCount = (int) projectLawsInventoryEOList.stream().filter(pliEo -> { boolean flag = ( StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue()) || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue()) @@ -10321,7 +10318,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl { + taskToBeInitiatedCount = (int) projectLawsInventoryEOList.stream().filter(pliEo -> { boolean flag = ( StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue()) ); @@ -10329,7 +10326,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl { + taskToBeConfirmedCount = (int) projectLawsInventoryEOList.stream().filter(pliEo -> { boolean flag = ( StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue()) ); @@ -10337,7 +10334,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl { + acceptedCount = (int) projectLawsInventoryEOList.stream().filter(pliEo -> { boolean flag = ( StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue()) || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_REVIEWED.getValue()) @@ -10349,45 +10346,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl { - boolean flag = ( - StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue()) - ); - return flag; - }).count(); - } - //平台件数据统计----------------------------------------------- - if(CollectionUtils.isNotEmpty(projectLawsInventoryPlatFormList)){ - // 任务待发起 - taskToBeInitiatedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { - boolean flag = ( - StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue()) - ); - return flag; - }).count(); - - // 任务待确认 - taskToBeConfirmedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { - boolean flag = ( - StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue()) - ); - return flag; - }).count(); - - // 责任人接收 - acceptedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { - boolean flag = ( - StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue()) - || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_REVIEWED.getValue()) - || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.CONFORMITY.getValue()) - || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.INCONFORMITY.getValue()) - || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.TO_TRACK.getValue()) - ); - return flag; - }).count(); - - // 责任人拒绝 - rejectedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { + rejectedCount = (int) projectLawsInventoryEOList.stream().filter(pliEo -> { boolean flag = ( StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue()) ); @@ -10430,8 +10389,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl> getVerifyTaskToConfirmStatistics(List projectLawsInventoryEOList, - List projectLawsInventoryPlatFormList) { + public List> getVerifyTaskToConfirmStatistics(List projectLawsInventoryEOList) { List> result = new ArrayList<>(); int listToBeReleasedCount = 0;//清单待发布 @@ -10486,44 +10444,6 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl { - boolean flag = ( - StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue()) - ); - return flag; - }).count(); - - // 任务待确认 - taskToBeConfirmedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { - boolean flag = ( - StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue()) - ); - return flag; - }).count(); - - // 责任人接收 - acceptedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { - boolean flag = ( - StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue()) - || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_REVIEWED.getValue()) - || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.CONFORMITY.getValue()) - || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.INCONFORMITY.getValue()) - || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.TO_TRACK.getValue()) - ); - return flag; - }).count(); - - // 责任人拒绝 - rejectedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { - boolean flag = ( - StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue()) - ); - return flag; - }).count(); - } Map listToBeReleasedMap = new HashMap<>();//清单待发布 Map taskToBeInitiatedMap = new HashMap<>();//任务待发起 @@ -10555,8 +10475,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl> getDesignComplianceStatistice(List projectLawsInventoryEOList, - List projectLawsInventoryPlatFormList) { + public List> getDesignComplianceStatistice(List projectLawsInventoryEOList) { List> result = new ArrayList<>(); int taskToBeConfirmedCount = 0;//任务待确认 int resultsToBeSubmittedCount = 0;//结果待提交 @@ -10617,59 +10536,6 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl { - boolean flag = ( - StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue()) - || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue()) - || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue()) - || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue()) - || StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue()) - - ); - return flag; - }).count(); - - // 结果待提交 - resultsToBeSubmittedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { - boolean flag = ( - StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue()) - ); - return flag; - }).count(); - - // 结果待审查 - resultsToBeReviewedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { - boolean flag = ( - StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_REVIEWED.getValue()) - ); - return flag; - }).count(); - - // 符合 - complianceCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { - boolean flag = ( - StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.CONFORMITY.getValue()) - ); - return flag; - }).count(); - // 不符合 - nonComplianceCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { - boolean flag = ( - StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.INCONFORMITY.getValue()) - ); - return flag; - }).count(); - // 待追踪 - toBeTrackedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { - boolean flag = ( - StringUtils.equals(pliEo.getDesignFlowStatus(),ComplianceFlowStatusEnum.TO_TRACK.getValue()) - ); - return flag; - }).count(); - } Map taskToBeConfirmedMap = new HashMap<>(); Map resultsToBeSubmittedMap = new HashMap<>(); @@ -10706,8 +10572,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl> getVerifyComplianceStatistice(List projectLawsInventoryEOList, - List projectLawsInventoryPlatFormList) { + public List> getVerifyComplianceStatistice(List projectLawsInventoryEOList) { List> result = new ArrayList<>(); int taskToBeConfirmedCount = 0;//任务待确认 int resultsToBeSubmittedCount = 0;//结果待提交 @@ -10768,59 +10633,6 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl { - boolean flag = ( - StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue()) - || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue()) - || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue()) - || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.TASK_TO_BE_CONFIRMED.getValue()) - || StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.DUTY_PERSON_REJECTED.getValue()) - - ); - return flag; - }).count(); - - // 结果待提交 - resultsToBeSubmittedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { - boolean flag = ( - StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue()) - ); - return flag; - }).count(); - - // 结果待审查 - resultsToBeReviewedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { - boolean flag = ( - StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.RESULTS_TO_BE_REVIEWED.getValue()) - ); - return flag; - }).count(); - - // 符合 - complianceCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { - boolean flag = ( - StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.CONFORMITY.getValue()) - ); - return flag; - }).count(); - // 不符合 - nonComplianceCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { - boolean flag = ( - StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.INCONFORMITY.getValue()) - ); - return flag; - }).count(); - // 待追踪 - toBeTrackedCount += (int) projectLawsInventoryPlatFormList.stream().filter(pliEo -> { - boolean flag = ( - StringUtils.equals(pliEo.getVerifyFlowStatus(),ComplianceFlowStatusEnum.TO_TRACK.getValue()) - ); - return flag; - }).count(); - } Map taskToBeConfirmedMap = new HashMap<>(); Map resultsToBeSubmittedMap = new HashMap<>(); diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java index 4016b3285..a94a2e42a 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java @@ -2202,39 +2202,11 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl projectLawsInventoryIdList = projectLawsInventoryEOList.stream() - .distinct().map(ProjectLawsInventoryEO::getId).collect(Collectors.toList()); - //法规清单关联的所有平台件 - LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); - wrapper.in(LawsInventoryPlatformEO::getLawsInventoryId,projectLawsInventoryIdList); - List lawsInventoryPlatformEOList = lawsInventoryPlatformEOService.list(wrapper); - //区分哪些法规清单关联了平台件,哪些法规清单没有关联平台件 - List yesList = new ArrayList<>(); - List noList = new ArrayList<>(); - List projectLawsInventoryPlatFormList = new ArrayList<>(); - if(ObjectUtils.isNotEmpty(lawsInventoryPlatformEOList)){ - //所关联平台件的法规清单id - List idList = lawsInventoryPlatformEOList.stream() - .map(LawsInventoryPlatformEO::getPlatformLawsInventoryId).collect(Collectors.toList()); - LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.in(ProjectLawsInventoryEO::getId,idList); - projectLawsInventoryPlatFormList = projectLawsInventoryEOMapper.selectList(queryWrapper); - for (ProjectLawsInventoryEO projectLawsInventoryEO : projectLawsInventoryEOList) { - List collect = lawsInventoryPlatformEOList.stream() - .filter(e -> e.getLawsInventoryId().equals(projectLawsInventoryEO.getId())).collect(Collectors.toList()); - if(ObjectUtils.isNotEmpty(collect)){ - yesList.add(projectLawsInventoryEO); - }else{ - noList.add(projectLawsInventoryEO); - } - } - } - if(ObjectUtils.isEmpty(noList)){ - noList = projectLawsInventoryEOList; - } + //法规清单绑定平台件,需要特殊处理 + projectLawsInventoryEOList = getProjectLawsInventoryEOS(projectLawsInventoryEOList); //设计任务确认 List> designTaskToConfirmMapList = - this.projectLawsInventoryEOService.getDesignTaskToConfirmStatistics(noList,projectLawsInventoryPlatFormList); + this.projectLawsInventoryEOService.getDesignTaskToConfirmStatistics(projectLawsInventoryEOList); int designTaskAffirmStatusCount = 0; if(CollectionUtils.isNotEmpty(designTaskToConfirmMapList)){ @@ -2249,7 +2221,7 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl> verifyTaskToConfirmMapList - = this.projectLawsInventoryEOService.getVerifyTaskToConfirmStatistics(noList,projectLawsInventoryPlatFormList); + = this.projectLawsInventoryEOService.getVerifyTaskToConfirmStatistics(projectLawsInventoryEOList); int verifyTaskAffirmStatusCount = 0; if(CollectionUtils.isNotEmpty(verifyTaskToConfirmMapList)){ //taskAffirmStatusCount @@ -2263,7 +2235,7 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl> designComplianceMapList - = this.projectLawsInventoryEOService.getDesignComplianceStatistice(noList,projectLawsInventoryPlatFormList); + = this.projectLawsInventoryEOService.getDesignComplianceStatistice(projectLawsInventoryEOList); int designFlowTaskStatusCount = 0; if(CollectionUtils.isNotEmpty(designComplianceMapList)){ for (Map designCompliance : designComplianceMapList) { @@ -2276,7 +2248,7 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl> verifyComplianceMapList - = this.projectLawsInventoryEOService.getVerifyComplianceStatistice(noList,projectLawsInventoryPlatFormList); + = this.projectLawsInventoryEOService.getVerifyComplianceStatistice(projectLawsInventoryEOList); int verifyFlowTaskStatusCount = 0; if(CollectionUtils.isNotEmpty(verifyComplianceMapList)){ for (Map verifyCompliance : verifyComplianceMapList) { @@ -2300,37 +2272,11 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl projectCertificationInventoryIdList = pciEoList.stream().map(ProjectCertificationInventoryEO::getId).collect(Collectors.toList()); - //认证清单关联的平台件 - LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); - wrapper.in(LawsInventoryPlatformEO::getLawsInventoryId,projectCertificationInventoryIdList); - List lawsInventoryPlatformEOList = lawsInventoryPlatformEOService.list(wrapper); - List projectCertificationInventoryEOList = new ArrayList<>(); - List yesList = new ArrayList<>(); - List noList = new ArrayList<>(); - if(ObjectUtils.isNotEmpty(lawsInventoryPlatformEOList)){ - List idList = lawsInventoryPlatformEOList.stream() - .map(LawsInventoryPlatformEO::getPlatformLawsInventoryId).collect(Collectors.toList()); - LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); - queryWrapper.in(ProjectCertificationInventoryEO::getId,idList); - projectCertificationInventoryEOList = projectCertificationInventoryEOService.list(queryWrapper); - for (ProjectCertificationInventoryEO certificationInventoryEO : pciEoList) { - List collect = lawsInventoryPlatformEOList.stream() - .filter(e -> e.getLawsInventoryId().equals(certificationInventoryEO.getId())) - .collect(Collectors.toList()); - if(ObjectUtils.isNotEmpty(collect)){ - yesList.add(certificationInventoryEO); - }else{ - noList.add(certificationInventoryEO); - } - } - } - if(ObjectUtils.isEmpty(noList)){ - noList = pciEoList; - } + //认证清单绑定平台件,需要特殊处理 + pciEoList = getProjectCertificationInventoryEOS(pciEoList); // 认证清单-任务确认统计 List> rzTaskToConfirmMapList = - this.projectCertificationInventoryEOService.getTaskToConfirmStatistics(noList,projectCertificationInventoryEOList); + this.projectCertificationInventoryEOService.getTaskToConfirmStatistics(pciEoList); int taskAffirmStatusCount = 0; if(CollectionUtils.isNotEmpty(rzTaskToConfirmMapList)){ for (Map rzTaskToConfirm : rzTaskToConfirmMapList) { @@ -2343,7 +2289,7 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl> prehomoMapList = - this.projectCertificationInventoryEOService.getPrehomoStatistice(noList,projectCertificationInventoryEOList); + this.projectCertificationInventoryEOService.getPrehomoStatistice(pciEoList); int preHomoCount = 0; if (CollectionUtils.isNotEmpty(prehomoMapList)) { for (Map prehomo : prehomoMapList) { From 7e64cb6af987257e93fe4f23e161df828e63f417 Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Wed, 6 Dec 2023 14:46:51 +0800 Subject: [PATCH 48/73] =?UTF-8?q?=E6=B3=95=E8=A7=84=E6=B8=85=E5=8D=95?= =?UTF-8?q?=E5=85=B3=E8=81=94=E5=B9=B3=E5=8F=B0=E4=BB=B6--=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E5=8F=96=E8=BF=9B=E5=BA=A6=E6=9C=80=E6=85=A2=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project/enums/FlowStateDesignEnum.java | 64 +++++++++++++++++++ .../impl/ProjectLibraryBaseServiceImpl.java | 57 ++++++++++++----- 2 files changed, 104 insertions(+), 17 deletions(-) create mode 100644 jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/enums/FlowStateDesignEnum.java diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/enums/FlowStateDesignEnum.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/enums/FlowStateDesignEnum.java new file mode 100644 index 000000000..7db45a64c --- /dev/null +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/enums/FlowStateDesignEnum.java @@ -0,0 +1,64 @@ +package com.jero.modules.project.enums; + +import java.util.LinkedList; +import java.util.List; + +/** + * 设计符合性确认流程状态顺序枚举类 + */ +public enum FlowStateDesignEnum { + LIST_TO_BE_CHECKED("任务待发起","Task to be initiated","List to be checked"), + TASK_TO_BE_CONFIRMED("任务待确认","Task to be confirmed","Task to be confirmed"), + REFUSAL_OF_RESPONSIBLE_PERSON("责任人拒绝","Rejected by the responsible person","Duty Person Rejected"), + RESULTS_TO_BE_SUBMITTED("结果待提交","Results to be submitted","Results to be submitted"), + RESULTS_TO_BE_REVIEWED("结果待审查","Results to be reviewed","Results to be reviewed"), + TO_TRACK("待追踪","To be tracked","To be tracked"), + CONFORMITY("符合","Compliance","Compliance"), + INCONFORMITY("不符合","Non-Compliance","Non-Compliance"), + UNINVOLVED("不涉及","NA","NA"), + + ; + + String nameCn; + String nameEn; + String value; + + private FlowStateDesignEnum(String nameCn, String nameEn, String value) { + this.nameCn = nameCn; + this.nameEn = nameEn; + this.value = value; + } + + public String getNameCn() { + return nameCn; + } + + public void setNameCn(String nameCn) { + this.nameCn = nameCn; + } + + public String getNameEn() { + return nameEn; + } + + public void setNameEn(String nameEn) { + this.nameEn = nameEn; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public static List getValueInfo() { + List result = new LinkedList<>(); + FlowStateDesignEnum[] values = values(); + for (FlowStateDesignEnum flowStateEnum : values) { + result.add(flowStateEnum.getValue()); + } + return result; + } +} diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java index a94a2e42a..b9376ae51 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java @@ -38,6 +38,7 @@ import com.jero.modules.project.enums.CertificationInventoryFlowStatusEnum; import com.jero.modules.project.enums.CertificationProgressEnum; import com.jero.modules.project.enums.ComplianceFlowStatusEnum; import com.jero.modules.project.enums.DesignComplianceStatusEnum; +import com.jero.modules.project.enums.FlowStateDesignEnum; import com.jero.modules.project.enums.FlowStateEnum; import com.jero.modules.project.enums.HSStatisticalNodesEnum; import com.jero.modules.project.enums.OperatorTypeEnum; @@ -2778,30 +2779,52 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl queryWrapper = new LambdaQueryWrapper<>(); queryWrapper.in(ProjectLawsInventoryEO::getId,idList); projectLawsInventoryPlatFormList = projectLawsInventoryEOMapper.selectList(queryWrapper); + List valueInfo = FlowStateDesignEnum.getValueInfo(); for (ProjectLawsInventoryEO projectLawsInventoryEO : projectLawsInventoryEOList) { + //每条法规关联的平台件 List collect = lawsInventoryPlatformEOList.stream() .filter(e -> e.getLawsInventoryId().equals(projectLawsInventoryEO.getId())).collect(Collectors.toList()); if(ObjectUtils.isNotEmpty(collect)){ - yesList.add(projectLawsInventoryEO); - }else{ - noList.add(projectLawsInventoryEO); + List platformLawsInventoryIdList = collect.stream().map(LawsInventoryPlatformEO::getPlatformLawsInventoryId).collect(Collectors.toList()); + //关联的平台件数据 + List platformList = projectLawsInventoryPlatFormList.stream() + .filter(e -> platformLawsInventoryIdList.contains(e.getId())).collect(Collectors.toList()); + for (ProjectLawsInventoryEO lawsInventoryEO : platformList) { + for (String value : valueInfo) { + if(value.equals(lawsInventoryEO.getDesignFlowStatus())){ + projectLawsInventoryEO.setDesignFlowStatus(value); + break; + } + } + for (String value : valueInfo) { + if(value.equals(lawsInventoryEO.getVerifyFlowStatus())){ + projectLawsInventoryEO.setVerifyFlowStatus(value); + break; + } + } + } } + +// if(ObjectUtils.isNotEmpty(collect)){ +// yesList.add(projectLawsInventoryEO); +// }else{ +// noList.add(projectLawsInventoryEO); +// } } } - if(ObjectUtils.isNotEmpty(projectLawsInventoryEOList) - && ObjectUtils.isNotEmpty(yesList) - && yesList.size() != projectLawsInventoryEOList.size() - ){ - //法规清单有数据且部分关联平台件数据 - projectLawsInventoryEOList = noList; - projectLawsInventoryEOList.addAll(projectLawsInventoryPlatFormList); - }else if(ObjectUtils.isNotEmpty(projectLawsInventoryEOList) - && ObjectUtils.isNotEmpty(yesList) - && yesList.size() == projectLawsInventoryEOList.size()){ - //法规清单有数据且全部关联了平台件 - projectLawsInventoryEOList = projectLawsInventoryPlatFormList; - - } +// if(ObjectUtils.isNotEmpty(projectLawsInventoryEOList) +// && ObjectUtils.isNotEmpty(yesList) +// && yesList.size() != projectLawsInventoryEOList.size() +// ){ +// //法规清单有数据且部分关联平台件数据 +// projectLawsInventoryEOList = noList; +// projectLawsInventoryEOList.addAll(projectLawsInventoryPlatFormList); +// }else if(ObjectUtils.isNotEmpty(projectLawsInventoryEOList) +// && ObjectUtils.isNotEmpty(yesList) +// && yesList.size() == projectLawsInventoryEOList.size()){ +// //法规清单有数据且全部关联了平台件 +// projectLawsInventoryEOList = projectLawsInventoryPlatFormList; +// } return projectLawsInventoryEOList; } From a4c0e00a7a4527b7f4f9ed38766fc0b38aa75ee0 Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Wed, 6 Dec 2023 15:32:54 +0800 Subject: [PATCH 49/73] =?UTF-8?q?=E6=B3=95=E8=A7=84=E6=B8=85=E5=8D=95?= =?UTF-8?q?=E5=85=B3=E8=81=94=E6=8E=92=E5=B9=B3=E5=8F=B0=E4=BB=B6=E5=90=8E?= =?UTF-8?q?-=E5=88=97=E8=A1=A8=E6=B5=81=E7=A8=8B=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=B1=95=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/ProjectLawsInventoryEOServiceImpl.java | 4 ++-- .../project/service/impl/ProjectLibraryBaseServiceImpl.java | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java index 7c4f1c26b..7cea3f0c8 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java @@ -76,7 +76,7 @@ import com.jero.modules.project.enums.DataEnum; import com.jero.modules.project.enums.DataSourceEnum; import com.jero.modules.project.enums.DesignComplianceStatusEnum; import com.jero.modules.project.enums.FlowFlagEnum; -import com.jero.modules.project.enums.FlowStateEnum; +import com.jero.modules.project.enums.FlowStateDesignEnum; import com.jero.modules.project.enums.InventoryAffirmNodeEnum; import com.jero.modules.project.enums.InventoryAffirmStatusEnum; import com.jero.modules.project.enums.JumpLinkEnum; @@ -12314,7 +12314,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl result) { - List valueList = FlowStateEnum.getValueInfo(); + List valueList = FlowStateDesignEnum.getValueInfo();//修改为按高嵩提供的流程顺序 List lawsInventoryPlatformEOList = new ArrayList<>(); List projectLawsInventoryEOS = new ArrayList<>(); diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java index b9376ae51..24e00bfe9 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java @@ -2720,6 +2720,7 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl getProjectCertificationInventoryEOS(List projectCertificationInventoryEOList) { + //认证清单关联平台件(实际是一个认证清单只关联一个平台件) List projectCertificationInventoryIdList = projectCertificationInventoryEOList.stream().map(ProjectCertificationInventoryEO::getId).collect(Collectors.toList()); //认证清单关联的平台件 LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); From 70c78b04f03c33a31a9ceb8d6a02ed3a158b763e Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Wed, 6 Dec 2023 16:12:41 +0800 Subject: [PATCH 50/73] =?UTF-8?q?=E8=AE=A4=E8=AF=81=E6=B8=85=E5=8D=95?= =?UTF-8?q?=E5=85=B3=E8=81=94=E6=8C=89=E5=B9=B3=E5=8F=B0=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ectCertificationInventoryEOController.java | 12 ++++ .../ProjectCertificationInventoryEO.java | 3 + ...rojectCertificationInventoryEOService.java | 2 + ...ctCertificationInventoryEOServiceImpl.java | 69 +++++++++++++++++++ 4 files changed, 86 insertions(+) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectCertificationInventoryEOController.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectCertificationInventoryEOController.java index b630cae1a..c1f931bd8 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectCertificationInventoryEOController.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectCertificationInventoryEOController.java @@ -386,4 +386,16 @@ public class ProjectCertificationInventoryEOController extends JeroController matchRelevantPeople(@RequestBody Map params){ return this.projectCertificationInventoryEOService.matchRelevantPeople(params); } + + @AutoLog(value = "认证清单关联按平台件") + @ApiOperation(value="认证清单关联按平台件", notes="认证清单关联按平台件") + @GetMapping(value = "/connectPlatform") + public Result connectPlatform(String id,String cut) { + ProjectCertificationInventoryEO projectCertificationInventoryEO = projectCertificationInventoryEOService.connectPlatform(id,cut); + if(projectCertificationInventoryEO==null) { + return Result.error("未找到对应数据"); + } + return Result.OK(projectCertificationInventoryEO); + } + } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/entity/ProjectCertificationInventoryEO.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/entity/ProjectCertificationInventoryEO.java index 816d2d002..cca2bfad4 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/entity/ProjectCertificationInventoryEO.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/entity/ProjectCertificationInventoryEO.java @@ -268,4 +268,7 @@ public class ProjectCertificationInventoryEO implements Serializable { @ApiModelProperty(value = "关联平台件数据") @TableField(exist = false) private List projectCertificationInventoryEOS; + + @TableField(exist = false) + private String projectName; } 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 f205301bb..ac71eb7d0 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 @@ -345,4 +345,6 @@ public interface IProjectCertificationInventoryEOService extends IService params); + + ProjectCertificationInventoryEO connectPlatform(String id,String cut); } 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 f87f528f6..c8efaa9ce 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 @@ -208,6 +208,8 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl wrapper = new LambdaQueryWrapper<>(); + wrapper.in(LawsInventoryPlatformEO::getLawsInventoryId,id); + List lawsInventoryPlatformEOList = lawsInventoryPlatformEOService.list(wrapper); + if(ObjectUtils.isEmpty(lawsInventoryPlatformEOList)){ + return new ProjectCertificationInventoryEO(); + } + ProjectCertificationInventoryEO certificationInventoryEO = projectCertificationInventoryEOService.queryById(lawsInventoryPlatformEOList.get(0).getLawsInventoryId()); + + //交付物模板 + String deliverableTemplate = certificationInventoryEO.getDeliverableTemplate(); + if(StringUtils.isNotBlank(deliverableTemplate)){ + List fileInfos = iOSSFileService.getFileInfos(StringUtils.join(deliverableTemplate, ",")); + certificationInventoryEO.setDeliverableTemplateName(fileInfos.get(0).getFileName()); + } + //交付物类型 + String deliverableType = certificationInventoryEO.getDeliverableType(); + if(StringUtils.isNotBlank(deliverableType)){ + List categoryList = sysCategoryService.list(); + String name = getTreeName(cut, categoryList, Arrays.asList(deliverableType.split(","))); + certificationInventoryEO.setDeliverableTypeName(name); + } + //平台件项目名称 + String projectLibraryId = certificationInventoryEO.getProjectLibraryId(); + List projectLibraryBaseList = projectLibraryBaseMapper.queryById(projectLibraryId); + if(ObjectUtils.isNotEmpty(projectLibraryBaseList)){ + ProjectLibraryBase projectLibraryBase = projectLibraryBaseList.get(0); + //目标市场 英文 + List targetMarketList = sysDictService.queryDictItemsByCode(DicCodeEnum.REGION.getCode()); + Map paramEn = new HashMap<>(); + paramEn.put("cut",cut); + String targetMarket = projectLibraryBaseServiceImpl.getMarket(paramEn, targetMarketList, projectLibraryBase); + String projectName = projectLibraryBase.getPlatformType()+"-"+projectLibraryBase.getPower()+"-"+projectLibraryBase.getProducer()+"-"+targetMarket; + certificationInventoryEO.setProjectName(projectName); + } + return certificationInventoryEO; + } + + + + + + + + + + + + + + + + + + + + + // @Override // public void listPlatform(Map params) { // String cut = (String) params.get("cut");// From 7f80455f60a4c559e7ffdbe29cd4be3a41a13614 Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Wed, 6 Dec 2023 17:13:31 +0800 Subject: [PATCH 51/73] =?UTF-8?q?=E6=B3=95=E8=A7=84=E6=B8=85=E5=8D=95-?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E6=B5=81=E7=A8=8B=E7=8A=B6=E6=80=81=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/ProjectLawsInventoryEOServiceImpl.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java index 7cea3f0c8..e5842ecd1 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java @@ -12798,6 +12798,7 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl sysDictItems = this.sysDictItemServiceImpl.selectItemsAll(); List categoryList = sysCategoryService.list(); + List targetMarketList = sysDictService.queryDictItemsByCode(DicCodeEnum.REGION.getCode()); LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); wrapper.eq(LawsInventoryPlatformEO::getLawsInventoryId,lawsInventoryId); @@ -12851,7 +12852,15 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl libraryBaseList = projectLibraryBaseList.stream() .filter(e -> e.getId().equals(projectLawsInventoryEO.getProjectLibraryId())).collect(Collectors.toList()); if(ObjectUtils.isNotEmpty(libraryBaseList)){ - projectLawsInventoryEO.setProjectName(libraryBaseList.get(0).getProjectNameId()); + //项目名称 + List projectLibraryBases = libraryBaseList.stream() + .filter(e -> e.getId().equals(projectLawsInventoryEO.getProjectLibraryId())).collect(Collectors.toList()); + Map paramEn = new HashMap<>(); + paramEn.put("cut",cut); + String targetMarket = projectLibraryBaseService.getMarket(paramEn, targetMarketList, projectLibraryBases.get(0)); + String projectName = projectLibraryBases.get(0).getPlatformType() + "-" + projectLibraryBases.get(0).getPower() + + "-" + projectLibraryBases.get(0).getProducer() + "-" + targetMarket; + projectLawsInventoryEO.setProjectName(projectName); } //流程状态 String flowStatus = ""; From 514f4cd808450198fce70544830ec25a3a0ae713 Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Wed, 6 Dec 2023 17:36:32 +0800 Subject: [PATCH 52/73] =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E4=BB=B6=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E6=B5=81=E7=A8=8B=E7=8A=B6=E6=80=81=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/project/mapper/xml/ProjectLibraryBaseMapper.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/mapper/xml/ProjectLibraryBaseMapper.xml b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/mapper/xml/ProjectLibraryBaseMapper.xml index 5419e9765..661bce3cb 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/mapper/xml/ProjectLibraryBaseMapper.xml +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/mapper/xml/ProjectLibraryBaseMapper.xml @@ -55,7 +55,8 @@ plb.power, plb.producer, sdi.item_text brandText, - sdi.en_name brandTextEn + sdi.en_name brandTextEn, + plb.platform_type from project_library_base as plb left join project_name_info as pni on plb.project_name_id=pni.id left join sys_user as studiouser on plb.studio_engineer=studiouser.id From f9d614867c6910fd0fa7f70283846ff74e87beb6 Mon Sep 17 00:00:00 2001 From: gaosong Date: Wed, 6 Dec 2023 17:46:07 +0800 Subject: [PATCH 53/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=95=E8=A7=84?= =?UTF-8?q?=E6=B8=85=E5=8D=95=E5=B8=A6=E5=85=A5=E7=9B=B8=E5=85=B3=E4=BA=BA?= =?UTF-8?q?=EF=BC=8C=E6=B5=81=E7=A8=8B=E4=B8=AD=E7=9A=84=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E5=B8=A6=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...formProjectLawsInventoryEOServiceImpl.java | 274 +++++++++--------- .../ProjectLawsInventoryEOServiceImpl.java | 238 +++++++-------- 2 files changed, 242 insertions(+), 270 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/platform/service/impl/PlatformProjectLawsInventoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/platform/service/impl/PlatformProjectLawsInventoryEOServiceImpl.java index bce800d1c..9f6459510 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/platform/service/impl/PlatformProjectLawsInventoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/platform/service/impl/PlatformProjectLawsInventoryEOServiceImpl.java @@ -2611,181 +2611,185 @@ public class PlatformProjectLawsInventoryEOServiceImpl extends ServiceImpl projectRelatedPersonnelTempList = projectRelatedPersonnels.stream().filter(relatedPersonnel -> { - boolean flag = false; - for (String duty : dutyTerritory.split(",")) { - if (StringUtils.equals(duty, relatedPersonnel.getDutyTerritory())) { - flag = true; + if ((projectLawsInventoryEO.getDesignFlowStatus().equals(ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue()) + || projectLawsInventoryEO.getDesignFlowStatus().equals(ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())) + && (projectLawsInventoryEO.getVerifyFlowStatus().equals(ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue()) + || projectLawsInventoryEO.getVerifyFlowStatus().equals(ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue()))) { + String dutyTerritory = projectLawsInventoryEO.getDutyTerritory(); + if (StringUtils.isNotEmpty(dutyTerritory)) { + List projectRelatedPersonnelTempList = projectRelatedPersonnels.stream().filter(relatedPersonnel -> { + boolean flag = false; + for (String duty : dutyTerritory.split(",")) { + if (StringUtils.equals(duty, relatedPersonnel.getDutyTerritory())) { + flag = true; + } } - } - return flag; - }).collect(Collectors.toList()); + return flag; + }).collect(Collectors.toList()); - if (CollectionUtils.isNotEmpty(projectRelatedPersonnelTempList)) { + if (CollectionUtils.isNotEmpty(projectRelatedPersonnelTempList)) { - LambdaUpdateWrapper updateWrapper = new LambdaUpdateWrapper<>(); + LambdaUpdateWrapper updateWrapper = new LambdaUpdateWrapper<>(); - //法规工程师 - if (StringUtils.isEmpty(projectLawsInventoryEO.getRegulationOwnerId())) { - String userId = ToGetAUserId(ProjectRoleEnum.REGULATI_ENGINEER.getValue(), projectRelatedPersonnelTempList, studioEngineer); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setRegulationOwnerId(userId); - } - } else { - String userId = ToGetAUserId(ProjectRoleEnum.REGULATI_ENGINEER.getValue(), projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getRegulationOwnerId()); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setRegulationOwnerId(userId); - } else { - updateWrapper.set(ProjectLawsInventoryEO::getRegulationOwnerId, null); - } - } - - //认证工程师 - if (StringUtils.isEmpty(projectLawsInventoryEO.getHomologationEngineerId())) { - String userId = ToGetAUserId(ProjectRoleEnum.HOMOLOGATION_ENGINEER.getValue(), projectRelatedPersonnelTempList, studioEngineer); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setHomologationEngineerId(userId); - } - } else { - String userId = ToGetAUserId(ProjectRoleEnum.HOMOLOGATION_ENGINEER.getValue(), projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getHomologationEngineerId()); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setHomologationEngineerId(userId); - } else { - updateWrapper.set(ProjectLawsInventoryEO::getHomologationEngineerId, null); - } - } - - //项目接口人 - if (StringUtils.isEmpty(projectLawsInventoryEO.getEngineeringInterfacePerson())) { - String userId = ToGetAUserId(ProjectRoleEnum.ENGINEERING_INTERFACE_PERSON.getValue(), projectRelatedPersonnelTempList, studioEngineer); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setEngineeringInterfacePerson(userId); - } - } else { - String userId = ToGetAUserId(ProjectRoleEnum.ENGINEERING_INTERFACE_PERSON.getValue(), projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getEngineeringInterfacePerson()); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setEngineeringInterfacePerson(userId); - } else { - updateWrapper.set(ProjectLawsInventoryEO::getEngineeringInterfacePerson, null); - } - } - - //设计符合性确认 - //发起人角色 - String designInitiator = projectLawsInventoryEO.getDesignInitiator(); - if (StringUtils.isNotEmpty(designInitiator)) { - if (StringUtils.isEmpty(projectLawsInventoryEO.getDesignInitiatorId())) { - String userId = ToGetAUserId(designInitiator, projectRelatedPersonnelTempList, studioEngineer); + //法规工程师 + if (StringUtils.isEmpty(projectLawsInventoryEO.getRegulationOwnerId())) { + String userId = ToGetAUserId(ProjectRoleEnum.REGULATI_ENGINEER.getValue(), projectRelatedPersonnelTempList, studioEngineer); if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setDesignInitiatorId(userId); + projectLawsInventoryEO.setRegulationOwnerId(userId); } } else { - String userId = ToGetAUserId(designInitiator, projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getDesignInitiatorId()); + String userId = ToGetAUserId(ProjectRoleEnum.REGULATI_ENGINEER.getValue(), projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getRegulationOwnerId()); if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setDesignInitiatorId(userId); + projectLawsInventoryEO.setRegulationOwnerId(userId); } else { - updateWrapper.set(ProjectLawsInventoryEO::getDesignInitiatorId, null); + updateWrapper.set(ProjectLawsInventoryEO::getRegulationOwnerId, null); } } - } - //责任人角色 - String designDuty = projectLawsInventoryEO.getDesignDuty(); - if (StringUtils.isNotEmpty(designDuty)) { - if (StringUtils.isEmpty(projectLawsInventoryEO.getDesignDutyId())) { - String userId = ToGetAUserId(designDuty, projectRelatedPersonnelTempList, studioEngineer); + //认证工程师 + if (StringUtils.isEmpty(projectLawsInventoryEO.getHomologationEngineerId())) { + String userId = ToGetAUserId(ProjectRoleEnum.HOMOLOGATION_ENGINEER.getValue(), projectRelatedPersonnelTempList, studioEngineer); if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setDesignDutyId(userId); + projectLawsInventoryEO.setHomologationEngineerId(userId); } } else { - String userId = ToGetAUserId(designDuty, projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getDesignDutyId()); + String userId = ToGetAUserId(ProjectRoleEnum.HOMOLOGATION_ENGINEER.getValue(), projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getHomologationEngineerId()); if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setDesignDutyId(userId); + projectLawsInventoryEO.setHomologationEngineerId(userId); } else { - updateWrapper.set(ProjectLawsInventoryEO::getDesignDutyId, null); + updateWrapper.set(ProjectLawsInventoryEO::getHomologationEngineerId, null); } } - } - - //prehomo确认 - //发起人角色 - String prehomoInitiator = projectLawsInventoryEO.getPrehomoInitiator(); - if (StringUtils.isNotEmpty(prehomoInitiator)) { - if (StringUtils.isEmpty(projectLawsInventoryEO.getPrehomoInitiatorId())) { - String userId = ToGetAUserId(prehomoInitiator, projectRelatedPersonnelTempList, studioEngineer); + //项目接口人 + if (StringUtils.isEmpty(projectLawsInventoryEO.getEngineeringInterfacePerson())) { + String userId = ToGetAUserId(ProjectRoleEnum.ENGINEERING_INTERFACE_PERSON.getValue(), projectRelatedPersonnelTempList, studioEngineer); if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setPrehomoInitiatorId(userId); + projectLawsInventoryEO.setEngineeringInterfacePerson(userId); } } else { - String userId = ToGetAUserId(prehomoInitiator, projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getPrehomoInitiatorId()); + String userId = ToGetAUserId(ProjectRoleEnum.ENGINEERING_INTERFACE_PERSON.getValue(), projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getEngineeringInterfacePerson()); if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setPrehomoInitiatorId(userId); + projectLawsInventoryEO.setEngineeringInterfacePerson(userId); } else { - updateWrapper.set(ProjectLawsInventoryEO::getPrehomoInitiatorId, null); + updateWrapper.set(ProjectLawsInventoryEO::getEngineeringInterfacePerson, null); } } - } - //责任人角色 - String prehomoDuty = projectLawsInventoryEO.getPrehomoDuty(); - if (StringUtils.isNotEmpty(prehomoDuty)) { - if (StringUtils.isEmpty(projectLawsInventoryEO.getPrehomoDutyId())) { - String userId = ToGetAUserId(prehomoDuty, projectRelatedPersonnelTempList, studioEngineer); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setPrehomoDutyId(userId); - } - } else { - String userId = ToGetAUserId(prehomoDuty, projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getPrehomoDutyId()); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setPrehomoDutyId(userId); + //设计符合性确认 + //发起人角色 + String designInitiator = projectLawsInventoryEO.getDesignInitiator(); + if (StringUtils.isNotEmpty(designInitiator)) { + if (StringUtils.isEmpty(projectLawsInventoryEO.getDesignInitiatorId())) { + String userId = ToGetAUserId(designInitiator, projectRelatedPersonnelTempList, studioEngineer); + if (StringUtils.isNotEmpty(userId)) { + projectLawsInventoryEO.setDesignInitiatorId(userId); + } } else { - updateWrapper.set(ProjectLawsInventoryEO::getPrehomoDutyId, null); + String userId = ToGetAUserId(designInitiator, projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getDesignInitiatorId()); + if (StringUtils.isNotEmpty(userId)) { + projectLawsInventoryEO.setDesignInitiatorId(userId); + } else { + updateWrapper.set(ProjectLawsInventoryEO::getDesignInitiatorId, null); + } } } - } - //验证符合性确认 - //发起人角色 - String verifyInitiator = projectLawsInventoryEO.getVerifyInitiator(); - if (StringUtils.isNotEmpty(verifyInitiator)) { - if (StringUtils.isEmpty(projectLawsInventoryEO.getVerifyInitiatorId())) { - String userId = ToGetAUserId(verifyInitiator, projectRelatedPersonnelTempList, studioEngineer); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setVerifyInitiatorId(userId); - } - } else { - String userId = ToGetAUserId(verifyInitiator, projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getVerifyInitiatorId()); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setVerifyInitiatorId(userId); + //责任人角色 + String designDuty = projectLawsInventoryEO.getDesignDuty(); + if (StringUtils.isNotEmpty(designDuty)) { + if (StringUtils.isEmpty(projectLawsInventoryEO.getDesignDutyId())) { + String userId = ToGetAUserId(designDuty, projectRelatedPersonnelTempList, studioEngineer); + if (StringUtils.isNotEmpty(userId)) { + projectLawsInventoryEO.setDesignDutyId(userId); + } } else { - updateWrapper.set(ProjectLawsInventoryEO::getVerifyInitiatorId, null); + String userId = ToGetAUserId(designDuty, projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getDesignDutyId()); + if (StringUtils.isNotEmpty(userId)) { + projectLawsInventoryEO.setDesignDutyId(userId); + } else { + updateWrapper.set(ProjectLawsInventoryEO::getDesignDutyId, null); + } } } - } - //责任人角色 - String verifyDuty = projectLawsInventoryEO.getVerifyDuty(); - if (StringUtils.isNotEmpty(verifyDuty)) { - if (StringUtils.isEmpty(projectLawsInventoryEO.getVerifyDutyId())) { - String userId = ToGetAUserId(verifyDuty, projectRelatedPersonnelTempList, studioEngineer); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setVerifyDutyId(userId); - } - } else { - String userId = ToGetAUserId(verifyDuty, projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getVerifyDutyId()); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setVerifyDutyId(userId); + + //prehomo确认 + //发起人角色 + String prehomoInitiator = projectLawsInventoryEO.getPrehomoInitiator(); + if (StringUtils.isNotEmpty(prehomoInitiator)) { + if (StringUtils.isEmpty(projectLawsInventoryEO.getPrehomoInitiatorId())) { + String userId = ToGetAUserId(prehomoInitiator, projectRelatedPersonnelTempList, studioEngineer); + if (StringUtils.isNotEmpty(userId)) { + projectLawsInventoryEO.setPrehomoInitiatorId(userId); + } } else { - updateWrapper.set(ProjectLawsInventoryEO::getVerifyDutyId, null); + String userId = ToGetAUserId(prehomoInitiator, projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getPrehomoInitiatorId()); + if (StringUtils.isNotEmpty(userId)) { + projectLawsInventoryEO.setPrehomoInitiatorId(userId); + } else { + updateWrapper.set(ProjectLawsInventoryEO::getPrehomoInitiatorId, null); + } } } + + //责任人角色 + String prehomoDuty = projectLawsInventoryEO.getPrehomoDuty(); + if (StringUtils.isNotEmpty(prehomoDuty)) { + if (StringUtils.isEmpty(projectLawsInventoryEO.getPrehomoDutyId())) { + String userId = ToGetAUserId(prehomoDuty, projectRelatedPersonnelTempList, studioEngineer); + if (StringUtils.isNotEmpty(userId)) { + projectLawsInventoryEO.setPrehomoDutyId(userId); + } + } else { + String userId = ToGetAUserId(prehomoDuty, projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getPrehomoDutyId()); + if (StringUtils.isNotEmpty(userId)) { + projectLawsInventoryEO.setPrehomoDutyId(userId); + } else { + updateWrapper.set(ProjectLawsInventoryEO::getPrehomoDutyId, null); + } + } + } + + //验证符合性确认 + //发起人角色 + String verifyInitiator = projectLawsInventoryEO.getVerifyInitiator(); + if (StringUtils.isNotEmpty(verifyInitiator)) { + if (StringUtils.isEmpty(projectLawsInventoryEO.getVerifyInitiatorId())) { + String userId = ToGetAUserId(verifyInitiator, projectRelatedPersonnelTempList, studioEngineer); + if (StringUtils.isNotEmpty(userId)) { + projectLawsInventoryEO.setVerifyInitiatorId(userId); + } + } else { + String userId = ToGetAUserId(verifyInitiator, projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getVerifyInitiatorId()); + if (StringUtils.isNotEmpty(userId)) { + projectLawsInventoryEO.setVerifyInitiatorId(userId); + } else { + updateWrapper.set(ProjectLawsInventoryEO::getVerifyInitiatorId, null); + } + } + } + + //责任人角色 + String verifyDuty = projectLawsInventoryEO.getVerifyDuty(); + if (StringUtils.isNotEmpty(verifyDuty)) { + if (StringUtils.isEmpty(projectLawsInventoryEO.getVerifyDutyId())) { + String userId = ToGetAUserId(verifyDuty, projectRelatedPersonnelTempList, studioEngineer); + if (StringUtils.isNotEmpty(userId)) { + projectLawsInventoryEO.setVerifyDutyId(userId); + } + } else { + String userId = ToGetAUserId(verifyDuty, projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getVerifyDutyId()); + if (StringUtils.isNotEmpty(userId)) { + projectLawsInventoryEO.setVerifyDutyId(userId); + } else { + updateWrapper.set(ProjectLawsInventoryEO::getVerifyDutyId, null); + } + } + } + updateWrapper.eq(ProjectLawsInventoryEO::getId, projectLawsInventoryEO.getId()); + super.update(projectLawsInventoryEO, updateWrapper); } - updateWrapper.eq(ProjectLawsInventoryEO::getId, projectLawsInventoryEO.getId()); - super.update(projectLawsInventoryEO, updateWrapper); } } //this.baseMapper.updateById(projectLawsInventoryEO); diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java index 7cea3f0c8..06d9eb67c 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java @@ -2654,181 +2654,149 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl projectRelatedPersonnelTempList = projectRelatedPersonnels.stream().filter(relatedPersonnel -> { - boolean flag = false; - for (String duty : dutyTerritory.split(",")) { - if (StringUtils.equals(duty, relatedPersonnel.getDutyTerritory())) { - flag = true; + if ((projectLawsInventoryEO.getDesignFlowStatus().equals(ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue()) + || projectLawsInventoryEO.getDesignFlowStatus().equals(ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue()) + || projectLawsInventoryEO.getDesignFlowStatus().equals(ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue())) + && (projectLawsInventoryEO.getVerifyFlowStatus().equals(ComplianceFlowStatusEnum.LIST_TO_BE_RELEASED.getValue()) + || projectLawsInventoryEO.getVerifyFlowStatus().equals(ComplianceFlowStatusEnum.LIST_TO_BE_CHECKED.getValue()) + || projectLawsInventoryEO.getVerifyFlowStatus().equals(ComplianceFlowStatusEnum.REGULATORY_ENGINEER_RETURNS.getValue()))) { + String dutyTerritory = projectLawsInventoryEO.getDutyTerritory(); + if (StringUtils.isNotEmpty(dutyTerritory)) { + List projectRelatedPersonnelTempList = projectRelatedPersonnels.stream().filter(relatedPersonnel -> { + boolean flag = false; + for (String duty : dutyTerritory.split(",")) { + if (StringUtils.equals(duty, relatedPersonnel.getDutyTerritory())) { + flag = true; + } } - } - return flag; - }).collect(Collectors.toList()); + return flag; + }).collect(Collectors.toList()); - if (CollectionUtils.isNotEmpty(projectRelatedPersonnelTempList)) { + if (CollectionUtils.isNotEmpty(projectRelatedPersonnelTempList)) { - LambdaUpdateWrapper updateWrapper = new LambdaUpdateWrapper<>(); + LambdaUpdateWrapper updateWrapper = new LambdaUpdateWrapper<>(); - //法规工程师 - if (StringUtils.isEmpty(projectLawsInventoryEO.getRegulationOwnerId())) { - String userId = ToGetAUserId(ProjectRoleEnum.REGULATI_ENGINEER.getValue(), projectRelatedPersonnelTempList, studioEngineer); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setRegulationOwnerId(userId); - } - } else { - String userId = ToGetAUserId(ProjectRoleEnum.REGULATI_ENGINEER.getValue(), projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getRegulationOwnerId()); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setRegulationOwnerId(userId); - } else { - updateWrapper.set(ProjectLawsInventoryEO::getRegulationOwnerId, null); - } - } - - //认证工程师 - if (StringUtils.isEmpty(projectLawsInventoryEO.getHomologationEngineerId())) { - String userId = ToGetAUserId(ProjectRoleEnum.HOMOLOGATION_ENGINEER.getValue(), projectRelatedPersonnelTempList, studioEngineer); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setHomologationEngineerId(userId); - } - } else { - String userId = ToGetAUserId(ProjectRoleEnum.HOMOLOGATION_ENGINEER.getValue(), projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getHomologationEngineerId()); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setHomologationEngineerId(userId); - } else { - updateWrapper.set(ProjectLawsInventoryEO::getHomologationEngineerId, null); - } - } - - //项目接口人 - if (StringUtils.isEmpty(projectLawsInventoryEO.getEngineeringInterfacePerson())) { - String userId = ToGetAUserId(ProjectRoleEnum.ENGINEERING_INTERFACE_PERSON.getValue(), projectRelatedPersonnelTempList, studioEngineer); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setEngineeringInterfacePerson(userId); - } - } else { - String userId = ToGetAUserId(ProjectRoleEnum.ENGINEERING_INTERFACE_PERSON.getValue(), projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getEngineeringInterfacePerson()); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setEngineeringInterfacePerson(userId); - } else { - updateWrapper.set(ProjectLawsInventoryEO::getEngineeringInterfacePerson, null); - } - } - - //设计符合性确认 - //发起人角色 - String designInitiator = projectLawsInventoryEO.getDesignInitiator(); - if (StringUtils.isNotEmpty(designInitiator)) { - if (StringUtils.isEmpty(projectLawsInventoryEO.getDesignInitiatorId())) { - String userId = ToGetAUserId(designInitiator, projectRelatedPersonnelTempList, studioEngineer); + //法规工程师 + if (StringUtils.isEmpty(projectLawsInventoryEO.getRegulationOwnerId())) { + String userId = ToGetAUserId(ProjectRoleEnum.REGULATI_ENGINEER.getValue(), projectRelatedPersonnelTempList, studioEngineer); if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setDesignInitiatorId(userId); + projectLawsInventoryEO.setRegulationOwnerId(userId); } } else { - String userId = ToGetAUserId(designInitiator, projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getDesignInitiatorId()); + String userId = ToGetAUserId(ProjectRoleEnum.REGULATI_ENGINEER.getValue(), projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getRegulationOwnerId()); if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setDesignInitiatorId(userId); + projectLawsInventoryEO.setRegulationOwnerId(userId); } else { - updateWrapper.set(ProjectLawsInventoryEO::getDesignInitiatorId, null); + updateWrapper.set(ProjectLawsInventoryEO::getRegulationOwnerId, null); } } - } - //责任人角色 - String designDuty = projectLawsInventoryEO.getDesignDuty(); - if (StringUtils.isNotEmpty(designDuty)) { - if (StringUtils.isEmpty(projectLawsInventoryEO.getDesignDutyId())) { - String userId = ToGetAUserId(designDuty, projectRelatedPersonnelTempList, studioEngineer); + //认证工程师 + if (StringUtils.isEmpty(projectLawsInventoryEO.getHomologationEngineerId())) { + String userId = ToGetAUserId(ProjectRoleEnum.HOMOLOGATION_ENGINEER.getValue(), projectRelatedPersonnelTempList, studioEngineer); if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setDesignDutyId(userId); + projectLawsInventoryEO.setHomologationEngineerId(userId); } } else { - String userId = ToGetAUserId(designDuty, projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getDesignDutyId()); + String userId = ToGetAUserId(ProjectRoleEnum.HOMOLOGATION_ENGINEER.getValue(), projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getHomologationEngineerId()); if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setDesignDutyId(userId); + projectLawsInventoryEO.setHomologationEngineerId(userId); } else { - updateWrapper.set(ProjectLawsInventoryEO::getDesignDutyId, null); + updateWrapper.set(ProjectLawsInventoryEO::getHomologationEngineerId, null); } } - } - - //prehomo确认 - //发起人角色 - String prehomoInitiator = projectLawsInventoryEO.getPrehomoInitiator(); - if (StringUtils.isNotEmpty(prehomoInitiator)) { - if (StringUtils.isEmpty(projectLawsInventoryEO.getPrehomoInitiatorId())) { - String userId = ToGetAUserId(prehomoInitiator, projectRelatedPersonnelTempList, studioEngineer); + //项目接口人 + if (StringUtils.isEmpty(projectLawsInventoryEO.getEngineeringInterfacePerson())) { + String userId = ToGetAUserId(ProjectRoleEnum.ENGINEERING_INTERFACE_PERSON.getValue(), projectRelatedPersonnelTempList, studioEngineer); if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setPrehomoInitiatorId(userId); + projectLawsInventoryEO.setEngineeringInterfacePerson(userId); } } else { - String userId = ToGetAUserId(prehomoInitiator, projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getPrehomoInitiatorId()); + String userId = ToGetAUserId(ProjectRoleEnum.ENGINEERING_INTERFACE_PERSON.getValue(), projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getEngineeringInterfacePerson()); if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setPrehomoInitiatorId(userId); + projectLawsInventoryEO.setEngineeringInterfacePerson(userId); } else { - updateWrapper.set(ProjectLawsInventoryEO::getPrehomoInitiatorId, null); + updateWrapper.set(ProjectLawsInventoryEO::getEngineeringInterfacePerson, null); } } - } - //责任人角色 - String prehomoDuty = projectLawsInventoryEO.getPrehomoDuty(); - if (StringUtils.isNotEmpty(prehomoDuty)) { - if (StringUtils.isEmpty(projectLawsInventoryEO.getPrehomoDutyId())) { - String userId = ToGetAUserId(prehomoDuty, projectRelatedPersonnelTempList, studioEngineer); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setPrehomoDutyId(userId); - } - } else { - String userId = ToGetAUserId(prehomoDuty, projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getPrehomoDutyId()); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setPrehomoDutyId(userId); + //设计符合性确认 + //发起人角色 + String designInitiator = projectLawsInventoryEO.getDesignInitiator(); + if (StringUtils.isNotEmpty(designInitiator)) { + if (StringUtils.isEmpty(projectLawsInventoryEO.getDesignInitiatorId())) { + String userId = ToGetAUserId(designInitiator, projectRelatedPersonnelTempList, studioEngineer); + if (StringUtils.isNotEmpty(userId)) { + projectLawsInventoryEO.setDesignInitiatorId(userId); + } } else { - updateWrapper.set(ProjectLawsInventoryEO::getPrehomoDutyId, null); + String userId = ToGetAUserId(designInitiator, projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getDesignInitiatorId()); + if (StringUtils.isNotEmpty(userId)) { + projectLawsInventoryEO.setDesignInitiatorId(userId); + } else { + updateWrapper.set(ProjectLawsInventoryEO::getDesignInitiatorId, null); + } } } - } - //验证符合性确认 - //发起人角色 - String verifyInitiator = projectLawsInventoryEO.getVerifyInitiator(); - if (StringUtils.isNotEmpty(verifyInitiator)) { - if (StringUtils.isEmpty(projectLawsInventoryEO.getVerifyInitiatorId())) { - String userId = ToGetAUserId(verifyInitiator, projectRelatedPersonnelTempList, studioEngineer); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setVerifyInitiatorId(userId); - } - } else { - String userId = ToGetAUserId(verifyInitiator, projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getVerifyInitiatorId()); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setVerifyInitiatorId(userId); + //责任人角色 + String designDuty = projectLawsInventoryEO.getDesignDuty(); + if (StringUtils.isNotEmpty(designDuty)) { + if (StringUtils.isEmpty(projectLawsInventoryEO.getDesignDutyId())) { + String userId = ToGetAUserId(designDuty, projectRelatedPersonnelTempList, studioEngineer); + if (StringUtils.isNotEmpty(userId)) { + projectLawsInventoryEO.setDesignDutyId(userId); + } } else { - updateWrapper.set(ProjectLawsInventoryEO::getVerifyInitiatorId, null); + String userId = ToGetAUserId(designDuty, projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getDesignDutyId()); + if (StringUtils.isNotEmpty(userId)) { + projectLawsInventoryEO.setDesignDutyId(userId); + } else { + updateWrapper.set(ProjectLawsInventoryEO::getDesignDutyId, null); + } } } - } - //责任人角色 - String verifyDuty = projectLawsInventoryEO.getVerifyDuty(); - if (StringUtils.isNotEmpty(verifyDuty)) { - if (StringUtils.isEmpty(projectLawsInventoryEO.getVerifyDutyId())) { - String userId = ToGetAUserId(verifyDuty, projectRelatedPersonnelTempList, studioEngineer); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setVerifyDutyId(userId); - } - } else { - String userId = ToGetAUserId(verifyDuty, projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getVerifyDutyId()); - if (StringUtils.isNotEmpty(userId)) { - projectLawsInventoryEO.setVerifyDutyId(userId); + //验证符合性确认 + //发起人角色 + String verifyInitiator = projectLawsInventoryEO.getVerifyInitiator(); + if (StringUtils.isNotEmpty(verifyInitiator)) { + if (StringUtils.isEmpty(projectLawsInventoryEO.getVerifyInitiatorId())) { + String userId = ToGetAUserId(verifyInitiator, projectRelatedPersonnelTempList, studioEngineer); + if (StringUtils.isNotEmpty(userId)) { + projectLawsInventoryEO.setVerifyInitiatorId(userId); + } } else { - updateWrapper.set(ProjectLawsInventoryEO::getVerifyDutyId, null); + String userId = ToGetAUserId(verifyInitiator, projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getVerifyInitiatorId()); + if (StringUtils.isNotEmpty(userId)) { + projectLawsInventoryEO.setVerifyInitiatorId(userId); + } else { + updateWrapper.set(ProjectLawsInventoryEO::getVerifyInitiatorId, null); + } } } + + //责任人角色 + String verifyDuty = projectLawsInventoryEO.getVerifyDuty(); + if (StringUtils.isNotEmpty(verifyDuty)) { + if (StringUtils.isEmpty(projectLawsInventoryEO.getVerifyDutyId())) { + String userId = ToGetAUserId(verifyDuty, projectRelatedPersonnelTempList, studioEngineer); + if (StringUtils.isNotEmpty(userId)) { + projectLawsInventoryEO.setVerifyDutyId(userId); + } + } else { + String userId = ToGetAUserId(verifyDuty, projectRelatedPersonnelTempList, studioEngineer, projectLawsInventoryEO.getVerifyDutyId()); + if (StringUtils.isNotEmpty(userId)) { + projectLawsInventoryEO.setVerifyDutyId(userId); + } else { + updateWrapper.set(ProjectLawsInventoryEO::getVerifyDutyId, null); + } + } + } + updateWrapper.eq(ProjectLawsInventoryEO::getId, projectLawsInventoryEO.getId()); + super.update(projectLawsInventoryEO, updateWrapper); } - updateWrapper.eq(ProjectLawsInventoryEO::getId, projectLawsInventoryEO.getId()); - super.update(projectLawsInventoryEO, updateWrapper); } } //this.baseMapper.updateById(projectLawsInventoryEO); From 9889b627766e98f9d5acf4782b92185dbc95bd59 Mon Sep 17 00:00:00 2001 From: gaosong Date: Wed, 6 Dec 2023 18:54:03 +0800 Subject: [PATCH 54/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=AD=E8=8B=B1?= =?UTF-8?q?=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/upgradetargetmodel.vue | 1 + .../components/basicInformation.vue | 2 +- .../components/recordparameters.vue | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue index e04d0dfef..5708e6ef9 100644 --- a/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue +++ b/jero-web/src/views/otamanagement/upgradeactivityrecord/components/upgradetargetmodel.vue @@ -467,6 +467,7 @@ export default { .title-text-text { margin-top: 9px; + word-break: break-all; } .itemModel { diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue index 4fcb6718c..eae6c2515 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/basicInformation.vue @@ -153,7 +153,7 @@
- {{$t('Vehicledynamictype')}} + {{$t('vehicledynamictype')}}
diff --git a/jero-web/src/views/otamanagement/vehicleinformation/components/recordparameters.vue b/jero-web/src/views/otamanagement/vehicleinformation/components/recordparameters.vue index 0a0649e4b..719696b9f 100644 --- a/jero-web/src/views/otamanagement/vehicleinformation/components/recordparameters.vue +++ b/jero-web/src/views/otamanagement/vehicleinformation/components/recordparameters.vue @@ -1155,6 +1155,15 @@ button{ justify-content: left; align-items: center; padding: 10px; + word-break: break-all; + text-overflow: ellipsis; + overflow: hidden; + /*! autoprefixer: off */ + -webkit-box-orient: vertical; + -webkit-line-clamp: 3; + /*! autoprefixer: on;*/ + text-justify: inter-ideograph; + display: -webkit-box; } .text-text-three{ /*display: inline-block;*/ @@ -1168,6 +1177,15 @@ button{ justify-content: left; align-items: center; padding: 10px; + overflow: hidden; + display: -webkit-box; + text-overflow: ellipsis; + /*! autoprefixer: off */ + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + /*! autoprefixer: on;*/ + text-justify: inter-ideograph; + word-break: break-all } .text-text-five{ /*display: inline-block;*/ From bac497ff10012836667aa5332dfad4fc8012d83c Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Thu, 7 Dec 2023 10:27:33 +0800 Subject: [PATCH 55/73] =?UTF-8?q?=E8=AE=A4=E8=AF=81=E6=B8=85=E5=8D=95?= =?UTF-8?q?=E5=85=B3=E8=81=94=E6=8C=89=E5=B9=B3=E5=8F=B0=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProjectCertificationInventoryEOController.java | 6 +++--- .../service/IProjectCertificationInventoryEOService.java | 2 +- .../impl/ProjectCertificationInventoryEOServiceImpl.java | 8 +++++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectCertificationInventoryEOController.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectCertificationInventoryEOController.java index c1f931bd8..a7601051c 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectCertificationInventoryEOController.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectCertificationInventoryEOController.java @@ -391,11 +391,11 @@ public class ProjectCertificationInventoryEOController extends JeroController connectPlatform(String id,String cut) { - ProjectCertificationInventoryEO projectCertificationInventoryEO = projectCertificationInventoryEOService.connectPlatform(id,cut); - if(projectCertificationInventoryEO==null) { + List projectCertificationInventoryEOList = projectCertificationInventoryEOService.connectPlatform(id,cut); + if(projectCertificationInventoryEOList==null) { return Result.error("未找到对应数据"); } - return Result.OK(projectCertificationInventoryEO); + return Result.OK(projectCertificationInventoryEOList); } } 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 ac71eb7d0..fa799af82 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 @@ -346,5 +346,5 @@ public interface IProjectCertificationInventoryEOService extends IService params); - ProjectCertificationInventoryEO connectPlatform(String id,String cut); + List connectPlatform(String id,String cut); } 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 c8efaa9ce..6e8eb8ba6 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 @@ -7466,13 +7466,13 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl connectPlatform(String id,String cut) { //认证清单平台件关联表 LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); wrapper.in(LawsInventoryPlatformEO::getLawsInventoryId,id); List lawsInventoryPlatformEOList = lawsInventoryPlatformEOService.list(wrapper); if(ObjectUtils.isEmpty(lawsInventoryPlatformEOList)){ - return new ProjectCertificationInventoryEO(); + return new ArrayList<>(); } ProjectCertificationInventoryEO certificationInventoryEO = projectCertificationInventoryEOService.queryById(lawsInventoryPlatformEOList.get(0).getLawsInventoryId()); @@ -7502,7 +7502,9 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl projectCertificationInventoryEOList = new ArrayList<>(); + projectCertificationInventoryEOList.add(certificationInventoryEO); + return projectCertificationInventoryEOList; } From a36d5ba38d5c998c1223c1d9273cf42f483071f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Thu, 7 Dec 2023 11:28:34 +0800 Subject: [PATCH 56/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=BA=93=E5=B9=B3=E5=8F=B0=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../certificationList/components/addModel.vue | 99 ++- .../components/flowstatusdetial.vue | 688 ++++++++++++------ 2 files changed, 530 insertions(+), 257 deletions(-) diff --git a/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue b/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue index f385f2e98..e1b43a2ac 100644 --- a/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue +++ b/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue @@ -500,12 +500,12 @@ - - - - - - + + + + + +
@@ -578,7 +578,7 @@ :title="$t('deliverableTemplate')">{{$t('deliverableTemplate')}}
- + {{ (formInline.deliverableTemplate === 'null' || formInline.deliverableTemplate === '' @@ -690,6 +690,22 @@
+ + +
+  {{$t('PlatformInformation')}} +
+ + +
@@ -721,12 +737,14 @@ import addCodeNumber from './addCodeNumber' import PersonnelSelection from '@/components/PersonnelSelection/index' import uploadFile from '@/components/uploadFile/file' + import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header' import { getAction, postAction, downloadFile, putAction } from '@/api/manage' import { mapGetters } from 'vuex' import moment from 'moment' export default { name: 'addModel', + mixins: [ResizeHeader, ResizeColumnProvide], components: { PersonnelSelection, uploadFile, @@ -734,10 +752,12 @@ }, data() { return { + dataList: [], formInline: {}, + loading: false, confirmLoading: false, visible: false, - disabledType:'', + disabledType: '', personnelVisible: false, yearNameDataList: [], firstLevelDutyTerritoryList: [], @@ -804,13 +824,13 @@ trigger: 'blur' } ], - remark:[ + remark: [ { max: 500, message: this.$t('remarks') + this.$t('cannotExceed') + 500 + this.$t('Characters'), trigger: 'blur' } - ], + ] }, disabled: false, flowdisabled: false, @@ -824,7 +844,30 @@ edit: '/project/projectCertificationInventoryEO/edit', list: '/project/projectLawsInventoryEO/list' }, - engineeringInterfacePersonList: [] + engineeringInterfacePersonList: [], + columns: [ + { + title: this.$t('entryName'), + dataIndex: 'projectName', + align: 'left', + ellipsis: true, + width: 120 + }, + { + title: this.$t('typeOfDeliverables'), + dataIndex: 'deliverableTypeName', + align: 'left', + ellipsis: true, + width: 160 + }, + { + title: this.$t('deliverableTemplate'), + dataIndex: 'deliverableTemplate', + align: 'left', + ellipsis: true, + width: 200 + } + ] } }, mounted() { @@ -877,7 +920,7 @@ }, DutyDepartChangeOne(event) { this.formInline.dutyTerritory = [] - this.formInline = {...this.formInline} + this.formInline = { ...this.formInline } this.getDutyTerritoryOne(event.join(',')) }, getDutyTerritoryOne(row) { @@ -923,18 +966,30 @@ if (value.dutyTerritory && value.dutyTerritory.length > 0) { this.queryPersonByProject(value.dutyTerritory.join(',')) } - console.log(value) - if(value.projectCertificationInventoryEOS && (value.projectCertificationInventoryEOS.length > 0 || value.projectCertificationInventoryEOS != null)){ + if (value.projectCertificationInventoryEOS && (value.projectCertificationInventoryEOS.length > 0 || value.projectCertificationInventoryEOS != null)) { this.flowdisabled = true this.$refs.uploadFile.disabled = true } this.getRegulationNo() + this.getConnectPlatform(this.formInline.id) this.title = this.$t('edit') this.$nextTick(() => { this.formInline = { ...this.formInline } this.$refs.ruleForm.clearValidate() }) }, + getConnectPlatform(id) { + let query = { + id: id + } + getAction('/project/projectCertificationInventoryEO/connectPlatform', query).then((res) => { + if (res.success) { + this.dataList = res.result || [] + } else { + this.dataList = [] + } + }) + }, handleCancel() { this.visible = false this.personnelVisible = false @@ -1012,9 +1067,9 @@ DutyDepartChange(index) { this.formInline.dataList[index].dutyTerritory = [] this.formInline = { ...this.formInline } - this.getDutyTerritory(this.formInline.dataList[index].dutyDepart.join(','),index) + this.getDutyTerritory(this.formInline.dataList[index].dutyDepart.join(','), index) }, - getDutyTerritory(row,index) { + getDutyTerritory(row, index) { let query = { dutyDepart: row } @@ -1024,7 +1079,7 @@ } else { this.formInline.dataList[index].dutyTerritoryList = [] } - this.formInline = {...this.formInline} + this.formInline = { ...this.formInline } }) }, handleInput(value, id, index, array) { @@ -1299,11 +1354,21 @@ ::v-deep .ant-form-item-with-help { margin-bottom: 25px; } + .itemModel-text { width: calc(100% - 130px); display: inline-block; margin-top: 2px; } + + .header-text-text { + font-size: 16px; + font-weight: bold; + margin-left: 15px; + /*border-bottom: 1px #d9d9d9 dashed;*/ + height: 30px; + margin-bottom: 30px; + } \ No newline at end of file From db7df3d26ff513b2e1577b2626c25af9305b298f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Thu, 7 Dec 2023 14:22:26 +0800 Subject: [PATCH 57/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=BA=93=E5=B9=B3=E5=8F=B0=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/certificationList/components/addModel.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue b/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue index e1b43a2ac..7f5029bb3 100644 --- a/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue +++ b/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue @@ -862,7 +862,7 @@ }, { title: this.$t('deliverableTemplate'), - dataIndex: 'deliverableTemplate', + dataIndex: 'deliverableTemplateName', align: 'left', ellipsis: true, width: 200 From fa489c167253dd0e19ebe48a92571823d215a662 Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Thu, 7 Dec 2023 14:25:10 +0800 Subject: [PATCH 58/73] =?UTF-8?q?=E8=AE=A4=E8=AF=81=E6=B8=85=E5=8D=95-?= =?UTF-8?q?=E5=85=B3=E8=81=94=E5=B9=B3=E5=8F=B0=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-boot/db/蔚来标准sql/dev_2nd_period.sql | 5 ++++ .../ProjectCertificationInventoryEO.java | 3 +++ ...ctCertificationInventoryEOServiceImpl.java | 23 ++++++++++++------- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/jero-boot/db/蔚来标准sql/dev_2nd_period.sql b/jero-boot/db/蔚来标准sql/dev_2nd_period.sql index 9a570c70a..c29d15589 100644 --- a/jero-boot/db/蔚来标准sql/dev_2nd_period.sql +++ b/jero-boot/db/蔚来标准sql/dev_2nd_period.sql @@ -682,3 +682,8 @@ ALTER TABLE `project_certification_inventory` ADD COLUMN `duty_depart` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '责任部门' AFTER `attestation_type`; +-- 认证清单 添加关联平台件认证清单id 2023-12-7 未同步生产环境 +ALTER TABLE `project_certification_inventory` +ADD COLUMN `platform_certification_inventory_id` varchar(36) NULL COMMENT '平台件-认证清单id' AFTER `remark`; + + diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/entity/ProjectCertificationInventoryEO.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/entity/ProjectCertificationInventoryEO.java index cca2bfad4..4e2469f9a 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/entity/ProjectCertificationInventoryEO.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/entity/ProjectCertificationInventoryEO.java @@ -271,4 +271,7 @@ public class ProjectCertificationInventoryEO implements Serializable { @TableField(exist = false) private String projectName; + + @ApiModelProperty(value = "平台件-认证清单id") + private String platformCertificationInventoryId; } 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 6e8eb8ba6..fa8b3b6ec 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 @@ -7391,6 +7391,7 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl(); } ProjectCertificationInventoryEO certificationInventoryEO = projectCertificationInventoryEOService.queryById(lawsInventoryPlatformEOList.get(0).getLawsInventoryId()); + //平台件的平台件认证清单 + ProjectCertificationInventoryEO certificationInventoryEOTemp = + projectCertificationInventoryEOService.queryById(certificationInventoryEO.getPlatformCertificationInventoryId()); + //交付物模板 - String deliverableTemplate = certificationInventoryEO.getDeliverableTemplate(); + String deliverableTemplate = certificationInventoryEOTemp.getDeliverableTemplate(); if(StringUtils.isNotBlank(deliverableTemplate)){ List fileInfos = iOSSFileService.getFileInfos(StringUtils.join(deliverableTemplate, ",")); - certificationInventoryEO.setDeliverableTemplateName(fileInfos.get(0).getFileName()); + certificationInventoryEOTemp.setDeliverableTemplateName(fileInfos.get(0).getFileName()); } //交付物类型 - String deliverableType = certificationInventoryEO.getDeliverableType(); + String deliverableType = certificationInventoryEOTemp.getDeliverableType(); if(StringUtils.isNotBlank(deliverableType)){ List categoryList = sysCategoryService.list(); String name = getTreeName(cut, categoryList, Arrays.asList(deliverableType.split(","))); - certificationInventoryEO.setDeliverableTypeName(name); + certificationInventoryEOTemp.setDeliverableTypeName(name); } + + + //平台件认证清单对应的法规 + List projectLibraryBaseList = projectLibraryBaseMapper.queryById(certificationInventoryEOTemp.getProjectLibraryId()); //平台件项目名称 - String projectLibraryId = certificationInventoryEO.getProjectLibraryId(); - List projectLibraryBaseList = projectLibraryBaseMapper.queryById(projectLibraryId); if(ObjectUtils.isNotEmpty(projectLibraryBaseList)){ ProjectLibraryBase projectLibraryBase = projectLibraryBaseList.get(0); //目标市场 英文 @@ -7500,10 +7507,10 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl projectCertificationInventoryEOList = new ArrayList<>(); - projectCertificationInventoryEOList.add(certificationInventoryEO); + projectCertificationInventoryEOList.add(certificationInventoryEOTemp); return projectCertificationInventoryEOList; } From ee6fb4e1ea0803d280a6209afc17316a11344e71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Thu, 7 Dec 2023 14:25:47 +0800 Subject: [PATCH 59/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=BA=93=E5=B9=B3=E5=8F=B0=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/certificationList/components/addModel.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue b/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue index 7f5029bb3..6bb785eb4 100644 --- a/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue +++ b/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue @@ -692,12 +692,12 @@ -
+
 {{$t('PlatformInformation')}}
- - Date: Thu, 7 Dec 2023 14:38:24 +0800 Subject: [PATCH 60/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=BA=93=E5=B9=B3=E5=8F=B0=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../certificationList/components/addModel.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue b/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue index 6bb785eb4..3e7da8e95 100644 --- a/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue +++ b/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue @@ -705,6 +705,14 @@ :data-source="dataList" :pagination="false" :loading="loading"> + + + {{record.deliverableTemplateName}} + +
@@ -865,7 +873,8 @@ dataIndex: 'deliverableTemplateName', align: 'left', ellipsis: true, - width: 200 + width: 200, + scopedSlots: { customRender: 'deliverableTemplate' } } ] } @@ -982,6 +991,7 @@ let query = { id: id } + this.dataList = [] getAction('/project/projectCertificationInventoryEO/connectPlatform', query).then((res) => { if (res.success) { this.dataList = res.result || [] @@ -1181,6 +1191,9 @@ this.handleInput('dataList.' + index + '.dutyTerritory') this.queryPersonByProject(this.formInline.dataList[index].dutyTerritory.join(','), index) }, + down(id, name) { + downloadFile('/sys/common/downLoadFile', name, { id: id }) + }, queryPersonByProject(row, index) { let query = { projectId: this.$route.query.id, From b4b3f57f0272bf54dc9a5d0650258925a3ed757c Mon Sep 17 00:00:00 2001 From: gaosong Date: Thu, 7 Dec 2023 17:58:23 +0800 Subject: [PATCH 61/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=B9=E6=8E=A5?= =?UTF-8?q?=E7=81=AB=E5=B1=B1=E5=BC=95=E6=93=8E=E6=8E=A5=E5=8F=A3=EF=BC=8C?= =?UTF-8?q?=E5=8F=AA=E5=8F=91=E5=9C=A8=E7=A0=94=E7=9A=84=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/ProjectLibraryBaseServiceImpl.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java index 24e00bfe9..6e029ab76 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLibraryBaseServiceImpl.java @@ -3251,9 +3251,15 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl plbList = this.getList(new ProjectLibraryBase()); + ProjectLibraryBase plbWra = new ProjectLibraryBase(); + //只查询在研状态 + plbWra.setProjectStatus("b99df0cf14984eaa9b9e80623be3f480"); + List plbList = this.getList(plbWra); JSONArray resList = new JSONArray(); for (ProjectLibraryBase plb: plbList) { + if(StringUtils.isNotBlank(plb.getPlatform()) && plb.getPlatform().equals("YES")){ + continue; + } JSONObject jsonObject = new JSONObject(); jsonObject.put("projectId",plb.getId()); jsonObject.put("projectName",plb.getShowName()); @@ -3291,9 +3297,15 @@ public class ProjectLibraryBaseServiceImpl extends ServiceImpl plbList = this.getList(new ProjectLibraryBase()); + ProjectLibraryBase plbWra = new ProjectLibraryBase(); + //只查询在研状态 + plbWra.setProjectStatus("b99df0cf14984eaa9b9e80623be3f480"); + List plbList = this.getList(plbWra); JSONArray resList = new JSONArray(); for (ProjectLibraryBase plb: plbList) { + if(StringUtils.isNotBlank(plb.getPlatform()) && plb.getPlatform().equals("YES")){ + continue; + } JSONObject jsonObject = new JSONObject(); jsonObject.put("projectId",plb.getId()); jsonObject.put("projectName",plb.getShowName()); From 96393629cca556458479ef280700898eab9981b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Fri, 8 Dec 2023 18:35:18 +0800 Subject: [PATCH 62/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=96=B0=E5=A2=9E=E6=9F=A5=E7=9C=8B=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Standardselection/index.vue | 7 +- .../moudles/addModel.vue | 278 ++++++++++---- .../moudles/detilModel.vue | 361 ++++++++---------- 3 files changed, 371 insertions(+), 275 deletions(-) diff --git a/jero-web/src/components/Standardselection/index.vue b/jero-web/src/components/Standardselection/index.vue index 41854300a..79797040e 100644 --- a/jero-web/src/components/Standardselection/index.vue +++ b/jero-web/src/components/Standardselection/index.vue @@ -303,6 +303,11 @@ width: 80px; overflow: hidden; padding: 0; + background: #FFFFFF; + border-radius: 4px 4px 4px 4px; + opacity: 1; + border: 1px solid #00BEBE; + color: #01A0AC; } .drawer-bootom-button { @@ -359,7 +364,7 @@ ::v-deep .box-input-select .ant-select-selection--multiple::-webkit-scrollbar { /*height: 52px!important;*/ - display: block; + display: none; } .itemOption { diff --git a/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue b/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue index 4bdffcda9..9971a73f8 100644 --- a/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue +++ b/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue @@ -3,7 +3,7 @@ - +
* @@ -27,8 +27,6 @@
- -
@@ -44,6 +42,9 @@
+ + +
@@ -59,8 +60,6 @@
- -
@@ -80,6 +79,9 @@
+ + +
@@ -94,7 +96,7 @@ :getPopupContainer="triggerNode=> triggerNode.parentNode" showSearch @change="platformChange" - :style="formInline.projectType == 'none' ? 'width:100%' : 'width:50%'" + :style="!formInline.projectType ? 'width:100%' : 'width:calc(50% - 6px);'" optionFilterProp="label" :autoClearSearchValue="false" :placeholder="$t('PleaseSelect')+$t('type')"> @@ -113,7 +115,7 @@ v-model="formInline.projectId" :getPopupContainer="triggerNode=> triggerNode.parentNode" showSearch - style="width: 50%;float: right" + style="width: calc(50% - 6px);float: right;margin-left: 12px" optionFilterProp="label" :autoClearSearchValue="false" :placeholder="$t('PleaseSelect')+$t('RelatedItems')"> @@ -132,7 +134,7 @@ v-model="formInline.projectId" :getPopupContainer="triggerNode=> triggerNode.parentNode" showSearch - style="width: 50%;float: right" + style="width: calc(50% - 6px);float: right;margin-left: 10px" mode="multiple" optionFilterProp="label" :autoClearSearchValue="false" @@ -149,8 +151,7 @@
- - +
@@ -179,6 +180,8 @@
+ +
@@ -208,8 +211,6 @@
- -
@@ -236,9 +237,9 @@
-
+ +
- + + + +
- {{$t('putAway')}} - {{$t('open')}} + + @@ -273,22 +274,31 @@ :title="$t('documents')">{{$t('documents')}}
-
+
- - + + + + + + + + + +
{{ (formInline.file === 'null' || formInline.file === '' || formInline.file == null) ? $t('Fileupload') : $t('viewUploadedFiles') @@ -307,10 +317,16 @@ :title="$t('progresstracking')">{{$t('progresstracking')}}
-
+ {{ $t('newlyAdded') }} + +
-
+
@@ -321,11 +337,40 @@ -
- +
+
+
+
+ + {{$t('putAway')}} +
+
+ + {{$t('delete')}} +
+
+
+
+
+
+
+ + {{$t('open')}} +
+
+ + {{$t('delete')}} +
+
+
+ + + +
@@ -333,13 +378,13 @@ - {{$t('newlyAdded')}} - {{$t('delete')}} + + + + - {{$t('putAway')}} - {{$t('open')}} + +
@@ -375,21 +420,31 @@ :title="$t('examineapproveevidence')">{{$t('examineapproveevidence')}}
-
+
- - + + + + + + + + +
{{ (formInline.approvalEvidence === 'null' || formInline.approvalEvidence === '' || formInline.approvalEvidence == null) ? $t('Fileupload') : $t('viewUploadedFiles') @@ -700,7 +755,7 @@ this.problemState = this.$t('emptyc') } let time = moment(new Date()).format('YYYY-MM-DD HH:mm:ss') - let text = '

' + this.userInfo().username + ' ' + time + '

' + ' ' + this.$t('Problemstate') + this.$t('by') + '\'' + this.problemState + '\'' + this.$t('Changeto') + '\'' + value + '\'' + let text = '

' + ''+this.userInfo().username + ' ' +''+ time +''+ '

' + '

' + this.$t('Problemstate') + this.$t('by') + '\'' + this.problemState + '\'' + this.$t('Changeto') + '\'' + value + '\''+'

' if (JSON.stringify(this.formInline.progressTrackingList[0]) == '{}' || this.formInline.progressTrackingList[0].progressTracking == '') { this.formInline.progressTrackingList.forEach((item, index) => { item.progressTracking = text @@ -815,9 +870,7 @@ }, TrackingModelForm(row) { let time = moment(new Date()).format('YYYY-MM-DD HH:mm:ss') - console.log(row) - let text = '

' + this.userInfo().username + ' ' + time + '

' + row - console.log(text) + let text = '

' + '' + this.userInfo().username + '' + '' + time + '' + '

' + row this.formInline.progressTrackingList.forEach((item, index) => { if (!item.progressTracking) { this.formInline.progressTrackingList.splice(0, 1) @@ -827,7 +880,7 @@ console.log(this.formInline.progressTrackingList) }, addprogresstrackingClick(index) { - this.index = index + this.index = this.formInline.progressTrackingList.length - 1 this.formInlinetracking = {} this.$refs.TrackingModelRef.add() this.$nextTick(() => { @@ -837,12 +890,10 @@ }) }, deleteprogresstrackingClick(index, item) { - if (item.progressTracking && item.progressTracking != '') { - if (index == 0) { - item.progressTracking = '' - } else { - this.formInline.progressTrackingList.splice(index, 1) - } + if (this.formInline.progressTrackingList.length > 1) { + this.formInline.progressTrackingList.splice(index, 1) + } else { + item.progressTracking = '' } this.formInline = { ...this.formInline } }, @@ -1045,7 +1096,7 @@ } else if (value == 'numberPlatform' || value == 'carPlatform') { this.formInline.projectId = undefined this.getPlatform(value) - }else{ + } else { this.formInline.projectId = undefined } this.formInline = { ...this.formInline } @@ -1070,14 +1121,41 @@ .text-class { color: rgba(0, 0, 0, 0.65); font-weight: bold; + background: #F5F6F7; + width: 100%; + border-radius: 4px 4px 0px 0px; + position: absolute; + top: 0; + height: 46px; + line-height: 46px; + } + + .usernameClass { + font-size: 14px; + font-family: PingFang SC, PingFang SC; + font-weight: 400; + color: #040B29; + margin-right: 6px; + } + + .timeClass { + font-size: 14px; + font-family: PingFang SC, PingFang SC; + font-weight: 400; + color: #9598A4; } p { margin: 0; padding: 0; } + \ No newline at end of file diff --git a/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue b/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue index 24e1f5cfb..00aac233c 100644 --- a/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue +++ b/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue @@ -12,52 +12,43 @@ - +
{{$t('title')}}
- - - +
+ {{formInline.title}} +
-
-
{{$t('problemType')}}
- - - -
-
- -
-
- - {{'PS-issue'}} -
-
- {{formInline.psIssue}} +
+ {{formInline.problemType_dictText}}
+ + +
+
+ {{'PS-issue'}} +
+ +
+
@@ -65,14 +56,14 @@ {{$t('Relevantlawsregulations')}}
- - - +
+ {{formInline.lawsName || '--'}} +
+
+ +
@@ -80,72 +71,21 @@ {{$t('RelatedItems')}}
- - - - - {{ item.name}} - - - - - - - {{item}} - - - - - - - {{ item.projectName}} - - - - +
+ + {{formInline.projectType ? formInline.projectType == 'numberPlatform' || + formInline.projectType == 'carPlatform' ? formInline.problemType_dictText+' '+formInline.projectId : + formInline.projectType == 'model' ? formInline.problemType_dictText+' '+formInline.projectName : + formInline.problemType_dictText : '--'}} + +
-
- +
@@ -153,71 +93,34 @@ {{$t('statisticalNodes')}}
- - - - - {{ item.key }} - - - - -
-
- -
-
- - {{$t('Problemstate')}} +
+ {{formInline.dutyTerritory}}
- - - - - {{ item }} - - - -
+ +
+
+ + {{$t('Problemstate')}} +
+
+ {{formInline.problemState}} +
+
+
{{$t('problemPriority')}}
- - - +
+ {{formInline.problemPriority_dictText}} +
@@ -228,12 +131,9 @@ {{$t('descriptions')}}
- -
- - - -
+
+
@@ -244,14 +144,14 @@ {{$t('documents')}}
- -
+ @@ -262,16 +162,11 @@ {{$t('progresstracking')}}
- -
-
- - - - - +
+
+
- +
@@ -282,11 +177,9 @@ {{$t('conculsion')}}
- - - +
+ {{formInline.conclusion}} +
@@ -298,14 +191,16 @@ {{$t('examineapproveevidence')}}
- -
+ @@ -344,7 +239,7 @@ } ] }, - relatedItemsList:[], + relatedItemsList: [], platformList: [ { name: this.$t('DigitalPlatform'), @@ -458,11 +353,11 @@ } else if (row.projectType == 'numberPlatform' || row.projectType == 'carPlatform') { this.getPlatform(row.projectType) } - if (this.formInline.dutyTerritory != null) { - this.formInline.dutyTerritory = this.formInline.dutyTerritory.split(',') - } else { - this.formInline.dutyTerritory = undefined - } + // if (this.formInline.dutyTerritory != null) { + // this.formInline.dutyTerritory = this.formInline.dutyTerritory.split(',') + // } else { + // this.formInline.dutyTerritory = undefined + // } if (this.formInline.problemState == null) { this.formInline.problemState = undefined } @@ -472,7 +367,7 @@ this.formInline.approvalEvidenceFileList = res.result.approvalEvidenceFileList } }) - this.formInline = {...this.formInline} + this.formInline = { ...this.formInline } console.log(this.formInline) this.visible = true this.disabled = true @@ -506,11 +401,13 @@ .ant-input-disabled { color: rgba(0, 0, 0, 0.65) !important; } - .text-class{ + + .text-class { color: rgba(0, 0, 0, 0.65); font-weight: bold; } - p{ + + p { margin: 0; padding: 0; } @@ -520,20 +417,18 @@ .box-title-text { line-height: 1.4; display: flex; + justify-content: space-between; + margin-bottom: 20px; } .title-text { width: 114px; - text-align: right; + text-align: left; display: inline-block; - font-weight: 500; - font-size: 14px; margin-right: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; - height: 42px; - line-height: 42px; } .box-input { @@ -545,25 +440,23 @@ .itemModel { width: calc(100% - 130px); display: inline-block; - margin-top: 2px; + font-size: 14px; + font-family: PingFang SC, PingFang SC; + font-weight: 400; + color: #040B29; } .title-text-text { - margin-top: 9px; + font-size: 14px; + font-family: PingFang SC, PingFang SC; + font-weight: 400; + color: #6F7385; } .formAdd { margin-bottom: 40px; } - .Required { - color: red; - margin-right: 4px; - } - - .title-text-text { - margin-top: 9px; - } .formAdd { margin-bottom: 40px; @@ -611,19 +504,71 @@ display: inline-block; border: 1px solid #ccc; padding: 0 15px; + margin-bottom: 10px; + } + + .itemModel-text { box-sizing: border-box; white-space: pre-wrap; - overflow: auto; + width: calc(100% - 130px); + margin-top: 1px; } - .text-box-one { + + .itemModel-text-text { + font-size: 14px; + font-family: PingFang SC, PingFang SC; + font-weight: 400; + color: #040B29; + margin-bottom: 10px; + } + + .text-box { width: 100%; height: 200px; display: inline-block; border: 1px solid #ccc; - padding: 0 15px; + padding: 0; + border-radius: 4px; + position: relative; + } + + ::v-deep .text-box-index-text-top p { + margin: 0 !important; + padding: 0 15px !important; + } + + .text-box-index-text-top { + width: 100%; + height: 100%; box-sizing: border-box; - margin-bottom: 20px; white-space: pre-wrap; overflow: auto; + padding: 56px 0 10px 0; + } + ::v-deep .text-class { + color: rgba(0, 0, 0, 0.65); + font-weight: bold; + background: #F5F6F7; + width: 100%; + height: 46px; + line-height: 46px; + border-radius: 4px 4px 0px 0px; + position: absolute; + top: 0; + } + + ::v-deep .usernameClass { + font-size: 14px; + font-family: PingFang SC, PingFang SC; + font-weight: 400; + color: #040B29; + margin-right: 6px; + } + + ::v-deep .timeClass { + font-size: 14px; + font-family: PingFang SC, PingFang SC; + font-weight: 400; + color: #9598A4; } \ No newline at end of file From f951d3da1accbc51dcbdfbe4be6995ff022c86e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Fri, 8 Dec 2023 18:37:08 +0800 Subject: [PATCH 63/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=96=B0=E5=A2=9E=E6=9F=A5=E7=9C=8B=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/assets/editdelete.png | Bin 0 -> 266 bytes jero-web/src/assets/medieProgress.png | Bin 0 -> 214 bytes jero-web/src/assets/progressAdd.png | Bin 0 -> 382 bytes jero-web/src/assets/progressDelete.png | Bin 0 -> 337 bytes jero-web/src/assets/progressExit.png | Bin 0 -> 209 bytes 5 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 jero-web/src/assets/editdelete.png create mode 100644 jero-web/src/assets/medieProgress.png create mode 100644 jero-web/src/assets/progressAdd.png create mode 100644 jero-web/src/assets/progressDelete.png create mode 100644 jero-web/src/assets/progressExit.png diff --git a/jero-web/src/assets/editdelete.png b/jero-web/src/assets/editdelete.png new file mode 100644 index 0000000000000000000000000000000000000000..64821d6a47ed4dfc77b7225a0aa4136f763558ca GIT binary patch literal 266 zcmV+l0rmcgP)Px##7RU!R5(v#WS|f*V(6d0N`irj#T=`-|Nfk0NDO;{EQiH_l>v;5% zfFV9;Bc=iKacjcmLzrO@7l5736wdgcVZwh#h5`l#rU%$H{!@Uf`S))n$U6ux%wJ`| z$jEg5|Nno642fYEuo{3x4Ne0X7p(aYcILm|jG!?2pAf>xFlqp4VL)*#kZ!>2B{Gbx z9FK{~TmS$6R%A$w1SdAsys%)cH3K7~2wp=N|Gi*{3poi>gPEC#aRQPW05{>n5v<4B Qz5oCK07*qoM6N<$f`P7Vs{jB1 literal 0 HcmV?d00001 diff --git a/jero-web/src/assets/medieProgress.png b/jero-web/src/assets/medieProgress.png new file mode 100644 index 0000000000000000000000000000000000000000..322ed983e40515c735d83de2bd71f2362fe66a9a GIT binary patch literal 214 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|CV09yhFJI~ zrz{XK2wE|pG3h|l)}uW<|Em+){`zwq%rbb~WcvSMmV|`2giurULbf%L=MNlEIC$X1 z6~-_D`7MI0Pm8Vl%-;R~fB3-z2R<|@Dyj(FWMG@X5EvK5uuWi%T+)F( MboFyt=akR{05XeB#Q*>R literal 0 HcmV?d00001 diff --git a/jero-web/src/assets/progressAdd.png b/jero-web/src/assets/progressAdd.png new file mode 100644 index 0000000000000000000000000000000000000000..927f128a3ca0963a77b586f259098700454288ee GIT binary patch literal 382 zcmV-^0fGLBP)Px$I7vi7R9Hvtn6Xa6P!xv$Lj&nx8cBTu7P_m8tc(o242f^x;=5o1Bdadz4vSB~ z6}ZsYXzDSy8bTt?k)&xQIUW1o^nCa0Ic;(Y0IW^gsHL}HbOHG8URf72Hbj`9?p+7I zKO+ajNS}ysQWnI%IvH5QyCA!chXDFj!fb0Z#kYqs059%RfmYB|7em&E?E&$#? zWl_6@Fg%qww)t@bCay2LJ#7 literal 0 HcmV?d00001 diff --git a/jero-web/src/assets/progressDelete.png b/jero-web/src/assets/progressDelete.png new file mode 100644 index 0000000000000000000000000000000000000000..0b94bd85d16c0e567ede702f92b8467716700ebb GIT binary patch literal 337 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k1|%Oc%$NbB7>k44ofy`glX(ebb9=fthD5l( zongpz$U(sMzl4&e3dctlvnqzYj$YjQ$`#Dg?-wmtYJPz^<1r`Ci(?4^k4~`(vZg9| zO-kB!=KQ-owboY!7&Jt;2Y4R4@PX0dS#+FtwoK=ShFsp*<2NTXUi1iaS@D$h<2paC zu&q{04rMSch*vqYc-yf#d|F)H+diu(o3)i_zPY2w(oxN8sM2P^9HVCorM`qaJ8n2$ zwfX6}nv=KJs@bfcS9w0%Kg?>und^TZ9$(M%H$eS!7~`XmPDR5bk`Ibrf~ikI-!5pr zpLs#u`=y85$_zHA{@|Ixc1!05Q|3p{m(SO#d()ND>fxo^6z| cg;G)78&qol`;+0B{F~>;M1& literal 0 HcmV?d00001 diff --git a/jero-web/src/assets/progressExit.png b/jero-web/src/assets/progressExit.png new file mode 100644 index 0000000000000000000000000000000000000000..79dcec12a1dc27a13ad77772a6c1e813a891c9f7 GIT binary patch literal 209 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|x;`m|KHe%)!+zwZcC((Dzn%+z4RaFGY%d& zpm6ZSfrQ5EtUNsG5)u+|1_uA^4+_ZN;w)r5#K6YJc1)Rv^Wffy!)XU^C9$>rH%qV- zVb2skd+vw+5d}*J8nE-y6L Date: Sat, 9 Dec 2023 12:53:01 +0800 Subject: [PATCH 64/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E5=BA=93=E6=96=87=E6=A1=A3=E7=BC=96=E5=8F=B7=E3=80=81=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E5=8F=98=E5=8C=96=EF=BC=8C=E8=99=9A=E6=8B=9F=E6=B8=85?= =?UTF-8?q?=E5=8D=95=EF=BC=8C=E6=B3=95=E8=A7=84=E6=B8=85=E5=8D=95=E4=B8=8D?= =?UTF-8?q?=E8=81=94=E5=8A=A8=EF=BC=88=E6=B3=95=E8=A7=84/=E8=AE=A4?= =?UTF-8?q?=E8=AF=81=E6=B8=85=E5=8D=95=E4=B8=AD=E8=8B=A5=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E4=B8=BA=E7=AC=A6=E5=90=88=E6=97=B6=E5=88=99=E7=BC=96=E5=8F=B7?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E4=B8=8D=E5=86=8D=E9=9A=8F=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E5=BA=93=E5=8F=98=E5=8C=96=EF=BC=89=20=E4=B8=8D=E6=B6=89?= =?UTF-8?q?=E5=8F=8A=E4=B9=9F=E9=9C=80=E5=88=A4=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/ProjectCertificationInventoryEOServiceImpl.java | 3 ++- .../service/impl/ProjectLawsInventoryEOServiceImpl.java | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) 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 fa8b3b6ec..5062b405c 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 @@ -1401,7 +1401,8 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl docList = iBussDocumentLibraryEOService.listByIds(standIdList); for (ProjectCertificationInventoryEO data : datas) { //处理编号,认证清单中若状态为符合时则编号标题不再随文档库变化 - if (!data.getFlowStatus().equals(CertificationInventoryFlowStatusEnum.REVIEW_AND_PASS.getValue()) + if ((!data.getFlowStatus().equals(CertificationInventoryFlowStatusEnum.REVIEW_AND_PASS.getValue()) + || !data.getFlowStatus().equals(CertificationInventoryFlowStatusEnum.UNINVOLVED.getValue())) && StringUtils.isNotBlank(data.getBussDocumentLibraryId())) { BussDocumentLibraryEO docObj = null; for (BussDocumentLibraryEO obj : docList) { diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java index 3430e28c8..2effaaaf2 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java @@ -1561,7 +1561,9 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl Date: Sat, 9 Dec 2023 12:54:33 +0800 Subject: [PATCH 65/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=BA=93=E5=B9=B3=E5=8F=B0=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../moudles/addModel.vue | 134 ++++++------------ .../moudles/detilModel.vue | 41 +++++- .../projectNonConformance/moudles/viewImg.vue | 47 ++++++ 3 files changed, 128 insertions(+), 94 deletions(-) create mode 100644 jero-web/src/views/projectManagement/projectNonConformance/moudles/viewImg.vue diff --git a/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue b/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue index 9971a73f8..8101f67a1 100644 --- a/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue +++ b/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue @@ -338,7 +338,8 @@
-
+
@@ -463,47 +464,6 @@
- - - - -
-
- * - - {{$t('progresstracking')}} -
- - - - - - - - -
-
-
-
-
+
@@ -530,6 +491,7 @@ import 'quill/dist/quill.snow.css' import 'quill/dist/quill.bubble.css' import Standardselection from '@/components/Standardselection/index' + import viewImg from './viewImg' import TrackingModel from './TrackingModel' import uploadFile from '@/components/uploadFile/file' import { quillEditor } from 'vue-quill-editor' @@ -570,7 +532,8 @@ Standardselection, uploadFile, quillEditor, - TrackingModel + TrackingModel, + viewImg }, data() { return { @@ -645,7 +608,6 @@ ] }, visible: false, - visibletrack: false, rulestracking: { progressTracking: [ { @@ -657,9 +619,7 @@ }, formInline: { fileLinkList: [{}], - progressTrackingList: [{ - isDescription: true - }], + progressTrackingList: [], approvalEvidenceLinkList: [{}], dutyTerritory: undefined, projectId: undefined, @@ -755,14 +715,15 @@ this.problemState = this.$t('emptyc') } let time = moment(new Date()).format('YYYY-MM-DD HH:mm:ss') - let text = '

' + ''+this.userInfo().username + ' ' +''+ time +''+ '

' + '

' + this.$t('Problemstate') + this.$t('by') + '\'' + this.problemState + '\'' + this.$t('Changeto') + '\'' + value + '\''+'

' - if (JSON.stringify(this.formInline.progressTrackingList[0]) == '{}' || this.formInline.progressTrackingList[0].progressTracking == '') { - this.formInline.progressTrackingList.forEach((item, index) => { - item.progressTracking = text - }) - return - } - this.formInline.progressTrackingList.push({ progressTracking: text }) + let text = '

' + '' + this.userInfo().username + ' ' + '' + time + '' + '

' + '

' + this.$t('Problemstate') + this.$t('by') + '\'' + this.problemState + '\'' + this.$t('Changeto') + '\'' + value + '\'' + '

' + // if (JSON.stringify(this.formInline.progressTrackingList[0]) == '{}' || this.formInline.progressTrackingList[0].progressTracking == '') { + // this.formInline.progressTrackingList.forEach((item, index) => { + // item.progressTracking = text + // }) + // return + // } + + this.formInline.progressTrackingList.push({ progressTracking: text, isDescription: false }) } }, Standardselectioninput(val) { @@ -802,7 +763,7 @@ this.disabled = false this.formInline = { fileLinkList: [{}], - progressTrackingList: [{}], + progressTrackingList: [], approvalEvidenceLinkList: [{}] } this.isDisplayIndex = true @@ -837,7 +798,7 @@ this.formInline.problemState = undefined } if (this.formInline.progressTrackingList == null) { - this.formInline.progressTrackingList = [{}] + this.formInline.progressTrackingList = [] } if (this.formInline.approvalEvidenceLinkList == null) { this.formInline.approvalEvidenceLinkList = [{}] @@ -871,12 +832,14 @@ TrackingModelForm(row) { let time = moment(new Date()).format('YYYY-MM-DD HH:mm:ss') let text = '

' + '' + this.userInfo().username + '' + '' + time + '' + '

' + row - this.formInline.progressTrackingList.forEach((item, index) => { - if (!item.progressTracking) { - this.formInline.progressTrackingList.splice(0, 1) - } - }) - this.formInline.progressTrackingList.splice(this.index + 1, 1, { progressTracking: text }) + // this.formInline.progressTrackingList.forEach((item, index) => { + // if (!item.progressTracking) { + // this.formInline.progressTrackingList.splice(0, 1) + // } + // }) + this.formInline.progressTrackingList.push({ progressTracking: text, isDescription: false }) + + // this.formInline.progressTrackingList.splice(this.index + 1, 1, { progressTracking: text }) console.log(this.formInline.progressTrackingList) }, addprogresstrackingClick(index) { @@ -890,36 +853,17 @@ }) }, deleteprogresstrackingClick(index, item) { - if (this.formInline.progressTrackingList.length > 1) { - this.formInline.progressTrackingList.splice(index, 1) - } else { - item.progressTracking = '' - } + /* if (this.formInline.progressTrackingList.length > 1) { + + } else { + item.progressTracking = '' + }*/ + this.formInline.progressTrackingList.splice(index, 1) this.formInline = { ...this.formInline } }, handleCancel() { this.visible = false }, - Cancel() { - this.visibletrack = false - this.formInlinetracking = {} - this.$refs.ruleFormtracking.clearValidate() - }, - handleOk() { - let time = moment(new Date()).format('YYYY-MM-DD HH:mm:ss') - this.$refs.ruleFormtracking.validate(valid => { - if (valid) { - let text = this.userInfo().username + ' ' + time + ' ' + this.formInlinetracking.progressTracking - this.formInline.progressTrackingList.forEach((item, index) => { - if (!item.progressTracking) { - this.formInline.progressTrackingList.splice(0, 1) - } - }) - this.formInline.progressTrackingList.splice(this.index + 1, 1, { progressTracking: text }) - this.visibletrack = false - } - }) - }, handleSubmit() { this.$refs.ruleForm.validate(valid => { if (valid) { @@ -1105,6 +1049,11 @@ getAction('/project/projectLibraryBase/getPlatform', { platform: platform }).then((res) => { this.relatedItemsList = res || [] }) + }, + progressTrackingOpenClick(e) { + if (e.target.localName == 'img') { + this.$refs.viewImgRef.getData(e.target.currentSrc) + } } } } @@ -1349,12 +1298,17 @@ ::v-deep .text-box-index-text .text-class { background: #fff !important; } - .progressTrackingListClass{ + + .progressTrackingListClass { width: 100%; display: flex; margin-bottom: 16px } - .progressTrackingListClass:last-child{ + + .progressTrackingListClass:last-child { margin-bottom: 0; } + ::v-deep .text-box-index-text-top img { + max-width: 100% !important; + } \ No newline at end of file diff --git a/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue b/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue index 00aac233c..5ccaad0e6 100644 --- a/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue +++ b/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue @@ -131,8 +131,12 @@ {{$t('descriptions')}}
-
+
+
+ +
@@ -164,7 +168,8 @@
-
+
@@ -210,17 +215,21 @@ {{$t('close')}}
+
+ + \ No newline at end of file From eac1e31c687f1ec3cc78df8af794c32e4a1c02fe Mon Sep 17 00:00:00 2001 From: gaosong Date: Wed, 13 Dec 2023 16:24:42 +0800 Subject: [PATCH 66/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=A8=A1=E7=89=88=E6=B7=BB=E5=8A=A0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../parameterlist/components/addModel.vue | 486 +++++++++--------- 1 file changed, 254 insertions(+), 232 deletions(-) diff --git a/jero-web/src/views/parameter/parameterlist/components/addModel.vue b/jero-web/src/views/parameter/parameterlist/components/addModel.vue index cb0288e00..d56be0d6e 100644 --- a/jero-web/src/views/parameter/parameterlist/components/addModel.vue +++ b/jero-web/src/views/parameter/parameterlist/components/addModel.vue @@ -15,15 +15,15 @@
- * - {{$t('NNiONumber')}} + * + {{ $t('NNiONumber') }}
+ :placeholder="$t('PleaseEnter')+$t('NNiONumber')" />
@@ -31,14 +31,14 @@
* - {{$t('NRequired')}} + {{ $t('NRequired') }}
- {{$t('yes')}} + :placeholder="$t('PleaseSelect')+$t('NRequired')" v-model="formInline.isMust"> + {{ $t('yes') }} - {{$t('notOnlyRz')}} + {{ $t('notOnlyRz') }} @@ -49,51 +49,52 @@
- * - {{$t('Paraname')}} + * + {{ $t('Paraname') }}
+ :placeholder="$t('PleaseEnter')+$t('Paraname')" />
- - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + +
* - {{$t('NareaOfResponsibility')}} + {{ $t('NareaOfResponsibility') }}
+ :triggerChange="false" :dictCode="'duty_territory'" />
@@ -102,16 +103,16 @@
- * - {{$t('Parabatch')}} + * + {{ $t('Parabatch') }}
+ :triggerChange="false" :dictCode="'params_batch'" />
@@ -122,47 +123,47 @@
{{$t('NParameterDescription')}} + :title="$t('NParameterDescription')">{{ $t('NParameterDescription') }}
+ :placeholder="$t('PleaseEnter')+$t('NParameterDescription')" />
- - + +
- * - {{$t('NcertificationCategory')}} + * + {{ $t('NcertificationCategory') }}
+ @change="Onchange" + v-on:changelabel="Onchangelabel" + :disabled="disabled" + :placeholder="$t('PleaseSelect')+$t('NcertificationCategory')" + :type="'checkbox'" + :triggerChange="false" :dictCode="'cert_category'" />
- +
- * - {{$t('NcontrolType')}} + * + {{ $t('NcontrolType') }}
- - + +
* - {{$t('NcontrolVerification')}} + {{ $t('NcontrolVerification') }}
+ :placeholder="$t('PleaseSelect')+$t('NcontrolVerification')" allowClear + v-model="formInline.controlVerify"> {{ item.label }} @@ -202,7 +206,7 @@
* {{$t('DefaultValue')}} + :title="$t('DefaultValue')">{{ $t('DefaultValue') }}
+ :placeholder="$t('PleaseEnter')+$t('DefaultValue')" />
- + - +
- * - {{$t('NcontrolAlternatives')}} + * + {{ $t('NcontrolAlternatives') }}
+ :placeholder="$t('PleaseEnter')+$t('NcontrolAlternatives')" />
- - + +
{{$t('NattachmentTemplate')}} + :title="$t('NattachmentTemplate')">{{ $t('NattachmentTemplate') }}
- {{ (formInline.fileTemplateConnectId === 'null' || formInline.fileTemplateConnectId === '' || - formInline.fileTemplateConnectId == null) ? $t('clickUpload') : $t('viewUploadedFiles')}} + {{ (formInline.fileTemplateConnectId === 'null' || formInline.fileTemplateConnectId === '' || + formInline.fileTemplateConnectId == null) ? $t('clickUpload') : $t('viewUploadedFiles') }}
- - - + + + - +
- * - {{$t('ParameterNo')}} + * + {{ $t('ParameterNo') }}
+ :placeholder="$t('PleaseEnter')+$t('ParameterNo')" />
@@ -278,13 +285,13 @@
* - {{$t('NParameterName')}} + {{ $t('NParameterName') }}
+ :placeholder="$t('PleaseEnter')+$t('NParameterName')" />
@@ -294,21 +301,21 @@
{{$t('NParameterDescription')}} + :title="$t('NParameterDescription')">{{ $t('NParameterDescription') }}
+ :placeholder="$t('PleaseEnter')+$t('NParameterDescription')" />
- + @@ -316,8 +323,9 @@
- {{$t('cancel')}} - {{$t('submit')}} + {{ $t('cancel') }} + {{ $t('submit') }} +
@@ -328,6 +336,7 @@ import PersonnelSelection from '@/components/PersonnelSelection/index' import { getAction, postAction, downloadFile, putAction } from '@/api/manage' import uploadFileChange from '@/components/uploadFileChange/file' + export default { name: 'addModel', components: { @@ -335,11 +344,11 @@ export default { PersonnelSelection }, props: { - url: { - type: Object, - default: {}, - require: true - }, + url: { + type: Object, + default: {}, + require: true + }, certCategoryParamsInfoEOListItem: { type: Array, default: [], @@ -349,39 +358,39 @@ export default { data() { return { controlType: [ // 控件类型 - {value:'1', label: this.$t('Ntext') }, - {value:'2', label: this.$t('NDropdownradio') }, - {value:'3', label: this.$t('NDropdownmultipleselection') }, - {value:'4', label: this.$t('Nenclosure') }, - {value:'5', label: this.$t('Atext') }, - {value:'6', label: this.$t('Btext') }, - {value:'7', label: this.$t('Ctext') }, - {value:'8', label: this.$t('Dtext') }, - {value:'9', label: this.$t('Etext') }, - {value:'10', label: this.$t('Ftext') }, - {value:'11', label: this.$t('Gtext') }, + { value: '1', label: this.$t('Ntext') }, + { value: '2', label: this.$t('NDropdownradio') }, + { value: '3', label: this.$t('NDropdownmultipleselection') }, + { value: '4', label: this.$t('Nenclosure') }, + { value: '5', label: this.$t('Atext') }, + { value: '6', label: this.$t('Btext') }, + { value: '7', label: this.$t('Ctext') }, + { value: '8', label: this.$t('Dtext') }, + { value: '9', label: this.$t('Etext') }, + { value: '10', label: this.$t('Ftext') }, + { value: '11', label: this.$t('Gtext') } ], controlVerification: [ // 控件校验 - {value:'1', label: this.$t('Nnothing') }, - {value:'2', label: this.$t('Nchinese') }, - {value:'3', label: this.$t('NpositiveInteger') }, - {value:'4', label: this.$t('NPositivefloatingpointnumber') }, - {value:'5', label: this.$t('NintegerOrDecimal')}, - {value:'6', label: this.$t('NOneDecimalPlace') }, - {value:'7', label: this.$t('NTwoDecimalplaces') }, - {value:'8', label: this.$t('NThreedecimalplaces') }, - {value:'9', label: this.$t('NFourDecimalplaces') }, + { value: '1', label: this.$t('Nnothing') }, + { value: '2', label: this.$t('Nchinese') }, + { value: '3', label: this.$t('NpositiveInteger') }, + { value: '4', label: this.$t('NPositivefloatingpointnumber') }, + { value: '5', label: this.$t('NintegerOrDecimal') }, + { value: '6', label: this.$t('NOneDecimalPlace') }, + { value: '7', label: this.$t('NTwoDecimalplaces') }, + { value: '8', label: this.$t('NThreedecimalplaces') }, + { value: '9', label: this.$t('NFourDecimalplaces') } ], CategoryTreeList: [], // 技术领域 certCategoryParamsInfoEOList: [], // 认证类别得tab栏 formInline: {}, confirmLoading: false, - required:true, + required: true, visible: false, rules: { - nioNumber:[ - { required: true, message: this.$t('PleaseEnter')+this.$t('NiONumber'), trigger: 'blur' }, - { min:1, max: 20, message: this.$t('cantExeed')+'20'+this.$t('characters'), trigger: 'blur' }, + nioNumber: [ + { required: true, message: this.$t('PleaseEnter') + this.$t('NiONumber'), trigger: 'blur' }, + { min: 1, max: 20, message: this.$t('cantExeed') + '20' + this.$t('characters'), trigger: 'blur' }, { pattern: /^[0-9a-zA-Z-/ ]{1,}$/, message: this.$t('onlyThree'), @@ -392,57 +401,57 @@ export default { // { required: true, message: this.$t('pleaseSelect')+this.$t('certificationCategory'), type: 'array', trigger: 'change' }, ], isMust: [ - { required: true, message: this.$t('PleaseEnter')+this.$t('Required'), trigger: 'change' }, + { required: true, message: this.$t('PleaseEnter') + this.$t('Required'), trigger: 'change' } ], paramsName: [ - { required: true, message: this.$t('pleaseSelect')+this.$t('Paraname'), trigger: 'blur' }, - { min:1, max: 500, message: this.$t('cantExeed')+'500'+this.$t('characters'), trigger: 'blur' }, + { required: true, message: this.$t('pleaseSelect') + this.$t('Paraname'), trigger: 'blur' }, + { min: 1, max: 500, message: this.$t('cantExeed') + '500' + this.$t('characters'), trigger: 'blur' } ], technologyTerritory: [ - { required: true, message: this.$t('pleaseSelect')+this.$t('technicalField'), trigger: 'change' }, + { required: true, message: this.$t('pleaseSelect') + this.$t('technicalField'), trigger: 'change' } ], paramsBatch: [ - { required: true, message: this.$t('PleaseSelect')+this.$t('parameterBatch'), trigger: 'change' }, + { required: true, message: this.$t('PleaseSelect') + this.$t('parameterBatch'), trigger: 'change' } ], dutyTerritory: [ - { required: true, message: this.$t('PleaseSelect')+this.$t('areaOfResponsibility'), trigger: 'change' }, + { required: true, message: this.$t('PleaseSelect') + this.$t('areaOfResponsibility'), trigger: 'change' } ], description: [ - { min:1, max: 2000, message: this.$t('cantExeed')+'2000'+this.$t('characters'), trigger: 'blur' }, + { min: 1, max: 2000, message: this.$t('cantExeed') + '2000' + this.$t('characters'), trigger: 'blur' } ], controlType: [ - { required: true, message: this.$t('pleaseSelect')+this.$t('controlType'), trigger: 'change' }, + { required: true, message: this.$t('pleaseSelect') + this.$t('controlType'), trigger: 'change' } ], controlVerify: [ - { required: true, message: this.$t('PleaseEnter')+this.$t('controlVerification'), trigger: 'change' }, + { required: true, message: this.$t('PleaseEnter') + this.$t('controlVerification'), trigger: 'change' } ], controlValues: [ - { required: true, message: this.$t('PleaseEnter')+this.$t('controlAlternatives'), trigger: 'blur' }, - { min:1, max: 500, message: this.$t('cantExeed')+'500'+this.$t('characters'), trigger: 'blur' }, + { required: true, message: this.$t('PleaseEnter') + this.$t('controlAlternatives'), trigger: 'blur' }, + { min: 1, max: 500, message: this.$t('cantExeed') + '500' + this.$t('characters'), trigger: 'blur' }, { validator: this.test } ], titleDefaultValue: [ - { required: true, message: this.$t('PleaseEnter')+this.$t('DefaultValue'), trigger: 'blur' }, - { min:1, max: 100, message: this.$t('cantExeed')+'100'+this.$t('characters'), trigger: 'blur' }, - ], + { required: true, message: this.$t('PleaseEnter') + this.$t('DefaultValue'), trigger: 'blur' }, + { min: 1, max: 100, message: this.$t('cantExeed') + '100' + this.$t('characters'), trigger: 'blur' } + ] }, rulesItem: { paramsNumber: [ - { required: true, message: this.$t('PleaseEnter')+this.$t('standard'), trigger: 'change' } + { required: true, message: this.$t('PleaseEnter') + this.$t('standard'), trigger: 'change' } ] }, disabled: false, projectNameList: [], title: '', - cut:'', + cut: '', stateOne: '', - contentList : [], + contentList: [], contentListed: [], // 编辑 contentList 所带出来的数据 SelectChangelabel: false, // 控件校验 inputChangelabel: false, // 控件备选值校验 buttonChangelabel: false, // 模板校验 contentListStart: [], // 认证类别编辑 - flag: 1, // 判断师新增,编辑 默认新增 + flag: 1 // 判断师新增,编辑 默认新增 } }, mounted() { @@ -466,7 +475,7 @@ export default { } }, getcontentListedEdit() { - getAction('sys/dict/getDictItems/cert_category', { }).then((res) => { + getAction('sys/dict/getDictItems/cert_category', {}).then((res) => { if (res.success) { let tt = [] res.result.forEach((item) => { @@ -474,17 +483,17 @@ export default { certCategory: item.value, paramsNumber: item.paramsNumber, // 编号 paramsName: item.paramsName, //参数名称 - description: item.description, // 描述 + description: item.description // 描述 } - tt.push(Object.assign(obj,item)) + tt.push(Object.assign(obj, item)) }) this.contentListStart = tt console.log(this.contentListStart) } }) }, - controlTypeChange(value){ - this.$refs.ruleForm.clearValidate(['controlVerify','titleDefaultValue','controlValues']) + controlTypeChange(value) { + this.$refs.ruleForm.clearValidate(['controlVerify', 'titleDefaultValue', 'controlValues']) // if(value == 11){ // this.required = false // }else { @@ -515,20 +524,20 @@ export default { }, Onchangelabel(val) { let _tt = [] - if(this.flag == 1) { - if(this.cut == 'cn'){ + if (this.flag == 1) { + if (this.cut == 'cn') { this.contentListStart.forEach((itemVal) => { val.forEach((item) => { - if(itemVal.value === item.value) { + if (itemVal.value === item.value) { itemVal.cut = 'cn' _tt.push(itemVal) } }) }) - }else { + } else { this.contentListStart.forEach((itemVal) => { val.forEach((item) => { - if(itemVal.value === item.value) { + if (itemVal.value === item.value) { itemVal.cut = 'en' _tt.push(itemVal) } @@ -540,10 +549,10 @@ export default { } else { let _mm = [] - if(this.cut == 'cn'){ + if (this.cut == 'cn') { this.contentListStart.forEach((itemVal) => { val.forEach((item) => { - if(itemVal.value === item.value) { + if (itemVal.value === item.value) { itemVal.cut = 'cn' _mm.push(itemVal) } @@ -552,20 +561,20 @@ export default { _mm.forEach((item) => { this.contentListed.forEach((itemVal) => { // 原编辑的数据 - if(itemVal.certCategory === item.value) { - item.textVal= itemVal.textVal, - item.certCategory= itemVal.certCategory, - item.paramsNumber= itemVal.paramsNumber, // 编号 - item.paramsName= itemVal.paramsName, //参数名称 - item.cut= itemVal.cut, //中英文标识 - item.description= itemVal.description // 描述 + if (itemVal.certCategory === item.value) { + item.textVal = itemVal.textVal, + item.certCategory = itemVal.certCategory, + item.paramsNumber = itemVal.paramsNumber, // 编号 + item.paramsName = itemVal.paramsName, //参数名称 + item.cut = itemVal.cut, //中英文标识 + item.description = itemVal.description // 描述 } }) }) - }else { + } else { this.contentListStart.forEach((itemVal) => { val.forEach((item) => { - if(itemVal.value === item.value) { + if (itemVal.value === item.value) { itemVal.cut = 'en' _mm.push(itemVal) } @@ -574,13 +583,13 @@ export default { _mm.forEach((item) => { this.contentListed.forEach((itemVal) => { // 原编辑的数据 - if(itemVal.certCategory === item.value) { - item.textVal= itemVal.textVal, - item.certCategory= itemVal.certCategory, - item.paramsNumber= itemVal.paramsNumber, // 编号 - item.paramsName= itemVal.paramsName, //参数名称 - item.cut= itemVal.cut, //中英文标识 - item.description= itemVal.description // 描述 + if (itemVal.certCategory === item.value) { + item.textVal = itemVal.textVal, + item.certCategory = itemVal.certCategory, + item.paramsNumber = itemVal.paramsNumber, // 编号 + item.paramsName = itemVal.paramsName, //参数名称 + item.cut = itemVal.cut, //中英文标识 + item.description = itemVal.description // 描述 } }) }) @@ -594,23 +603,24 @@ export default { let arr = [] let newArray = [] this.arr = [] - this.contentListStart.forEach((item,index) => { + this.contentListStart.forEach((item, index) => { this.arr.push(item.certCategory) }) console.log(this.arr) this.tabList = val.split(',') this.arr.forEach(item => { if (!this.tabList.includes(item)) { - newArray.push(item); - this.contentList.forEach((item1,index1) => { - if(item == item1.certCategory){ - item1.paramsNumber= '', // 编号 - item1.paramsName= '', //参数名称 - item1.description= '' // 描述 + newArray.push(item) + this.contentList.forEach((item1, index1) => { + if (item == item1.certCategory) { + item1.paramsNumber = '', // 编号 + item1.paramsName = '', //参数名称 + item1.description = '' // 描述 } }) console.log(this.contentList) - }; + } + }) }, @@ -618,7 +628,7 @@ export default { let value = r.target.value r.target.value = value.replace(/[!!#]/g, '') this.formInline.controlValues = r.target.value - this.formInline = {...this.formInline} + this.formInline = { ...this.formInline } }, getSysCategoryTree() { getAction('/sys/category/getSysCategoryTree', {}).then((res) => { @@ -647,7 +657,7 @@ export default { // 获取认证类别 this.getcontentListedEdit() this.formInline.isMust = '0' - this.formInline = {...this.formInline} + this.formInline = { ...this.formInline } this.contentListed = [] // 防止编辑数据带出 this.contentList = [] this.$nextTick(() => { @@ -674,19 +684,19 @@ export default { this.flag = 0 // 获取认证类别 this.getcontentListedEdit() - value.certCategoryParamsInfoEOList.map((item, index) => { - if(this.cut == 'cn'){ - item.cut = 'cn' - this.contentListed.push(item) - item.text = item.certCategory_dictText - }else { - item.cut = 'en' - this.contentListed.push(item) - item.textEn = item.certCategory_dictText - } + value.certCategoryParamsInfoEOList.map((item, index) => { + if (this.cut == 'cn') { + item.cut = 'cn' + this.contentListed.push(item) + item.text = item.certCategory_dictText + } else { + item.cut = 'en' + this.contentListed.push(item) + item.textEn = item.certCategory_dictText + } - }) - this.contentList = this.contentListed + }) + this.contentList = this.contentListed console.log(this.contentList) }, viewModel(value) { @@ -710,11 +720,11 @@ export default { // 获取认证类别 this.getcontentListedEdit() value.certCategoryParamsInfoEOList.map((item, index) => { - if(this.cut == 'cn'){ + if (this.cut == 'cn') { item.cut = 'cn' this.contentListed.push(item) item.text = item.certCategory_dictText - }else { + } else { item.cut = 'en' this.contentListed.push(item) item.textEn = item.certCategory_dictText @@ -729,49 +739,49 @@ export default { this.$refs['ruleForm'].resetFields() }, handleSubmit() { - // && this.formInline.controlType != 11 - if(this.formInline.certCategory == undefined ) { - this.$message.warning(this.$t('certificationCategory')+this.$t('cannotEmpty')) + // && this.formInline.controlType != 11 + if (this.formInline.certCategory == undefined) { + this.$message.warning(this.$t('certificationCategory') + this.$t('cannotEmpty')) return } let falg = 1 - this.contentList.forEach((item,index) => { - let reg = /^[0-9a-zA-Z-/. ]{1,}$/ - // 编号的限制 - if(item.paramsNumber == '' || item.paramsNumber === undefined ) { - this.$message.warning(this.$t('standard')+this.$t('cannotEmpty')) - falg = 0 - return - } else if(item.paramsNumber.length > 20){ - this.$message.warning(this.$t('standard')+this.$t('cantExeed')+'20'+this.$t('Characters')) - falg = 0 - return - } else if(item.paramsNumber.match(reg) === null) { - this.$message.warning(this.$t('standard')+this.$t('onlyThree')) + this.contentList.forEach((item, index) => { + let reg = /^[0-9a-zA-Z-/. ]{1,}$/ + // 编号的限制 + if (item.paramsNumber == '' || item.paramsNumber === undefined) { + this.$message.warning(this.$t('standard') + this.$t('cannotEmpty')) + falg = 0 + return + } else if (item.paramsNumber.length > 20) { + this.$message.warning(this.$t('standard') + this.$t('cantExeed') + '20' + this.$t('Characters')) + falg = 0 + return + } else if (item.paramsNumber.match(reg) === null) { + this.$message.warning(this.$t('standard') + this.$t('onlyThree')) + falg = 0 + return + } + // 参数名称的限制 + if (item.paramsNumber == '' || item.paramsNumber === undefined) { + this.$message.warning(this.$t('ParameterName') + this.$t('cannotEmpty')) + falg = 0 + return + } else if (item.paramsName.length > 500) { + this.$message.warning(this.$t('ParameterName') + this.$t('cantExeed') + '500' + this.$t('Characters')) + falg = 0 + return + } + if (item.description !== undefined && item.description !== null) { + // 参数说明的限制 + if (item.description.length > 2000) { + this.$message.warning(this.$t('ParameterDescription') + this.$t('cantExeed') + '2000' + this.$t('Characters')) falg = 0 return } - // 参数名称的限制 - if(item.paramsNumber == '' || item.paramsNumber === undefined) { - this.$message.warning(this.$t('ParameterName')+this.$t('cannotEmpty')) - falg = 0 - return - } else if(item.paramsName.length > 500){ - this.$message.warning(this.$t('ParameterName')+this.$t('cantExeed')+'500'+this.$t('Characters')) - falg = 0 - return - } - if(item.description !== undefined && item.description !== null){ - // 参数说明的限制 - if(item.description.length > 2000){ - this.$message.warning(this.$t('ParameterDescription')+this.$t('cantExeed')+'2000'+this.$t('Characters')) - falg = 0 - return - } - } - }) + } + }) - if(falg === 1) { + if (falg === 1) { this.$refs.ruleForm.validate(valid => { if (valid) { let url = '' @@ -791,6 +801,11 @@ export default { } }) let querycontentList = JSON.parse(JSON.stringify(this.contentList)) + if (querycontentList && querycontentList.length > 0) { + for (let i = 0; i < querycontentList.length; i++) { + delete querycontentList[i].id + } + } query.certCategoryParamsInfoEOList = querycontentList // if(this.formInline.controlType == 11){ // query.certCategoryParamsInfoEOList = [] @@ -824,8 +839,8 @@ export default { this.formInline[value] = id this.formInline = { ...this.formInline } }, - projectNameChange(value){ - }, + projectNameChange(value) { + } } } @@ -833,9 +848,11 @@ export default { .formAdd .ant-form-item-label { width: 130px; } -/deep/.add-input{ - min-height: 95px!important; + +/deep/ .add-input { + min-height: 95px !important; } + .formAdd .ant-form-item-control-wrapper { display: inline-block; width: 100%; @@ -886,9 +903,11 @@ export default { display: flex; /*align-items: center;*/ } -/deep/.ant-form-item-control { + +/deep/ .ant-form-item-control { line-height: 10px; } + .title-text { width: 114px; text-align: right; @@ -908,11 +927,13 @@ export default { height: 38px; width: 100%; } + .itemModel-text { width: calc(100% - 130px); display: inline-block; margin-top: 2px; } + .itemModel { width: calc(100% - 130px); display: inline-block; @@ -938,7 +959,7 @@ export default { position: absolute; bottom: 0; width: 100%; - z-index:100; + z-index: 100; border-top: 1px solid #e8e8e8; padding: 10px 16px; text-align: right; @@ -951,7 +972,8 @@ export default { .ant-input-disabled { color: rgba(0, 0, 0, 0.65) !important; } -.ant-select-disabled{ + +.ant-select-disabled { color: rgba(0, 0, 0, 0.65) !important; } \ No newline at end of file From 0c92219a152f7bdd6eb87a565dda8fb93d0c3216 Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Thu, 14 Dec 2023 16:20:36 +0800 Subject: [PATCH 67/73] =?UTF-8?q?=E9=97=AE=E9=A2=98=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/NcrTrackController.java | 22 +++ .../project/service/INcrTrackService.java | 3 + .../service/impl/NcrTrackServiceImpl.java | 176 ++++++++++++++++++ 3 files changed, 201 insertions(+) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/NcrTrackController.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/NcrTrackController.java index 77aa1c209..dd32a8e9e 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/NcrTrackController.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/NcrTrackController.java @@ -3,7 +3,9 @@ package com.jero.modules.project.controller; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.jero.common.api.vo.Result; import com.jero.common.aspect.annotation.AutoLog; +import com.jero.common.util.PageUtil; import com.jero.modules.dummy.enums.OrderEnum; +import com.jero.modules.project.entity.ProblemManagementEO; import com.jero.modules.project.service.INcrTrackService; import com.jero.modules.project.vo.NcrTrackVO; import io.swagger.annotations.Api; @@ -63,6 +65,26 @@ public class NcrTrackController { return Result.OK(ncrTrackVO.getCut(),pages); } + /** + * 法规清单或者认证清单关联问题管理列表 + * + * @param serialNumber + * @return + */ + @AutoLog(value = "法规清单或者认证清单关联问题管理列表") + @ApiOperation(value="法规清单或者认证清单关联问题管理列表", notes="法规清单或者认证清单关联问题管理列表") + @GetMapping(value = "/queryPageProblem") + public Result queryPageProblem(@RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + String serialNumber, + String cut) { + List pageInfo = iNcrTrackService.queryPageProblem(serialNumber,cut); + //表头排序 +// orderHeader(ncrTrackVO, pageInfo); + Page pages = PageUtil.getPages(pageNo,pageSize,pageInfo); + return Result.OK(cut,pages); + } + private void orderHeader(NcrTrackVO ncrTrackVO, List pageInfo) { String orderBy = ncrTrackVO.getOrderBy(); String orderByField = ncrTrackVO.getOrderByField(); diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/INcrTrackService.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/INcrTrackService.java index 4b476cc2d..2671ea93c 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/INcrTrackService.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/INcrTrackService.java @@ -2,6 +2,7 @@ package com.jero.modules.project.service; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.IService; +import com.jero.modules.project.entity.ProblemManagementEO; import com.jero.modules.project.vo.NcrTrackVO; import javax.servlet.http.HttpServletRequest; @@ -17,6 +18,8 @@ public interface INcrTrackService extends IService { List getPageInfo(NcrTrackVO ncrTrackVO); + List queryPageProblem(String serialNumber, String cut); + Page getPages(Integer currentPage, Integer pageSize, List list); void exportData(HttpServletResponse response, diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/NcrTrackServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/NcrTrackServiceImpl.java index c25c47fb8..2022c9e68 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/NcrTrackServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/NcrTrackServiceImpl.java @@ -388,6 +388,10 @@ public class NcrTrackServiceImpl extends ServiceImpl return trackVOList; } } + public List queryPageProblem(String serialNumber,String cut) { + List problemManagement = getProblemManagement(serialNumber, cut); + return problemManagement; + } private void heartSort(NcrTrackVO ncrTrackVO, List trackVOList) { Collator comparator = Collator.getInstance(Locale.CHINESE); @@ -779,6 +783,178 @@ public class NcrTrackServiceImpl extends ServiceImpl } return ncrTrackVOList; } + private List getProblemManagement(String serialNumber,String cut) { + LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); + queryWrapper.in(BussDocumentLibraryEO::getSerialNumber, serialNumber); + List bussDocumentLibraryEOS = bussDocumentLibraryEOService.list(queryWrapper); + if(ObjectUtils.isEmpty(bussDocumentLibraryEOS)){ + return new ArrayList<>(); + } + //wen4_ti2_lei4_xing2 问题类型 + List problemTypeList = sysDictService.queryDictItemsByCode(DicCodeEnum.PROBLEM_TYPE.getCode()); + + List dictModelListTemp = problemTypeList.stream().filter(e -> "Lessons Learned".equals(e.getText())).collect(Collectors.toList()); + if(ObjectUtils.isEmpty(dictModelListTemp)){ + return new ArrayList<>(); + } + LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); + lambdaQueryWrapper.like(ProblemManagementEO::getLawsId,bussDocumentLibraryEOS.get(0).getId()); + lambdaQueryWrapper.eq(ProblemManagementEO::getProjectType,dictModelListTemp.get(0).getValue()); + lambdaQueryWrapper.orderByDesc(ProblemManagementEO::getCreateTime); + List managementEOList = problemManagementEOService.list(lambdaQueryWrapper); + //法规 + List lawsIdList = managementEOList.stream() + .filter(e->StringUtils.isNotBlank(e.getLawsId())).map(ProblemManagementEO::getLawsId).collect(Collectors.toList()); + //项目 + List projectIdList = managementEOList.stream() + .filter(e->StringUtils.isNotBlank(e.getProjectId())).map(ProblemManagementEO::getProjectId).collect(Collectors.toList()); + //相关文件 + List fileList = managementEOList.stream() + .filter(e -> StringUtils.isNotBlank(e.getFile())).map(ProblemManagementEO::getFile).collect(Collectors.toList()); + //审批证据 + List approvalEvidenceList = managementEOList.stream() + .filter(e -> StringUtils.isNotBlank(e.getApprovalEvidence())).map(ProblemManagementEO::getApprovalEvidence).collect(Collectors.toList()); + List connectList = new ArrayList<>(); + if(!fileList.isEmpty()){ + connectList.addAll(fileList); + } + if(!approvalEvidenceList.isEmpty()){ + connectList.addAll(approvalEvidenceList); + } + List fileInfoList = new ArrayList<>(); + if(!connectList.isEmpty()){ + fileInfoList = iOSSFileService.getFileInfosByConnectId(StringUtils.join(connectList,",")); + } + + List documentLibraryEOList = new ArrayList<>(); + if(!lawsIdList.isEmpty()){ + Set lawIdSet = new HashSet<>(); + for (String lawIds : lawsIdList) { + lawIdSet.addAll(Arrays.asList(lawIds.split(","))); + } + if(!lawIdSet.isEmpty()){ + LambdaQueryWrapper wrapper = new LambdaQueryWrapper<>(); + wrapper.in(BussDocumentLibraryEO::getId, lawIdSet); + documentLibraryEOList = bussDocumentLibraryEOService.list(wrapper); + } + } + + List projectLibraryBaseList = new ArrayList<>(); + if(!projectIdList.isEmpty()){ + Set projectIdSet = new HashSet<>(); + for (String projectIds : projectIdList) { + projectIdSet.addAll(Arrays.asList(projectIds.split(","))); + } + if(!projectIdSet.isEmpty()){ + projectLibraryBaseList = problemManagementEOMapper.queryByIds(StringUtils.join(projectIdSet,",")); + } + } + + List problemPriorityList = sysDictService.queryDictItemsByCode(DicCodeEnum.PROBLEM_PRIORITY.getCode()); + for (ProblemManagementEO problemManagementEO : managementEOList) { + //问题类型 + List dictModelList = problemTypeList.stream().filter(e -> e.getValue().equals(problemManagementEO.getProblemType())).collect(Collectors.toList()); + List dictModelListPp = problemPriorityList.stream().filter(e -> e.getValue().equals(problemManagementEO.getProblemPriority())).collect(Collectors.toList()); + + if(!dictModelList.isEmpty()){ + if(CutEnum.CN.getValue().equals(cut)){ + problemManagementEO.setProblemType_dictText(dictModelList.get(0).getText()); + }else{ + problemManagementEO.setProblemType_dictText(dictModelList.get(0).getTextEn()); + } + } + if(!dictModelListPp.isEmpty()){ + if(CutEnum.CN.getValue().equals(cut)){ + problemManagementEO.setProblemPriority_dictText(dictModelListPp.get(0).getText()); + }else{ + problemManagementEO.setProblemPriority_dictText(dictModelListPp.get(0).getTextEn()); + } + } + + //相关法规 + if(StringUtils.isNotBlank(problemManagementEO.getLawsId())){ + if(!documentLibraryEOList.isEmpty()){ + List documentLibraryEOListTemp = documentLibraryEOList.stream() + .filter(e->StringUtils.isNotBlank(problemManagementEO.getLawsId()) + && problemManagementEO.getLawsId().contains(e.getId())).collect(Collectors.toList()); + List serialNumberList = documentLibraryEOListTemp.stream().map(BussDocumentLibraryEO::getSerialNumber).collect(Collectors.toList()); + problemManagementEO.setLawsName(com.jero.modules.system.util.StringUtils.join(serialNumberList,",")); + } + } + //相关项目 + if(StringUtils.isNotBlank(problemManagementEO.getProjectId())){ + List projectLibraryBaseListTemp = projectLibraryBaseList.stream() + .filter(e->StringUtils.isNotBlank(problemManagementEO.getProjectId()) + && problemManagementEO.getProjectId().contains(e.getId())).collect(Collectors.toList()); + //目标市场数据字典 + List targetMarketList = sysDictService.queryDictItemsByCode(DicCodeEnum.REGION.getCode()); + List projectNameList = new ArrayList<>(); + for (ProjectLibraryBase projectLibraryBase : projectLibraryBaseListTemp) { + //目标市场 + String targetMarket = problemManagementEOService.getMarket(cut, targetMarketList, projectLibraryBase); + //主项目的版本号 + String projectVersion = ""; + if(com.jero.modules.system.util.StringUtils.isBlank(projectLibraryBase.getParentId())){ + projectVersion = "00"; + }else{ + projectVersion = projectLibraryBase.getProjectVersion(); + } + projectNameList.add(projectLibraryBase.getProjectName() + + "-" + projectLibraryBase.getYearName() + + "-" + targetMarket + +"-"+projectVersion); + } + if(!projectNameList.isEmpty()){ + problemManagementEO.setProjectName(StringUtils.join(projectNameList,",")); + } + } + + //相关文件连接 + if(StringUtils.isNotBlank(problemManagementEO.getFileLink())){ + List list = new ArrayList<>(); + for (String fileLink : problemManagementEO.getFileLink().split(",")) { + ProblemManagementVO problemManagementVO = new ProblemManagementVO(); + problemManagementVO.setFileLink(fileLink); + list.add(problemManagementVO); + } + problemManagementEO.setFileLinkList(list); + } + + //审批证据连接 + if(StringUtils.isNotBlank(problemManagementEO.getApprovalEvidenceLink())){ + List list = new ArrayList<>(); + for (String approvalEvidenceLink : problemManagementEO.getApprovalEvidenceLink().split(",")) { + ProblemManagementVO problemManagementVO = new ProblemManagementVO(); + problemManagementVO.setApprovalEvidenceLink(approvalEvidenceLink); + list.add(problemManagementVO); + } + problemManagementEO.setApprovalEvidenceLinkList(list); + } + //进度追踪 + if(StringUtils.isNotBlank(problemManagementEO.getProgressTracking())){ + List list = new ArrayList<>(); + for (String progressTracking : problemManagementEO.getProgressTracking().split(",")) { + ProblemManagementVO problemManagementVO = new ProblemManagementVO(); + problemManagementVO.setProgressTracking(progressTracking); + list.add(problemManagementVO); + } + problemManagementEO.setProgressTrackingList(list); + } + //相关文件 + if(StringUtils.isNotBlank(problemManagementEO.getFile())){ + List collect = fileInfoList.stream() + .filter(e -> e.getConnectId().equals(problemManagementEO.getFile())).collect(Collectors.toList()); + problemManagementEO.setFileList(collect); + } + //审批证据 + if(StringUtils.isNotBlank(problemManagementEO.getApprovalEvidence())){ + List collect = fileInfoList.stream() + .filter(e -> e.getConnectId().equals(problemManagementEO.getApprovalEvidence())).collect(Collectors.toList()); + problemManagementEO.setApprovalEvidenceFileList(collect); + } + } + return managementEOList; + } private String getMarket(List targetMarketList, NcrTrackVO trackVO,String cut) { //目标市场 From 6b5fffa6398d84105531d69034db4c77680e52d9 Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Fri, 15 Dec 2023 10:48:29 +0800 Subject: [PATCH 68/73] =?UTF-8?q?=E9=97=AE=E9=A2=98=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jero/modules/project/service/impl/NcrTrackServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/NcrTrackServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/NcrTrackServiceImpl.java index 2022c9e68..86b1bc1dc 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/NcrTrackServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/NcrTrackServiceImpl.java @@ -799,7 +799,7 @@ public class NcrTrackServiceImpl extends ServiceImpl } LambdaQueryWrapper lambdaQueryWrapper = new LambdaQueryWrapper<>(); lambdaQueryWrapper.like(ProblemManagementEO::getLawsId,bussDocumentLibraryEOS.get(0).getId()); - lambdaQueryWrapper.eq(ProblemManagementEO::getProjectType,dictModelListTemp.get(0).getValue()); + lambdaQueryWrapper.eq(ProblemManagementEO::getProblemType,dictModelListTemp.get(0).getValue()); lambdaQueryWrapper.orderByDesc(ProblemManagementEO::getCreateTime); List managementEOList = problemManagementEOService.list(lambdaQueryWrapper); //法规 From 3cc1253bbafc2e729516ec243e98a1831e76acf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Fri, 15 Dec 2023 16:10:04 +0800 Subject: [PATCH 69/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=BA=93=E5=B9=B3=E5=8F=B0=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/NcrTrackServiceImpl.java | 7 + jero-web/src/common/lang/en-us.js | 1 + jero-web/src/common/lang/zh-cn.js | 1 + .../experienceReferenceList/index.vue | 147 ++++++++++++++++++ .../components/flowstatusdetial.vue | 19 ++- .../moudles/detilModel.vue | 1 + .../projectStatusBoard/index.vue | 6 + .../components/designCompliance.vue | 11 +- 8 files changed, 184 insertions(+), 9 deletions(-) create mode 100644 jero-web/src/components/experienceReferenceList/index.vue diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/NcrTrackServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/NcrTrackServiceImpl.java index 86b1bc1dc..296b6581b 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/NcrTrackServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/NcrTrackServiceImpl.java @@ -731,6 +731,9 @@ public class NcrTrackServiceImpl extends ServiceImpl problemManagementEO.setProjectName(StringUtils.join(projectNameList,",")); } } + if(StringUtils.isEmpty(problemManagementEO.getProjectName()) && StringUtils.isNotEmpty(problemManagementEO.getProjectId())){ + problemManagementEO.setProjectName(problemManagementEO.getProjectId()); + } //相关文件连接 if(StringUtils.isNotBlank(problemManagementEO.getFileLink())){ @@ -908,6 +911,10 @@ public class NcrTrackServiceImpl extends ServiceImpl problemManagementEO.setProjectName(StringUtils.join(projectNameList,",")); } } + if(StringUtils.isEmpty(problemManagementEO.getProjectName()) && StringUtils.isNotEmpty(problemManagementEO.getProjectId())){ + problemManagementEO.setProjectName(problemManagementEO.getProjectId()); + } + //相关文件连接 if(StringUtils.isNotBlank(problemManagementEO.getFileLink())){ diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index 56b4c3010..c07f2063a 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -2035,4 +2035,5 @@ module.exports = { interfacePerson: 'Eng. Interface', regulationEngineerInitiateProcess: 'Regulation Engineer Initiate Process', parameterCollectionDescription:'In the extension parameter collection list, the data highlighted in red represents the deleted parameters after template update, the data highlighted in yellow represents the changed parameters after template update, and for the newly added parameters after template update, homo engineer should find in "More-Add" and add them to the parameter collection list.', + experienceReference:'Experience reference', } \ 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 cd277cc2b..eb71f41de 100644 --- a/jero-web/src/common/lang/zh-cn.js +++ b/jero-web/src/common/lang/zh-cn.js @@ -3769,4 +3769,5 @@ module.exports = { interfacePerson:'接口人', regulationEngineerInitiateProcess:'法规工程师发起流程', parameterCollectionDescription:'变更扩展参数收集清单中,标红数据为模板更新后被删除参数,标黄数据为模板更新后变更参数,模板更新新增参数请认证工程师在“更多-添加”中查阅并添加至参数收集清单中。', + experienceReference:'经验参考', } \ No newline at end of file diff --git a/jero-web/src/components/experienceReferenceList/index.vue b/jero-web/src/components/experienceReferenceList/index.vue new file mode 100644 index 000000000..66e441627 --- /dev/null +++ b/jero-web/src/components/experienceReferenceList/index.vue @@ -0,0 +1,147 @@ + + + + + \ No newline at end of file diff --git a/jero-web/src/views/projectManagement/components/flowstatusdetial.vue b/jero-web/src/views/projectManagement/components/flowstatusdetial.vue index 366871a62..d6bde4594 100644 --- a/jero-web/src/views/projectManagement/components/flowstatusdetial.vue +++ b/jero-web/src/views/projectManagement/components/flowstatusdetial.vue @@ -48,7 +48,8 @@
-
+ +
- + {{flag == 'design'?record.designFlowStatusName : record.verifyFlowStatusName}} @@ -198,12 +200,14 @@ import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header' import designCompliance from '../../toDoCenter/projectRegulationTasks/components/designCompliance' import { mapGetters } from 'vuex' + import experienceReferenceList from '@/components/experienceReferenceList/index' export default { name: 'addModel', components: { uploadFile, - designCompliance + designCompliance, + experienceReferenceList }, mixins: [ResizeHeader, ResizeColumnProvide], data() { @@ -281,7 +285,7 @@ ellipsis: true, width: 120, scopedSlots: { customRender: 'ProcessStatus' } - }, + } ], loading: false, visible: false, @@ -320,6 +324,9 @@ this.flag = name == this.$t('designComplianceProcess') ? 'design' : 'verify' this.visible = true this.confirmLoading = true + this.$nextTick(() => { + this.$refs.experienceReferenceListRef.getData(row.serialNumber) + }) getAction('/project/projectLawsInventoryEO/queryPlatformList', { lawsInventoryId: row.id, flowFlag: this.flag @@ -350,7 +357,7 @@ down(id, name) { downloadFile('/sys/common/downLoadFile', name, { id: id }) }, - processStatusClick(row, name){ + processStatusClick(row, name) { let query = {} let TaskKey = '' if (name == this.$t('designComplianceProcess')) { @@ -411,7 +418,7 @@ } } this.$refs.designComplianceRef.getList(JSON.parse(JSON.stringify(query)), name) - }, + } } } diff --git a/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue b/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue index 5ccaad0e6..82aef2931 100644 --- a/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue +++ b/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue @@ -588,6 +588,7 @@ } .itemModel-text-box { + width: 100%; white-space: pre-wrap; height: 200px; display: inline-block; diff --git a/jero-web/src/views/projectManagement/projectStatusBoard/index.vue b/jero-web/src/views/projectManagement/projectStatusBoard/index.vue index d4d1345ad..67e121cec 100644 --- a/jero-web/src/views/projectManagement/projectStatusBoard/index.vue +++ b/jero-web/src/views/projectManagement/projectStatusBoard/index.vue @@ -121,6 +121,9 @@ +
-
@@ -76,6 +76,7 @@ import reviewedByThePersonInCharge from './reviewedByThePersonInCharge' import circulationHistory from './circulationHistory' import referenceDeliverablesList from './referenceDeliverablesList' + import experienceReferenceList from '@/components/experienceReferenceList/index' import { getAction, postAction, deleteAction, downloadFile, putAction } from '@/api/manage' import { mapGetters } from 'vuex' @@ -88,7 +89,8 @@ reviewedByThePersonInCharge, footerProcess, circulationHistory, - referenceDeliverablesList + referenceDeliverablesList, + experienceReferenceList }, data() { return { @@ -295,9 +297,12 @@ getAction(this.url.queryProjectLawsInventoryInfoById, query).then((res) => { if (res.success) { this.queryProject = res.result[0] || {} - if(this.queryData.platform){ + if (this.queryData.platform) { this.queryProject.platform = this.queryData.platform } + this.$nextTick(() => { + this.$refs.experienceReferenceListRef.getData(this.queryProject.serialNumber) + }) // if (this.queryData.TaskKey == 'zrrqr' || this.queryData.TaskKey == 'dezrrqr') { // this.queryProject.endTime = this.queryData.endTime // } From f8206de114bcecd216be6beae864c850bc911087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Fri, 15 Dec 2023 16:15:02 +0800 Subject: [PATCH 70/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=BA=93=E5=B9=B3=E5=8F=B0=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/designCompliance.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/jero-web/src/views/toDoCenter/projectRegulationTasks/components/designCompliance.vue b/jero-web/src/views/toDoCenter/projectRegulationTasks/components/designCompliance.vue index fbc1e7a36..271c5c668 100644 --- a/jero-web/src/views/toDoCenter/projectRegulationTasks/components/designCompliance.vue +++ b/jero-web/src/views/toDoCenter/projectRegulationTasks/components/designCompliance.vue @@ -32,7 +32,8 @@ :standardContentQuery="queryProject" /> - +
{ - this.$refs.experienceReferenceListRef.getData(this.queryProject.serialNumber) - }) // if (this.queryData.TaskKey == 'zrrqr' || this.queryData.TaskKey == 'dezrrqr') { // this.queryProject.endTime = this.queryData.endTime // } this.loading = false this.isDisplay = true + this.$nextTick(() => { + this.$refs.experienceReferenceListRef.getData(this.queryProject.serialNumber) + }) } else { this.queryProject = {} this.loading = false From bb8e61067f7f3d8c08d223898d03240f7ae16e3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Fri, 15 Dec 2023 16:50:59 +0800 Subject: [PATCH 71/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E7=AC=A6=E5=90=88=E6=80=A7=E7=A1=AE=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/confirmationDrawer.vue | 50 ++++++++++++++++++- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/jero-web/src/views/toDoCenter/projectRegulationTasks/components/confirmationDrawer.vue b/jero-web/src/views/toDoCenter/projectRegulationTasks/components/confirmationDrawer.vue index e0bb51541..e968c17ff 100644 --- a/jero-web/src/views/toDoCenter/projectRegulationTasks/components/confirmationDrawer.vue +++ b/jero-web/src/views/toDoCenter/projectRegulationTasks/components/confirmationDrawer.vue @@ -58,6 +58,7 @@
{{$t('accept')}} @@ -81,6 +82,26 @@ + + +
+
+ * + {{$t('expectedDeliveryTime')}} +
+
+ + + +
+
@@ -140,6 +161,7 @@ props: {}, data() { return { + isDeliveryTime: false, titleName: '', allTitle: '', visible: false, @@ -247,19 +269,40 @@ message: this.$t('feedbackMessage') + this.$t('cannotExceed') + 300 + this.$t('Characters'), trigger: 'blur' } - ] + ], + deliveryTime: [ + { + required: true, + message: this.$t('expectedDeliveryTime') + this.$t('cannotEmpty'), + trigger: 'change' + } + ], }, formInline: {}, uploadName: '' } }, methods: { + dateChange(item) { + this.formInline[item.db_field_name] = this.formInline[item.db_field_name] ? moment(this.formInline[item.db_field_name]).format('YYYY-MM-DD') : '' + this.formInline = { ...this.formInline } + }, + reviewResultChange(value) { + if (value.target.value == 'To be tracked') { + this.isDeliveryTime = true + } else { + this.isDeliveryTime = false + this.formInline.deliveryTime = '' + } + this.formInline = { ...this.formInline } + }, ...mapGetters(['userInfo']), confirmation(data, name) { this.visible = true this.processableList = [] this.noProcessableList = [] this.formInline = {} + this.isDeliveryTime = false data.forEach(res => { res = JSON.parse(res) if (name == this.$t('Taskresponsibilityrecognition')) { @@ -306,6 +349,9 @@ taskIds.push(res.taskId) }) let handlingTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss') + if (this.formInline.flag == 'To be tracked') { + this.formInline.approvalOpinion = this.formInline.approvalOpinion + ';' + this.$t('expectedDeliveryTime') + ':' + this.formInline.deliveryTime + } let query = { ...this.formInline, taskIds: taskIds.join(','), @@ -481,7 +527,7 @@ color: red; } - ::v-deep .ant-drawer-header .ant-drawer-title{ + ::v-deep .ant-drawer-header .ant-drawer-title { font-weight: bold; } \ No newline at end of file From d85fe2d4ac309a049c637780a7a2c467069e4dac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Fri, 15 Dec 2023 17:49:39 +0800 Subject: [PATCH 72/73] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../moudles/addModel.vue | 19 +++- .../moudles/detilModel.vue | 104 +++++++++++++++--- 2 files changed, 104 insertions(+), 19 deletions(-) diff --git a/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue b/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue index 8101f67a1..0a95a7847 100644 --- a/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue +++ b/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue @@ -501,6 +501,7 @@ import { mapGetters } from 'vuex' import axios from 'axios' import Vue from 'vue' + import { ImagePreview } from 'vant' const toolbarOptions = [ ['bold', 'italic', 'underline', 'strike'], // toggled buttons @@ -723,7 +724,7 @@ // return // } - this.formInline.progressTrackingList.push({ progressTracking: text, isDescription: false }) + this.formInline.progressTrackingList.push({ progressTracking: text, isDescription: true }) } }, Standardselectioninput(val) { @@ -799,6 +800,10 @@ } if (this.formInline.progressTrackingList == null) { this.formInline.progressTrackingList = [] + } else { + this.formInline.progressTrackingList.forEach(val => { + val.isDescription = true + }) } if (this.formInline.approvalEvidenceLinkList == null) { this.formInline.approvalEvidenceLinkList = [{}] @@ -837,7 +842,7 @@ // this.formInline.progressTrackingList.splice(0, 1) // } // }) - this.formInline.progressTrackingList.push({ progressTracking: text, isDescription: false }) + this.formInline.progressTrackingList.push({ progressTracking: text, isDescription: true }) // this.formInline.progressTrackingList.splice(this.index + 1, 1, { progressTracking: text }) console.log(this.formInline.progressTrackingList) @@ -1052,7 +1057,14 @@ }, progressTrackingOpenClick(e) { if (e.target.localName == 'img') { - this.$refs.viewImgRef.getData(e.target.currentSrc) + ImagePreview( + { + images: [ + e.target.currentSrc + ], + closeable: true + }) + // this.$refs.viewImgRef.getData(e.target.currentSrc) } } } @@ -1308,6 +1320,7 @@ .progressTrackingListClass:last-child { margin-bottom: 0; } + ::v-deep .text-box-index-text-top img { max-width: 100% !important; } diff --git a/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue b/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue index 82aef2931..1c86b30b9 100644 --- a/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue +++ b/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue @@ -167,9 +167,27 @@ :title="$t('progresstracking')">{{$t('progresstracking')}}
-
-
+
+
+
+
+
+ + {{$t('putAway')}} +
+
+
+
+
+
+
+ + {{$t('open')}} +
+
+
@@ -224,6 +242,7 @@ import moment from 'moment' import viewImg from './viewImg' import { mapGetters } from 'vuex' + import { ImagePreview } from 'vant' export default { name: 'fillAdd', @@ -280,7 +299,7 @@ }, formInline: { fileLinkList: [{}], - progressTrackingList: [{}], + progressTrackingList: [], approvalEvidenceLinkList: [{}], dutyTerritory: undefined, projectId: undefined, @@ -362,6 +381,14 @@ } else if (row.projectType == 'numberPlatform' || row.projectType == 'carPlatform') { this.getPlatform(row.projectType) } + if (this.formInline.progressTrackingList && this.formInline.progressTrackingList.length > 0) { + this.formInline.progressTrackingList.forEach(res => { + res.isDescription = true + }) + + } else { + this.formInline.progressTrackingList = [] + } // if (this.formInline.dutyTerritory != null) { // this.formInline.dutyTerritory = this.formInline.dutyTerritory.split(',') // } else { @@ -377,7 +404,6 @@ } }) this.formInline = { ...this.formInline } - console.log(this.formInline) this.visible = true this.disabled = true this.$nextTick(() => { @@ -401,8 +427,19 @@ }, progressTrackingOpenClick(e) { if (e.target.localName == 'img') { - this.$refs.viewImgRef.getData(e.target.currentSrc) + ImagePreview( + { + images: [ + e.target.currentSrc + ], + closeable: true + }) + // this.$refs.viewImgRef.getData(e.target.currentSrc) } + }, + openClick(item) { + item.isDescription = !item.isDescription + this.formInline = { ...this.formInline } } } } @@ -512,14 +549,6 @@ word-break: break-word; } - .text-box { - width: 100%; - height: 200px; - display: inline-block; - border: 1px solid #ccc; - padding: 0 15px; - margin-bottom: 10px; - } .itemModel-text { box-sizing: border-box; @@ -538,12 +567,13 @@ .text-box { width: 100%; - height: 200px; + height: auto; display: inline-block; border: 1px solid #ccc; padding: 0; border-radius: 4px; position: relative; + margin-bottom: 10px; } ::v-deep .text-box-index-text-top p { @@ -590,7 +620,7 @@ .itemModel-text-box { width: 100%; white-space: pre-wrap; - height: 200px; + height: auto; display: inline-block; border: 1px solid #ccc; border-radius: 4px; @@ -605,4 +635,46 @@ ::v-deep .text-box-index-text-top img { max-width: 100% !important; } + + .text-box-index-text-right { + position: absolute; + display: flex; + align-items: center; + top: 13px; + right: 2px; + } + + .text-box-index-text-right-text { + font-size: 14px; + font-family: PingFang SC, PingFang SC; + font-weight: 400; + color: #01A0AC; + display: flex; + align-items: center; + margin-right: 10px; + cursor: pointer; + } + + .text-box-index { + width: 100%; + height: 46px; + display: inline-block; + padding: 0 15px; + border: 1px solid #ccc; + border-radius: 4px 4px 0px 0px; + white-space: pre-wrap; + overflow: hidden; + position: relative; + margin-bottom: 6px; + } + + .text-box-index-text { + width: 100%; + overflow: hidden; + white-space: pre-wrap; + } + + ::v-deep .text-box-index-text .text-class { + background: #fff !important; + } \ No newline at end of file From 45bbb9f6308055b713eed8007a495fd9dfe9b2d1 Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Mon, 18 Dec 2023 15:26:12 +0800 Subject: [PATCH 73/73] =?UTF-8?q?=E9=97=AE=E9=A2=98=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jero/modules/project/service/impl/NcrTrackServiceImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/NcrTrackServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/NcrTrackServiceImpl.java index 296b6581b..0819dd09f 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/NcrTrackServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/NcrTrackServiceImpl.java @@ -855,6 +855,7 @@ public class NcrTrackServiceImpl extends ServiceImpl List problemPriorityList = sysDictService.queryDictItemsByCode(DicCodeEnum.PROBLEM_PRIORITY.getCode()); for (ProblemManagementEO problemManagementEO : managementEOList) { + problemManagementEO.setFlag(DataEnum.NEW.getValue()); //问题类型 List dictModelList = problemTypeList.stream().filter(e -> e.getValue().equals(problemManagementEO.getProblemType())).collect(Collectors.toList()); List dictModelListPp = problemPriorityList.stream().filter(e -> e.getValue().equals(problemManagementEO.getProblemPriority())).collect(Collectors.toList());