4 Commits

Author SHA1 Message Date
lihuilin 65869031dc 虽然不知道哪来的后端分支,但还是提交一下 5 days ago
lihuilin 9790875843 merge hqz branch 'origin' into lhl 5 days ago
huangqizhen e2dd14cfdd Merge branch 'refs/heads/Huang' into dev 3 weeks ago
jianlin ca7c0f01e5 删除测试文件readme 4 weeks ago
  1. 5
      src/main/java/com/example/demo/serviceImpl/AdminServiceImpl.java

5
src/main/java/com/example/demo/serviceImpl/AdminServiceImpl.java

@ -10,8 +10,6 @@ import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheConfig; import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict; import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable; import org.springframework.cache.annotation.Cacheable;
@ -24,9 +22,7 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import java.util.List; import java.util.List;
import java.util.Objects;
@Transactional @Transactional
@Service @Service
@ -86,6 +82,7 @@ public class AdminServiceImpl implements AdminService {
return new PageInfo<>(list); return new PageInfo<>(list);
} }
// 修改登录方法
@Override @Override
public Admin login(Admin admin) throws Exception { public Admin login(Admin admin) throws Exception {
try { try {

Loading…
Cancel
Save