| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ltkj.common.annotation.Excel; |
| | | import com.ltkj.common.utils.StringUtils; |
| | | import com.ltkj.common.utils.poi.ExcelUtil; |
| | | import com.ltkj.framework.config.UserHoder; |
| | | import com.ltkj.hosp.domain.TjAdvice; |
| | |
| | | @ApiParam(value = "显示条数(默认10)") @RequestParam(defaultValue = "10") Integer pageSize) { |
| | | LambdaQueryWrapper<TjAdviceKjbq> wq = new LambdaQueryWrapper<>(); |
| | | Page<TjAdviceKjbq> page1 = new Page<>(page, pageSize); |
| | | if (null != userId && !userId.equals("")) { |
| | | if (null != userId && !StringUtils.isBlank(userId)) { |
| | | wq.eq(TjAdviceKjbq::getUserId, userId); |
| | | } |
| | | if (null != qyzt) { |
| | | wq.eq(TjAdviceKjbq::getQyzt, qyzt); |
| | | } |
| | | Page<TjAdviceKjbq> kjbqPage = kjbqService.page(page1, wq); |
| | | if (null != kjbqPage.getRecords() && kjbqPage.getRecords().size() > 0) { |
| | | if (null != kjbqPage.getRecords() && !kjbqPage.getRecords().isEmpty()) { |
| | | for (TjAdviceKjbq record : kjbqPage.getRecords()) { |
| | | if (null != record.getUserId()) { |
| | | record.setUserName(userService.getById(record.getUserId()).getNickName()); |