From ee8304be26e7f17ea2c8f5a24256059acfa882cb Mon Sep 17 00:00:00 2001 From: wangzhijiang Date: Wed, 26 Apr 2023 14:19:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=BA=93=E8=AF=A6=E6=83=85?= =?UTF-8?q?=EF=BC=8C=E7=BB=9F=E8=AE=A1=E7=9B=B8=E5=85=B3=E5=AF=B9=E6=8E=A5?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xml/ProjectLawsInventoryEOMapper.xml | 20 ++++++++++++++++++- .../ProjectLawsInventoryEOServiceImpl.java | 9 +++++++++ .../components/nonConformance.vue | 14 ++++++------- 3 files changed, 35 insertions(+), 8 deletions(-) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/mapper/xml/ProjectLawsInventoryEOMapper.xml b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/mapper/xml/ProjectLawsInventoryEOMapper.xml index d41eb0ead..f106f4482 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/mapper/xml/ProjectLawsInventoryEOMapper.xml +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/mapper/xml/ProjectLawsInventoryEOMapper.xml @@ -156,6 +156,18 @@ ) temp + + order by temp.${params.orderByField} + + asc + + + desc + + + + order by temp.serial_number desc + @@ -167,7 +179,13 @@ and temp.title like CONCAT(CONCAT('%',#{params.title}),'%') - and temp.duty_territory = #{params.dutyTerritory} + and temp.duty_territory like CONCAT(CONCAT('%',#{params.dutyTerritory}),'%') + 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 e8b48096c..1c3fa146c 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 @@ -12598,6 +12598,15 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl processInfoDetailEOQueryWrapper = new QueryWrapper<>(); + processInfoDetailEOQueryWrapper.lambda().eq(ProcessInfoDetailEO::getProjectLawsInventoryId,(String)dataMap.get("id")); + processInfoDetailEOQueryWrapper.lambda().eq(ProcessInfoDetailEO::getFlowType,flowType); + processInfoDetailEOQueryWrapper.orderByDesc("create_time"); + List processInfoDetailEOS = this.processInfoDetailEOService.list(processInfoDetailEOQueryWrapper); + if(CollectionUtils.isNotEmpty(processInfoDetailEOS)){ + dataMap.put("actiProcInstId",processInfoDetailEOS.get(0).getActiProcInstId()); + } } } return result; diff --git a/jero-web/src/views/projectManagement/components/nonConformance.vue b/jero-web/src/views/projectManagement/components/nonConformance.vue index 682e17cd1..745fc345f 100644 --- a/jero-web/src/views/projectManagement/components/nonConformance.vue +++ b/jero-web/src/views/projectManagement/components/nonConformance.vue @@ -8,8 +8,8 @@
{{$t('standard')}}
- + @@ -17,8 +17,8 @@
{{$t('title')}}
- +
@@ -168,7 +168,7 @@ pageNo: 1, url: { page: '/project/projectLawsInventoryEO/queryNotComplianList', - exportData: '/project/ncrTrackController/exportDataInfo' + exportData: '/project/projectLawsInventoryEO/exportNotComplianList' } } }, @@ -231,9 +231,9 @@ let query = { ...this.queryParam, projectLibraryId: this.$route.query.id, - ncrTrackVOList: this.content + // ncrTrackVOList: this.content } - downloadFilePost(this.url.exportData, this.$t('NonConformance') + '.xls', query, this.Deselect) + downloadFile(this.url.exportData, this.$t('NonConformance') + '.xls', query, this.Deselect) }, tableOnChange(pagination, filters, sorter) { this.orderBy = sorter.order == 'ascend' ? '1' : '2'