| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | @Override |
| | | public IPage<EnterpriseFixedAssets> listPage(Page<EnterpriseFixedAssets> page, EnterpriseFixedAssets enterpriseFixedAssets) { |
| | | return enterpriseFixedAssetsmapper.selectPage(page, null); |
| | | LambdaQueryWrapper<EnterpriseFixedAssets> queryWrapper = new LambdaQueryWrapper<>(); |
| | | if (enterpriseFixedAssets != null && StringUtils.isNotBlank(enterpriseFixedAssets.getName())) { |
| | | queryWrapper.like(EnterpriseFixedAssets::getName, enterpriseFixedAssets.getName()); |
| | | } |
| | | return enterpriseFixedAssetsmapper.selectPage(page, queryWrapper); |
| | | } |
| | | } |