| | |
| | | import org.springframework.util.StringUtils; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | |
| | | public IPage<CoalInfo> selectCoalInfoList(Page page, CoalInfoDto coalInfoDto) { |
| | | LambdaQueryWrapper<CoalInfo> queryWrapper = new LambdaQueryWrapper<>(); |
| | | if (StringUtils.hasText(coalInfoDto.getSearchAll())) { |
| | | queryWrapper.like(CoalInfo::getCoal,coalInfoDto.getSearchAll()); |
| | | queryWrapper.like(CoalInfo::getCoal, coalInfoDto.getSearchAll()); |
| | | } |
| | | queryWrapper.orderByDesc(CoalInfo::getCreateTime); |
| | | return coalInfoMapper.selectPage(page, queryWrapper); |
| | |
| | | // 执行批量逻辑删除 |
| | | return coalInfoMapper.update(null, updateWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public List<CoalInfo> coalInfoList() { |
| | | return coalInfoMapper.selectList(null); |
| | | } |
| | | } |