From 1a376098d2e27eeb9c2af90fa501311c2035d5ab Mon Sep 17 00:00:00 2001 From: buhuazhen <hua100783@gmail.com> Date: 星期三, 27 八月 2025 14:30:41 +0800 Subject: [PATCH] :zap: 对于前端修改 采购和应付 --- main-business/src/main/java/com/ruoyi/business/service/impl/ProductionServiceImpl.java | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/main-business/src/main/java/com/ruoyi/business/service/impl/ProductionServiceImpl.java b/main-business/src/main/java/com/ruoyi/business/service/impl/ProductionServiceImpl.java index 85cec6d..f26d594 100644 --- a/main-business/src/main/java/com/ruoyi/business/service/impl/ProductionServiceImpl.java +++ b/main-business/src/main/java/com/ruoyi/business/service/impl/ProductionServiceImpl.java @@ -11,6 +11,7 @@ import com.ruoyi.business.service.ProductionService; import com.ruoyi.common.utils.bean.BeanUtils; import lombok.RequiredArgsConstructor; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.Objects; @@ -27,11 +28,15 @@ @RequiredArgsConstructor public class ProductionServiceImpl extends ServiceImpl<ProductionMapper, Production> implements ProductionService { + @Autowired private ProductionMapper productionMapper; @Override public IPage<Production> selectProductionList(Page page, ProductionDto productionDto) { LambdaQueryWrapper<Production> queryWrapper = new LambdaQueryWrapper<>(); + if(productionDto != null && productionDto.getSearchAll() != null){ + queryWrapper.eq(Production::getStatus, productionDto.getSearchAll()); + } queryWrapper.orderByDesc(Production::getCreateTime); return productionMapper.selectPage(page, queryWrapper); } -- Gitblit v1.9.3