代码拉取完成,页面将自动刷新
package app.itw.sdd.service.impl;
import app.itw.sdd.repository.SysUserRepository;
import app.itw.sdd.service.SysUserService;
import app.itw.sdd.entity.SysUser;
import java.util.List;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.data.domain.*;
import java.util.Optional;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
/**
@author Tison
*/
@Service
public class SysUserServiceImpl implements SysUserService {
@Resource
private SysUserRepository rep;
public SysUser save(SysUser obj) {
return rep.save(obj);
}
@Transactional
public List<SysUser> saveAll(Iterable<SysUser> list) {
return rep.saveAll(list);
}
public SysUser getOne(Long id) {
return rep.getOne(id);
}
public SysUser findById(Long id) {
Optional<SysUser> obj = rep.findById(id);
return obj.isPresent()?obj.get():null;
}
public void deleteById(Long id) {
rep.deleteById(id);
}
@Transactional
public void deleteAll(List list) {
rep.deleteAll(list);
}
public void delete(SysUser obj) {
rep.delete(obj);
}
public boolean existsById(Long id) {
return rep.existsById(id);
}
public long count() {
return rep.count();
}
public List<SysUser> findAll() {
return rep.findAll();
}
public List<SysUser> findAll(SysUser obj) {
List<SysUser> list = rep.findAll(Example.of(obj));
return list==null||list.size()<1?null:list;
}
public List<SysUser> findAll(Sort sort) {
return rep.findAll(sort);
}
public List<SysUser> findAllById(Iterable<Long> ids) {
return rep.findAllById(ids);
}
public List<SysUser> findAll(Example<SysUser> e) {
return rep.findAll(e);
}
public List<SysUser> findAll(Example<SysUser> e, Sort sort) {
return rep.findAll(e,sort);
}
public Page<SysUser> findAll(Pageable page) {
return rep.findAll(page);
}
public Page<SysUser> findAll(Example<SysUser> e, Pageable page) {
return rep.findAll(e,page);
}
public Page<SysUser> findAll(SysUser obj, Pageable page) {
return rep.findAll(Example.of(obj),page);
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。