| | |
| | | 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; |
| | |
| | | @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); |
| | | } |