Sfoglia il codice sorgente

修改查询商品名称为like查询

hechunping 2 anni fa
parent
commit
eec485f830

+ 1 - 0
sys-api-service/src/main/java/com/xy/service/AlgorithmGoodsServiceImpl.java

@@ -32,6 +32,7 @@ public class AlgorithmGoodsServiceImpl extends JoinServiceImpl<AlgorithmGoodsMap
         JoinLambdaWrapper<AlgorithmGoods> lambdaWrapper = new MybatisPlusQuery().eqWrapper(page, AlgorithmGoods.class)
                 .ge(AlgorithmGoods::getCreateTime, page.getCreateTimeStart())
                 .le(AlgorithmGoods::getCreateTime, page.getCreateTimeEnd())
+                .like(AlgorithmGoods::getSkuName)
                 .buildJoin()
                 .leftJoin(Algorithm.class, Algorithm::getId, AlgorithmGoods::getAlgorithmId)
                 .selectAs(Algorithm::getName, LambdaUtils.getProperty(AlgorithmGoodsDto.Vo::getAlgorithmName))