对比新文件 |
| | |
| | | package com.gk.firework.Service.ServiceImpl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.gk.firework.Domain.SecuritySupervisory; |
| | | import com.gk.firework.Domain.Utils.StringUtils; |
| | | import com.gk.firework.Mapper.SecuritySupervisoryMapper; |
| | | import com.gk.firework.Service.SecuritySupervisoryService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("securitySupervisoryService") |
| | | public class SecuritySupervisoryServiceImpl extends ServiceImpl<SecuritySupervisoryMapper, SecuritySupervisory> implements SecuritySupervisoryService { |
| | | |
| | | @Autowired |
| | | private SecuritySupervisoryMapper securitySupervisoryMapper; |
| | | |
| | | @Override |
| | | public Page<SecuritySupervisory> selectPage (Page<SecuritySupervisory> page, String name) { |
| | | |
| | | LambdaQueryWrapper<SecuritySupervisory> queryWrapper = new LambdaQueryWrapper<>(); |
| | | queryWrapper.select(SecuritySupervisory::getId, |
| | | SecuritySupervisory::getLevel, |
| | | SecuritySupervisory::getCode, |
| | | SecuritySupervisory::getName) |
| | | .eq(SecuritySupervisory::getValidflag, true); |
| | | if (StringUtils.isNotBlank(name)) { |
| | | queryWrapper.like(SecuritySupervisory::getName, name); |
| | | } |
| | | return securitySupervisoryMapper.selectPage(page,queryWrapper); |
| | | } |
| | | } |