From f2928f335c861efc0cff316fc462e6adb0f0a4d7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167>
Date: Mon, 8 May 2023 10:29:10 +0800
Subject: [PATCH 1/5] =?UTF-8?q?=E5=B8=82=E5=9C=BA=E6=B3=95=E8=A7=84?=
=?UTF-8?q?=E6=B8=85=E5=8D=95=E3=80=81=E5=B8=82=E5=9C=BA=E8=AE=A4=E8=AF=81?=
=?UTF-8?q?=E6=B8=85=E5=8D=95=E3=80=81=E6=B3=95=E8=A7=84=E6=B8=85=E5=8D=95?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=86=E9=A1=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
jero-web/src/App.vue | 21 +++--
.../components/virtualListDetails.vue | 49 ++++++++++--
.../components/listOfRegulations.vue | 78 ++++++++++---------
.../certificationListMaintenance.vue | 52 +++++++++++--
4 files changed, 148 insertions(+), 52 deletions(-)
diff --git a/jero-web/src/App.vue b/jero-web/src/App.vue
index 3439653a2..d4bd69fbf 100644
--- a/jero-web/src/App.vue
+++ b/jero-web/src/App.vue
@@ -180,18 +180,18 @@
}
.ant-table-column-title {
- font-weight: bold!important;
+ font-weight: bold !important;
}
.ant-table-thead > tr > th {
- background: #f3f6f6!important;
- padding-top: 12px!important;
- padding-bottom: 12px!important;
+ background: #f3f6f6 !important;
+ padding-top: 12px !important;
+ padding-bottom: 12px !important;
}
.ant-table-tbody > tr > td {
- padding-top: 12px!important;
- padding-bottom: 12px!important;
+ padding-top: 12px !important;
+ padding-bottom: 12px !important;
}
.ant-tooltip-inner {
@@ -206,4 +206,13 @@
.ant-menu-inline-collapsed-tooltip a {
color: #333 !important;
}
+
+ .page .ant-select-selection--single {
+ height: 32px !important;
+ line-height: 32px !important;
+ }
+ .page .ant-select-selection__rendered{
+ height: 32px !important;
+ line-height: 32px !important;
+ }
\ No newline at end of file
diff --git a/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue b/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue
index 1b8c32b24..8caae84e1 100644
--- a/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue
+++ b/jero-web/src/views/documentTools/virtualList/components/virtualListDetails.vue
@@ -314,9 +314,22 @@
--
-
- {{$t('total')+' '+this.dataSource.length+' '+ $t('strip')}}
+
+
+
+
@@ -403,6 +416,9 @@
orderBy: '1',
istable: true,
orderByField: '',
+ pageNo: 1,
+ pageSize: 50,
+ total: 0,
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
downLoadImgUrl: window._CONFIG['domianWebImgURL'] + '/sys/common/download',
dataSourceFile: [],
@@ -424,7 +440,7 @@
url: {
addModelList: '/dummy/dummyInventoryInfoEO/queryPageDummy',
queryConditionInventory: '/dummy/dummyInventoryInfoEO/queryConditionInventory',
- list: '/dummy/dummyInventoryInfoEO/list',
+ list: '/dummy/dummyInventoryInfoEO/page',
addModel: '/dummy/dummyInventoryInfoEO/add',
editModel: '/dummy/dummyInventoryInfoEO/edit',
deleteBatch: '/dummy/dummyInventoryInfoEO/deleteBatch',
@@ -1231,6 +1247,15 @@
}
})
},
+ onChangeSize(page, pageSize) {
+ this.pageNo = page
+ this.getList()
+ },
+ SizeChange(page, pageSize) {
+ this.pageNo = 1
+ this.pageSize = pageSize
+ this.getList()
+ },
getList() {
if (this.queryParam.xin1Che1Xing2Shi2Shi1Ri4Qi1String && this.queryParam.xin1Che1Xing2Shi2Shi1Ri4Qi1String instanceof Array) {
this.queryParam.xin1Che1Xing2Shi2Shi1Ri4Qi1String = this.queryParam.xin1Che1Xing2Shi2Shi1Ri4Qi1String.join(',')
@@ -1243,12 +1268,21 @@
...this.queryParamQuery,
orderBy: this.orderBy,
orderByField: this.orderByField,
- dummyInventoryBaseId: this.$route.query.id
+ dummyInventoryBaseId: this.$route.query.id,
+ pageNo: this.pageNo,
+ pageSize: this.pageSize
}
this.loading = true
getAction(this.url.list, query).then((res) => {
if (res.success) {
- this.dataSource = res.result || []
+ if (res.result.current > 1 && res.result.records.length == 0) {
+ this.pageNo = 1
+ this.getList()
+ return
+ }
+ this.dataSource = res.result.records || []
+ this.total = res.result.total
+ // this.dataSource = res.result || []
if (this.dataSource.length == 0) {
this.$nextTick(() => {
let anttablebody = document.getElementsByClassName('ant-table-body')
@@ -1727,6 +1761,11 @@
padding-left: 16px!important;
border-right: 1px solid #e8e8e8;
}
+ .page {
+ text-align: right;
+ margin-top: 20px;
+ margin-bottom: 20px;
+ }
\ No newline at end of file
From 7a1a5ff7c6603051390f6959069fc93a3ec3ec01 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167>
Date: Mon, 8 May 2023 10:44:36 +0800
Subject: [PATCH 2/5] =?UTF-8?q?=E6=A0=87=E7=AD=BE=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E5=AD=97=E5=85=B8=E5=88=97=E8=A1=A8=E5=A2=9E=E5=8A=A0=E7=BB=9F?=
=?UTF-8?q?=E8=AE=A1=E8=8A=82=E7=82=B9=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
jero-web/src/common/lang/en-us.js | 1 +
jero-web/src/common/lang/zh-cn.js | 1 +
.../src/views/documentManage/tags/dialog/DicList.vue | 11 +++++++++++
3 files changed, 13 insertions(+)
diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js
index f8f7be466..089bcb2cb 100644
--- a/jero-web/src/common/lang/en-us.js
+++ b/jero-web/src/common/lang/en-us.js
@@ -1826,4 +1826,5 @@ module.exports = {
proportion:'Proportion',
projectProgressStatistics:'Project Progress Statistics',
GRPSystemProjectProgressStatistics:'GRP system project progress statistics',
+ statisticalNodes:'Statistical Nodes',
}
\ 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 ae56fa752..6de9cd903 100644
--- a/jero-web/src/common/lang/zh-cn.js
+++ b/jero-web/src/common/lang/zh-cn.js
@@ -1928,4 +1928,5 @@ module.exports = {
proportion:'占比',
projectProgressStatistics:'项目进度统计',
GRPSystemProjectProgressStatistics:'GRP系统项目进度统计',
+ statisticalNodes:'统计节点',
}
\ No newline at end of file
diff --git a/jero-web/src/views/documentManage/tags/dialog/DicList.vue b/jero-web/src/views/documentManage/tags/dialog/DicList.vue
index 41307da80..ed37d66fb 100644
--- a/jero-web/src/views/documentManage/tags/dialog/DicList.vue
+++ b/jero-web/src/views/documentManage/tags/dialog/DicList.vue
@@ -75,6 +75,9 @@
+
+
+
@@ -139,6 +142,14 @@
{ min: 1, max: 100, message: this.$t('cantExeed') + '100' + this.$t('characters'), trigger: 'blur' },
{ validator: this.test }
],
+ statNode:[
+ { required: true, message: this.$t('statisticalNodes')+ this.$t('cannotEmpty'), trigger: 'blur' },
+ {
+ max: 100,
+ message: this.$t('statisticalNodes') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
+ trigger: 'blur'
+ }
+ ],
valueType:[
{ required: true, message: this.$t('type') + this.$t('cannotEmpty'), trigger: 'change' },
],
From 6be8a4c8d15476eb0b87406d31a58bcbfeaa6f97 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167>
Date: Mon, 8 May 2023 13:52:23 +0800
Subject: [PATCH 3/5] =?UTF-8?q?=E6=A0=87=E7=AD=BE=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E5=AD=97=E5=85=B8=E5=88=97=E8=A1=A8=E5=A2=9E=E5=8A=A0=E7=BB=9F?=
=?UTF-8?q?=E8=AE=A1=E8=8A=82=E7=82=B9=E5=AD=97=E6=AE=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../projectManagement/components/listOfRegulations.vue | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/jero-web/src/views/projectManagement/components/listOfRegulations.vue b/jero-web/src/views/projectManagement/components/listOfRegulations.vue
index ec38b56f9..e1128744b 100644
--- a/jero-web/src/views/projectManagement/components/listOfRegulations.vue
+++ b/jero-web/src/views/projectManagement/components/listOfRegulations.vue
@@ -748,14 +748,16 @@
align: 'left',
ellipsis: true,
dataIndex: 'attestationType_dictText',
- width: 180
+ width: 180,
+ sorter: true,
},
{
title: this.$t('certificationLevel'),
align: 'left',
ellipsis: true,
dataIndex: 'attestationRank_dictText',
- width: 180
+ width: 180,
+ sorter: true,
},
{
title: this.$t('areaOfResponsibility'),
@@ -2314,6 +2316,10 @@
this.orderByField = 'verifyFlowStatus'
} else if (sorter.columnKey == 'designFlowStatusName') {
this.orderByField = 'designFlowStatus'
+ } else if (sorter.columnKey == 'attestationType_dictText') {
+ this.orderByField = 'attestationType'
+ } else if (sorter.columnKey == 'attestationRank_dictText') {
+ this.orderByField = 'attestationRank'
} else {
this.orderByField = sorter.columnKey
}
From b7a69b6927fedad17f52b8326479e6d6cfd68446 Mon Sep 17 00:00:00 2001
From: wangzhijiang
Date: Mon, 8 May 2023 14:36:31 +0800
Subject: [PATCH 4/5] =?UTF-8?q?=E5=B8=82=E5=9C=BA=E6=B3=95=E8=A7=84?=
=?UTF-8?q?=E6=B8=85=E5=8D=95=E3=80=81=E5=B8=82=E5=9C=BA=E8=AE=A4=E8=AF=81?=
=?UTF-8?q?=E6=B8=85=E5=8D=95=E3=80=81=E6=B3=95=E8=A7=84=E6=B8=85=E5=8D=95?=
=?UTF-8?q?=EF=BC=8C=E5=88=97=E8=A1=A8=E4=BF=AE=E6=94=B9=E4=B8=BA=E5=88=86?=
=?UTF-8?q?=E9=A1=B5=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../AuthDummyInventoryInfoEOController.java | 12 ++-
.../IAuthDummyInventoryInfoEOService.java | 2 +
.../AuthDummyInventoryInfoEOServiceImpl.java | 5 +-
.../impl/DummyInventoryInfoEOServiceImpl.java | 101 +++++++++++++++---
.../ProjectLawsInventoryEOController.java | 4 +-
.../IProjectLawsInventoryEOService.java | 2 +
...ctCertificationInventoryEOServiceImpl.java | 17 +++
.../ProjectLawsInventoryEOServiceImpl.java | 88 +++++++++++++++
8 files changed, 212 insertions(+), 19 deletions(-)
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/authDummy/controller/AuthDummyInventoryInfoEOController.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/authDummy/controller/AuthDummyInventoryInfoEOController.java
index a08f4af17..b0eb5a9f9 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/authDummy/controller/AuthDummyInventoryInfoEOController.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/authDummy/controller/AuthDummyInventoryInfoEOController.java
@@ -16,6 +16,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jero.modules.dummy.entity.DummyInventoryInfoEO;
import lombok.extern.slf4j.Slf4j;
import com.jero.common.system.base.controller.JeroController;
+import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
@@ -57,7 +58,16 @@ public class AuthDummyInventoryInfoEOController extends JeroController queryWrapper = QueryGenerator.initQueryWrapper(authDummyInventoryInfoEO, req.getParameterMap());
- queryWrapper.orderByDesc("create_time");
+ String orderByField = authDummyInventoryInfoEO.getOrderByField();
+ String orderBy = authDummyInventoryInfoEO.getOrderBy();
+ // 如果排序字段不为空
+ if(StringUtils.isNotEmpty(orderByField)){
+ // 转换字段
+ orderByField = this.authDummyInventoryInfoEOService.convertOrderByField(orderByField);
+ queryWrapper.orderBy(true, "1".equals(orderBy)?true:false, orderByField);
+ }else {
+ queryWrapper.orderByDesc("create_time");
+ }
Page page = new Page(pageNo, pageSize);
IPage pageList = this.authDummyInventoryInfoEOService.page(page, queryWrapper);
this.authDummyInventoryInfoEOService.disposeData(pageList.getRecords(),authDummyInventoryInfoEO.getCut());
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/authDummy/service/IAuthDummyInventoryInfoEOService.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/authDummy/service/IAuthDummyInventoryInfoEOService.java
index 4bbb55bc5..f13e5a99e 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/authDummy/service/IAuthDummyInventoryInfoEOService.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/authDummy/service/IAuthDummyInventoryInfoEOService.java
@@ -113,6 +113,8 @@ public interface IAuthDummyInventoryInfoEOService extends IService datas, String cut);
+ String convertOrderByField(String orderByField);
+
/**
* 获取责任领域名称
* @param cut
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/authDummy/service/impl/AuthDummyInventoryInfoEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/authDummy/service/impl/AuthDummyInventoryInfoEOServiceImpl.java
index 605ac3bf8..4d59bc41e 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/authDummy/service/impl/AuthDummyInventoryInfoEOServiceImpl.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/authDummy/service/impl/AuthDummyInventoryInfoEOServiceImpl.java
@@ -607,8 +607,8 @@ public class AuthDummyInventoryInfoEOServiceImpl extends ServiceImpl authDummyInventoryInfoEOList = this.list(queryWrapper);
return authDummyInventoryInfoEOList;
}
-
- private String convertOrderByField(String orderByField) {
+ @Override
+ public String convertOrderByField(String orderByField) {
if(StringUtils.isEmpty(orderByField)){
return null;
}
@@ -620,6 +620,7 @@ public class AuthDummyInventoryInfoEOServiceImpl extends ServiceImpl getPageInfo(DummyInventoryInfoEO dummyInventoryInfoEO,HttpServletRequest req) {
+ long startTime = System.currentTimeMillis();
+ String orderBy = dummyInventoryInfoEO.getOrderBy();
+ String orderByField = dummyInventoryInfoEO.getOrderByField();
+
QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(dummyInventoryInfoEO, req.getParameterMap());
- queryWrapper.orderByDesc("create_time");
+ //新车型实施日期,在产车实施日期(排序)
+ if("xin1_che1_xing2_shi2_shi1_ri4_qi1".equals(orderByField) || "implement_time".equals(orderByField)){
+ if(OrderEnum.POSITIVE.getValue().equals(orderBy)){
+ queryWrapper.orderByAsc(orderByField);
+ }else if(OrderEnum.REVERSE.getValue().equals(orderBy)){
+ queryWrapper.orderByDesc(orderByField);
+ }
+ }
+ if(StringUtils.isBlank(orderByField)){
+ queryWrapper.orderByDesc("create_time","serial_number");
+ }
+
+ if(StringUtils.isNotEmpty(dummyInventoryInfoEO.getImplementTimeString())){
+ String[] implementTimeArr = dummyInventoryInfoEO.getImplementTimeString().split(",");
+
+ QueryWrapper phasedDetailsQueryWrap = new QueryWrapper<>();
+ phasedDetailsQueryWrap.lambda().like(PhasedImplementationDetailsEO::getImplementationType,ImplementationTypeEnum.CAR_IN_PRODUCTION.getItemValue());
+ phasedDetailsQueryWrap.lambda().ge(PhasedImplementationDetailsEO::getImplementationDate,implementTimeArr[0]);
+ phasedDetailsQueryWrap.lambda().le(PhasedImplementationDetailsEO::getImplementationDate,implementTimeArr[1]);
+ List bussDocumentLibraryIdList = this.phasedImplementationDetailsEOService.list(phasedDetailsQueryWrap)
+ .stream().map(PhasedImplementationDetailsEO::getBussDocumentLibraryId).collect(Collectors.toList());
+
+ queryWrapper.and(query -> {
+ query.and(q -> {
+ q.lambda().ge(DummyInventoryInfoEO::getImplementTime,implementTimeArr[0]);
+ q.lambda().le(DummyInventoryInfoEO::getImplementTime,implementTimeArr[1]);
+ });
+
+ if(CollectionUtils.isNotEmpty(bussDocumentLibraryIdList)){
+ query.or(q -> {
+ q.lambda().in(DummyInventoryInfoEO::getBussDocumentLibraryId,bussDocumentLibraryIdList);
+ });
+ }
+ });
+ }
+ if(StringUtils.isNotEmpty(dummyInventoryInfoEO.getXin1Che1Xing2Shi2Shi1Ri4Qi1String())){
+ String[] newCarTimeArr = dummyInventoryInfoEO.getXin1Che1Xing2Shi2Shi1Ri4Qi1String().split(",");
+
+ QueryWrapper phasedDetailsQueryWrap = new QueryWrapper<>();
+ phasedDetailsQueryWrap.lambda().like(PhasedImplementationDetailsEO::getImplementationType,ImplementationTypeEnum.NEW_CAR_MODEL.getItemValue());
+ phasedDetailsQueryWrap.lambda().ge(PhasedImplementationDetailsEO::getImplementationDate,newCarTimeArr[0]);
+ phasedDetailsQueryWrap.lambda().le(PhasedImplementationDetailsEO::getImplementationDate,newCarTimeArr[1]);
+ List bussDocumentLibraryIdList = this.phasedImplementationDetailsEOService.list(phasedDetailsQueryWrap)
+ .stream().map(PhasedImplementationDetailsEO::getBussDocumentLibraryId).collect(Collectors.toList());
+
+ queryWrapper.and(query -> {
+ query.and(q -> {
+ q.lambda().ge(DummyInventoryInfoEO::getXin1Che1Xing2Shi2Shi1Ri4Qi1,newCarTimeArr[0]);
+ q.lambda().le(DummyInventoryInfoEO::getXin1Che1Xing2Shi2Shi1Ri4Qi1,newCarTimeArr[1]);
+ });
+ if(CollectionUtils.isNotEmpty(bussDocumentLibraryIdList)){
+ query.or(q -> {
+ q.lambda().in(DummyInventoryInfoEO::getBussDocumentLibraryId,bussDocumentLibraryIdList);
+ });
+ }
+ });
+ }
+
Page page = new Page(dummyInventoryInfoEO.getPageNo(), dummyInventoryInfoEO.getPageSize());
IPage pageInfo = this.page(page, queryWrapper);
//技术领域处理
// treeDict(dummyInventoryInfoEO, pageInfo);
+ List dummyInventoryInfoEOList = pageInfo.getRecords();
+ log.info("一阶段消耗时间:" + (System.currentTimeMillis() - startTime));
+ //数据字典
+ List sysDictItems = sysDictItemServiceImpl.selectItemsAll();
+ //技术领域处理
+ treeDict(dummyInventoryInfoEO, dummyInventoryInfoEOList,sysDictItems);
+ log.info("二阶段消耗时间:" + (System.currentTimeMillis() - startTime));
+ this.dataDicDispose(dummyInventoryInfoEOList,dummyInventoryInfoEO.getCut());
+ log.info("三阶段消耗时间:" + (System.currentTimeMillis() - startTime));
+ treeDict(dummyInventoryInfoEO, dummyInventoryInfoEOList,sysDictItems);
+ // 数据处理
+ this.disposeData(dummyInventoryInfoEOList,dummyInventoryInfoEO.getCut());
+ //表头排序
+ dummyInventoryInfoEOList = hearSort(orderBy, orderByField, dummyInventoryInfoEOList);
return pageInfo;
}
@@ -634,18 +709,18 @@ public class DummyInventoryInfoEOServiceImpl extends ServiceImpl{
- if(e1.getXin1Che1Xing2Shi2Shi1Ri4Qi1() != null && e2.getXin1Che1Xing2Shi2Shi1Ri4Qi1() != null){
- String e1xin1Che1Xing2Shi2Shi1Ri4Qi = DateUtils.formatDate(e1.getXin1Che1Xing2Shi2Shi1Ri4Qi1());
- String e2xin1Che1Xing2Shi2Shi1Ri4Qi = DateUtils.formatDate(e2.getXin1Che1Xing2Shi2Shi1Ri4Qi1());
+ if(e1.getXin1Che1Xing2Shi2Shi1Ri4Qi1String() != null && e2.getXin1Che1Xing2Shi2Shi1Ri4Qi1String() != null){
+ String e1xin1Che1Xing2Shi2Shi1Ri4Qi = DateUtils.formatDate(e1.getXin1Che1Xing2Shi2Shi1Ri4Qi1String());
+ String e2xin1Che1Xing2Shi2Shi1Ri4Qi = DateUtils.formatDate(e2.getXin1Che1Xing2Shi2Shi1Ri4Qi1String());
return comparator.compare(e1xin1Che1Xing2Shi2Shi1Ri4Qi,e2xin1Che1Xing2Shi2Shi1Ri4Qi);
}
return 0;
});
}else if(OrderEnum.REVERSE.getValue().equals(orderBy)){
Collections.sort(dummyInventoryInfoEOList,(e1,e2)->{
- if(e1.getXin1Che1Xing2Shi2Shi1Ri4Qi1() != null && e2.getXin1Che1Xing2Shi2Shi1Ri4Qi1() != null){
- String e1xin1Che1Xing2Shi2Shi1Ri4Qi = DateUtils.formatDate(e1.getXin1Che1Xing2Shi2Shi1Ri4Qi1());
- String e2xin1Che1Xing2Shi2Shi1Ri4Qi = DateUtils.formatDate(e2.getXin1Che1Xing2Shi2Shi1Ri4Qi1());
+ if(e1.getXin1Che1Xing2Shi2Shi1Ri4Qi1String() != null && e2.getXin1Che1Xing2Shi2Shi1Ri4Qi1String() != null){
+ String e1xin1Che1Xing2Shi2Shi1Ri4Qi = DateUtils.formatDate(e1.getXin1Che1Xing2Shi2Shi1Ri4Qi1String());
+ String e2xin1Che1Xing2Shi2Shi1Ri4Qi = DateUtils.formatDate(e2.getXin1Che1Xing2Shi2Shi1Ri4Qi1String());
return comparator.compare(e2xin1Che1Xing2Shi2Shi1Ri4Qi,e1xin1Che1Xing2Shi2Shi1Ri4Qi);
}
return 0;
@@ -656,18 +731,18 @@ public class DummyInventoryInfoEOServiceImpl extends ServiceImpl{
- if(e1.getImplementTime() != null && e2.getImplementTime() != null){
- String e1ImplementTime = DateUtils.formatDate(e1.getImplementTime());
- String e2ImplementTime = DateUtils.formatDate(e2.getImplementTime());
+ if(e1.getImplementTimeString() != null && e2.getImplementTimeString() != null){
+ String e1ImplementTime = DateUtils.formatDate(e1.getImplementTimeString());
+ String e2ImplementTime = DateUtils.formatDate(e2.getImplementTimeString());
return comparator.compare(e1ImplementTime,e2ImplementTime);
}
return 0;
});
}else if(OrderEnum.REVERSE.getValue().equals(orderBy)){
Collections.sort(dummyInventoryInfoEOList,(e1,e2)->{
- if(e1.getImplementTime() != null && e2.getImplementTime() != null){
- String e1ImplementTime = DateUtils.formatDate(e1.getImplementTime());
- String e2ImplementTime = DateUtils.formatDate(e2.getImplementTime());
+ if(e1.getImplementTimeString() != null && e2.getImplementTimeString() != null){
+ String e1ImplementTime = DateUtils.formatDate(e1.getImplementTimeString());
+ String e2ImplementTime = DateUtils.formatDate(e2.getImplementTimeString());
return comparator.compare(e2ImplementTime,e1ImplementTime);
}
return 0;
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectLawsInventoryEOController.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectLawsInventoryEOController.java
index 3d0e91614..bc7d0d431 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectLawsInventoryEOController.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectLawsInventoryEOController.java
@@ -81,9 +81,7 @@ public class ProjectLawsInventoryEOController extends JeroController queryWrapper = QueryGenerator.initQueryWrapper(projectLawsInventoryEO, req.getParameterMap());
- Page page = new Page(pageNo, pageSize);
- IPage pageList = projectLawsInventoryEOService.page(page, queryWrapper);
+ IPage pageList = this.projectLawsInventoryEOService.queryPage(projectLawsInventoryEO,pageNo,pageSize,req);
return Result.OK(pageList);
}
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 5a1fac321..b27295e3e 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
@@ -302,4 +302,6 @@ public interface IProjectLawsInventoryEOService extends IService groupByVerifyStatus(List pliEos);
+
+ IPage queryPage(ProjectLawsInventoryEO projectLawsInventoryEO, Integer pageNo, Integer pageSize, HttpServletRequest req);
}
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 f7770a7c2..53045640a 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
@@ -1467,6 +1467,23 @@ public class ProjectCertificationInventoryEOServiceImpl extends ServiceImpl{
+ String e1AttestationTypeName = (StringUtils.isNotEmpty(e1.getAttestationTypeName()) ? e1.getAttestationTypeName() : "");
+ String e2AttestationTypeName = (StringUtils.isNotEmpty(e2.getAttestationTypeName()) ? e2.getAttestationTypeName() : "");
+ return comparator.compare(e1AttestationTypeName,e2AttestationTypeName);
+ });
+ }else if(OrderEnum.REVERSE.getValue().equals(orderBy)){
+ Collections.sort(datas,(e1,e2)->{
+ String e1AttestationTypeName = (StringUtils.isNotEmpty(e1.getAttestationTypeName()) ? e1.getAttestationTypeName() : "");
+ String e2AttestationTypeName = (StringUtils.isNotEmpty(e2.getAttestationTypeName()) ? e2.getAttestationTypeName() : "");
+ return comparator.compare(e2AttestationTypeName,e1AttestationTypeName);
+ });
+ }
+ }
+
// WVTA ID wvtaId
if(StringUtils.equals("wvtaId",orderByField)){
if(OrderEnum.POSITIVE.getValue().equals(orderBy)){
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 c75184a8d..586ab8d10 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
@@ -1436,6 +1436,38 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl{
+ String e1AttestationType = StringUtils.isNotBlank(e1.getAttestationType()) ? e1.getAttestationType() : "";
+ String e2AttestationType = StringUtils.isNotBlank(e2.getAttestationType()) ? e2.getAttestationType() : "";
+ return comparator.compare(e1AttestationType,e2AttestationType);
+ });
+ }else if(OrderEnum.REVERSE.getValue().equals(orderBy)){
+ Collections.sort(result,(e1,e2)->{
+ String e1AttestationType = StringUtils.isNotBlank(e1.getAttestationType()) ? e1.getAttestationType() : "";
+ String e2AttestationType = StringUtils.isNotBlank(e2.getAttestationType()) ? e2.getAttestationType() : "";
+ return comparator.compare(e2AttestationType,e1AttestationType);
+ });
+ }
+ }
+ // 认证级别 attestationRank
+ if("attestationRank".equals(orderByField)){
+ if(OrderEnum.POSITIVE.getValue().equals(orderBy)){
+ Collections.sort(result,(e1, e2)->{
+ String e1AttestationRank = StringUtils.isNotBlank(e1.getAttestationRank()) ? e1.getAttestationRank() : "";
+ String e2AttestationRank = StringUtils.isNotBlank(e2.getAttestationRank()) ? e2.getAttestationRank() : "";
+ return comparator.compare(e1AttestationRank,e2AttestationRank);
+ });
+ }else if(OrderEnum.REVERSE.getValue().equals(orderBy)){
+ Collections.sort(result,(e1,e2)->{
+ String e1AttestationRank = StringUtils.isNotBlank(e1.getAttestationRank()) ? e1.getAttestationRank() : "";
+ String e2AttestationRank = StringUtils.isNotBlank(e2.getAttestationRank()) ? e2.getAttestationRank() : "";
+ return comparator.compare(e2AttestationRank,e1AttestationRank);
+ });
+ }
+ }
// WVTA ID wvtaId
if("wvtaId".equals(orderByField)){
if(OrderEnum.POSITIVE.getValue().equals(orderBy)){
@@ -13228,4 +13260,60 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl queryPage(ProjectLawsInventoryEO projectLawsInventoryEO, Integer pageNo, Integer pageSize, HttpServletRequest req) {
+ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(projectLawsInventoryEO, req.getParameterMap());
+ queryWrapper.orderByDesc("create_time","serial_number");
+
+ String dutyTerritoryStr = "";
+ if (StringUtils.isNotEmpty(projectLawsInventoryEO.getDutyTerritory())) {
+ dutyTerritoryStr = projectLawsInventoryEO.getDutyTerritory();
+ projectLawsInventoryEO.setDutyTerritory(null);
+ }
+
+ String projectLibraryId = projectLawsInventoryEO.getProjectLibraryId();
+
+ if (StringUtils.isNotEmpty(dutyTerritoryStr)) {
+ String finalDutyTerritoryStr = dutyTerritoryStr.replaceAll("\\*","");
+ queryWrapper.and(query -> {
+ query.lambda().like(ProjectLawsInventoryEO::getDutyTerritory, finalDutyTerritoryStr);
+ if(StringUtils.contains(finalDutyTerritoryStr,",")){
+ String[] dutyTerritoryArr = finalDutyTerritoryStr.split(",");
+ for (String duty : dutyTerritoryArr) {
+ query.or(q -> {
+ q.like("duty_territory",duty);
+ });
+ }
+ }
+ });
+ }
+ LoginUser currentUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
+ int isProjectRole = Integer.parseInt(projectLawsInventoryEO.getRoleCode());
+ if(isProjectRole != Integer.parseInt(ProjectRoleEnum.STUDIO_ENGINEER.getValue())
+ && isProjectRole != Integer.parseInt(ProjectRoleEnum.MANAGER.getValue())
+ && isProjectRole != Integer.parseInt(ProjectRoleEnum.ADMIN.getValue())
+ && isProjectRole != Integer.parseInt(ProjectRoleEnum.VIEWER.getValue())){
+ // 创建查询权限
+ this.createQueryPermission(isProjectRole,currentUser,queryWrapper);
+ }
+
+ Page page = new Page(pageNo, pageSize);
+ IPage pageList = this.page(page, queryWrapper);
+ List result = pageList.getRecords();
+ if (isProjectRole == Integer.parseInt(ProjectRoleEnum.VIEWER.getValue())) {
+ //查当前用户Viewer对应责任领域
+ List dutyTerritoryList = this.projectUserDutyTerritoryService.queryDutyTerritoryByUserId(currentUser.getId());
+ if (ObjectUtils.isNotEmpty(dutyTerritoryList)) {
+ result = result.stream().filter(e -> dutyTerritoryList.contains(e.getDutyTerritory())).collect(Collectors.toList());
+ } else {
+ result = new ArrayList<>();
+ }
+ }
+ this.dataDispose(result,currentUser,isProjectRole,projectLawsInventoryEO.getCut());
+ this.dataDictDispose(result,projectLawsInventoryEO.getCut());
+ //表头排序
+ result = this.hearSort(projectLawsInventoryEO, result);
+ return pageList;
+ }
}
From 2e17c381bba742963e00b2e259d91e7f091b062c Mon Sep 17 00:00:00 2001
From: wangzhijiang
Date: Mon, 8 May 2023 17:34:05 +0800
Subject: [PATCH 5/5] =?UTF-8?q?=E5=AE=9A=E7=89=88=E6=A0=A1=E9=AA=8C?=
=?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=BC=80=E5=8F=91=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ProjectLawsInventoryEOController.java | 7 ++++
.../IProjectLawsInventoryEOService.java | 2 +
.../ProjectLawsInventoryEOServiceImpl.java | 41 +++++++++++++++++++
3 files changed, 50 insertions(+)
diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectLawsInventoryEOController.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectLawsInventoryEOController.java
index bc7d0d431..e6cd7a56a 100644
--- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectLawsInventoryEOController.java
+++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/controller/ProjectLawsInventoryEOController.java
@@ -551,4 +551,11 @@ public class ProjectLawsInventoryEOController extends JeroController params) {
this.projectLawsInventoryEOService.exportNotComplianList(response,request, params);
}
+
+ @AutoLog(value = "项目库-法规清单表-定版校验")
+ @ApiOperation(value="项目库-法规清单表-定版校验", notes="项目库-法规清单表-定版校验")
+ @GetMapping(value = "/finalizationVerify")
+ public Result> finalizationVerify(@RequestParam Map params){
+ return this.projectLawsInventoryEOService.finalizationVerify(params);
+ }
}
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 b27295e3e..55609230c 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
@@ -304,4 +304,6 @@ public interface IProjectLawsInventoryEOService extends IService groupByVerifyStatus(List pliEos);
IPage queryPage(ProjectLawsInventoryEO projectLawsInventoryEO, Integer pageNo, Integer pageSize, HttpServletRequest req);
+
+ Result> finalizationVerify(Map params);
}
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 586ab8d10..a4b7c8c2d 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
@@ -13316,4 +13316,45 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl finalizationVerify(Map params) {
+ boolean result = false; // 返回true,可以定版,返回false 不能定版
+ String projectLibraryId = (String) params.get("projectLibraryId");
+ if(StringUtils.isEmpty(projectLibraryId)){
+ throw new JeroBootException("项目库id不能为空,请检查!");
+ }
+ QueryWrapper pliQueryWrap = new QueryWrapper<>();
+ pliQueryWrap.lambda().eq(ProjectLawsInventoryEO::getProjectLibraryId,projectLibraryId);
+ List pliEoList = this.list(pliQueryWrap);
+ if(CollectionUtils.isNotEmpty(pliEoList)){
+ for (ProjectLawsInventoryEO pliEo : pliEoList) {
+ String designFlowStatus = pliEo.getDesignFlowStatus();
+ String verifyFlowStatus = pliEo.getVerifyFlowStatus();
+ boolean designFlowStatusFlag = (
+ StringUtils.equals(designFlowStatus,ComplianceFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue())
+ || StringUtils.equals(designFlowStatus,ComplianceFlowStatusEnum.RESULTS_TO_BE_REVIEWED.getValue())
+ || StringUtils.equals(designFlowStatus,ComplianceFlowStatusEnum.CONFORMITY.getValue())
+ || StringUtils.equals(designFlowStatus,ComplianceFlowStatusEnum.INCONFORMITY.getValue())
+ || StringUtils.equals(designFlowStatus,ComplianceFlowStatusEnum.TO_TRACK.getValue())
+ || StringUtils.equals(designFlowStatus,ComplianceFlowStatusEnum.UNINVOLVED.getValue())
+ );
+ boolean verifyFlowStatusFlag = (
+ StringUtils.equals(verifyFlowStatus,ComplianceFlowStatusEnum.RESULTS_TO_BE_SUBMITTED.getValue())
+ || StringUtils.equals(verifyFlowStatus,ComplianceFlowStatusEnum.RESULTS_TO_BE_REVIEWED.getValue())
+ || StringUtils.equals(verifyFlowStatus,ComplianceFlowStatusEnum.CONFORMITY.getValue())
+ || StringUtils.equals(verifyFlowStatus,ComplianceFlowStatusEnum.INCONFORMITY.getValue())
+ || StringUtils.equals(verifyFlowStatus,ComplianceFlowStatusEnum.TO_TRACK.getValue())
+ || StringUtils.equals(verifyFlowStatus,ComplianceFlowStatusEnum.UNINVOLVED.getValue())
+ );
+ if(designFlowStatusFlag && verifyFlowStatusFlag){
+ result = true;
+ }else {
+ result = false;
+ break;
+ }
+ }
+ }
+ return Result.OK(result);
+ }
}