diff --git a/nflg-mobilebroken-push/pom.xml b/nflg-mobilebroken-push/pom.xml index fa341dc7..417af88d 100644 --- a/nflg-mobilebroken-push/pom.xml +++ b/nflg-mobilebroken-push/pom.xml @@ -40,10 +40,60 @@ org.springframework.boot spring-boot-maven-plugin + + true + org.apache.maven.plugins - maven-surefire-plugin + maven-dependency-plugin + + + copy-dependencies + package + + copy-dependencies + + + ${project.build.directory}/lib + ${project.groupId} + runtime + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + true + lib/ + com.nflg.mobilebroken.push.PushApplication + + + + + + org.apache.maven.plugins + maven-shade-plugin + + + package + + shade + + + + + ${project.groupId}:* + + + false + + + diff --git a/nflg-mobilebroken-repository/src/main/java/com/nflg/mobilebroken/repository/service/impl/ProductModelParamsServiceImpl.java b/nflg-mobilebroken-repository/src/main/java/com/nflg/mobilebroken/repository/service/impl/ProductModelParamsServiceImpl.java index 48a9156e..631ad583 100644 --- a/nflg-mobilebroken-repository/src/main/java/com/nflg/mobilebroken/repository/service/impl/ProductModelParamsServiceImpl.java +++ b/nflg-mobilebroken-repository/src/main/java/com/nflg/mobilebroken/repository/service/impl/ProductModelParamsServiceImpl.java @@ -1,5 +1,6 @@ package com.nflg.mobilebroken.repository.service.impl; +import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.convert.Convert; import cn.hutool.core.util.StrUtil; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; @@ -173,12 +174,15 @@ public class ProductModelParamsServiceImpl extends ServiceImpl { vos.add(new ProductModelMainParamsItemChildrenVO() .setIndexName(indexName) + .setBatchNumber(CollectionUtil.isNotEmpty(data) ? data.get(0).getBatchNumber() : "") .setItems(data .stream() .map(it -> Convert.convert(ProductParamsItemVO.class, it)) + .sorted(Comparator.comparing(ProductParamsItemVO::getBatchNumber)) .collect(Collectors.toList())) ); }); + vos.sort(Comparator.comparing(ProductModelMainParamsItemChildrenVO::getBatchNumber)); return vos; } @@ -205,12 +209,15 @@ public class ProductModelParamsServiceImpl extends ServiceImpl { vos.add(new ProductModelMainParamsItemChildrenVO() .setIndexName(indexName) + .setBatchNumber(CollectionUtil.isNotEmpty(data) ? data.get(0).getBatchNumber() : "") .setItems(data .stream() .map(it -> Convert.convert(ProductParamsItemVO.class, it)) + .sorted(Comparator.comparing(ProductParamsItemVO::getBatchNumber)) .collect(Collectors.toList())) ); }); + vos.sort(Comparator.comparing(ProductModelMainParamsItemChildrenVO::getBatchNumber)); return vos; } diff --git a/nflg-mobilebroken-repository/src/main/resources/mapper/ProductSeriesMapper.xml b/nflg-mobilebroken-repository/src/main/resources/mapper/ProductSeriesMapper.xml index ccb3704e..4af7c2c6 100644 --- a/nflg-mobilebroken-repository/src/main/resources/mapper/ProductSeriesMapper.xml +++ b/nflg-mobilebroken-repository/src/main/resources/mapper/ProductSeriesMapper.xml @@ -68,7 +68,7 @@