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 e4f085591..e31cb5c39 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 @@ -1527,6 +1527,114 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl{ + return comparator.compare(e1.getDesignDutyIdName(),e2.getDesignDutyIdName()); + }); + }else if(OrderEnum.REVERSE.getValue().equals(orderBy)){ + Collections.sort(result,(e1,e2)->{ + return comparator.compare(e2.getDesignDutyIdName(),e1.getDesignDutyIdName()); + }); + } + } + // 设计符合性-截止时间 designDueDate + if("designDueDate".equals(orderByField)){ + if(OrderEnum.POSITIVE.getValue().equals(orderBy)){ + Collections.sort(result,(e1, e2)->{ + if(e1.getDesignDueDate() != null && e2.getDesignDueDate() != null){ + String e1DesignDueDate = DateUtils.formatDate(e1.getDesignDueDate()); + String e2DesignDueDate = DateUtils.formatDate(e2.getDesignDueDate()); + return comparator.compare(e1DesignDueDate,e2DesignDueDate); + } + return -1; + }); + }else if(OrderEnum.REVERSE.getValue().equals(orderBy)){ + Collections.sort(result,(e1,e2)->{ + if(e1.getDesignDueDate() != null && e2.getDesignDueDate() != null){ + String e1DesignDueDate = DateUtils.formatDate(e1.getDesignDueDate()); + String e2DesignDueDate = DateUtils.formatDate(e2.getDesignDueDate()); + return comparator.compare(e2DesignDueDate,e1DesignDueDate); + } + return -1; + }); + } + } + // 设计符合性-交付物类型 designDeliverableType + if("designDeliverableType".equals(orderByField)){ + if(OrderEnum.POSITIVE.getValue().equals(orderBy)){ + Collections.sort(result,(e1, e2)->{ + if(e1.getDesignDeliverableTypeName() != null && e2.getDesignDeliverableTypeName() != null){ + return comparator.compare(e1.getDesignDeliverableTypeName(),e2.getDesignDeliverableTypeName()); + } + return -1; + }); + }else if(OrderEnum.REVERSE.getValue().equals(orderBy)){ + Collections.sort(result,(e1,e2)->{ + if(e1.getDesignDeliverableTypeName() != null && e2.getDesignDeliverableTypeName() != null){ + return comparator.compare(e2.getDesignDeliverableTypeName(),e1.getDesignDeliverableTypeName()); + } + return -1; + }); + } + } + + // 验证符合性排序 + // 验证符合性-责任人 verifyDutyId + if("verifyDutyId".equals(orderByField)){ + if(OrderEnum.POSITIVE.getValue().equals(orderBy)){ + Collections.sort(result,(e1, e2)->{ + return comparator.compare(e1.getVerifyDutyIdName(),e2.getVerifyDutyIdName()); + }); + }else if(OrderEnum.REVERSE.getValue().equals(orderBy)){ + Collections.sort(result,(e1,e2)->{ + return comparator.compare(e2.getVerifyDutyIdName(),e1.getVerifyDutyIdName()); + }); + } + } + // 验证符合性-截止时间 verifyDueDate + if("verifyDueDate".equals(orderByField)){ + if(OrderEnum.POSITIVE.getValue().equals(orderBy)){ + Collections.sort(result,(e1, e2)->{ + if(e1.getVerifyDueDate() != null && e2.getVerifyDueDate() != null){ + String e1VerifyDueDate = DateUtils.formatDate(e1.getVerifyDueDate()); + String e2VerifyDueDate = DateUtils.formatDate(e2.getVerifyDueDate()); + return comparator.compare(e1VerifyDueDate,e2VerifyDueDate); + } + return -1; + }); + }else if(OrderEnum.REVERSE.getValue().equals(orderBy)){ + Collections.sort(result,(e1,e2)->{ + if(e1.getVerifyDueDate() != null && e2.getVerifyDueDate() != null){ + String e1VerifyDueDate = DateUtils.formatDate(e1.getVerifyDueDate()); + String e2VerifyDueDate = DateUtils.formatDate(e2.getVerifyDueDate()); + return comparator.compare(e2VerifyDueDate,e1VerifyDueDate); + } + return -1; + }); + } + } + // 验证符合性-交付物类型 verifyDeliverableType + if("verifyDeliverableType".equals(orderByField)){ + if(OrderEnum.POSITIVE.getValue().equals(orderBy)){ + Collections.sort(result,(e1, e2)->{ + if(e1.getVerifyDeliverableTypeName() != null && e2.getVerifyDeliverableTypeName() != null){ + return comparator.compare(e1.getVerifyDeliverableTypeName(),e2.getVerifyDeliverableTypeName()); + } + return -1; + }); + }else if(OrderEnum.REVERSE.getValue().equals(orderBy)){ + Collections.sort(result,(e1,e2)->{ + if(e1.getVerifyDeliverableTypeName() != null && e2.getVerifyDeliverableTypeName() != null){ + return comparator.compare(e2.getVerifyDeliverableTypeName(),e1.getVerifyDeliverableTypeName()); + } + return -1; + }); + } + } } return result; } @@ -2039,6 +2147,8 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl designDutyId.equals(e.getId())). map(SysUser::getUsername).collect(Collectors.joining(",")); projectLawsInventoryEO.setDesignDutyIdName(designDutyName); + }else { + projectLawsInventoryEO.setDesignDutyIdName(""); } //prehomo确认 @@ -2071,6 +2181,8 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl verifyDutyId.equals(e.getId())). map(SysUser::getUsername).collect(Collectors.joining(",")); projectLawsInventoryEO.setVerifyDutyIdName(verifyDutyName); + }else { + projectLawsInventoryEO.setVerifyDutyIdName(""); } } diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/todoCenter/service/impl/ProcessInfoEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/todoCenter/service/impl/ProcessInfoEOServiceImpl.java index ce47517dd..528087f1c 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/todoCenter/service/impl/ProcessInfoEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/todoCenter/service/impl/ProcessInfoEOServiceImpl.java @@ -1435,6 +1435,7 @@ public class ProcessInfoEOServiceImpl extends ServiceImpl