备份再加用户部门的代码
This commit is contained in:
parent
293a090d8b
commit
8084bda3c0
|
@ -17,11 +17,7 @@ public class JTCompanyRepositoryImpl implements JTCompanyRepository {
|
|||
|
||||
@Override
|
||||
public List<JTCompany> findAll() {
|
||||
List<JTCompany> all = new ArrayList<>();
|
||||
jdbcJTCompanyRepository.findAll().forEach(
|
||||
all::add
|
||||
);
|
||||
return all;
|
||||
return jdbcJTCompanyRepository.findBySystemCodeId(1L);
|
||||
}
|
||||
|
||||
@Cacheable(value = "JTCompanyByCompanyCode" , key = "#companyCode")
|
||||
|
|
|
@ -4,9 +4,13 @@ import com.chint.domain.aggregates.system.CompanyBlackList;
|
|||
import com.chint.domain.aggregates.system.JTCompany;
|
||||
import org.springframework.data.repository.CrudRepository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface JdbcJTCompanyRepositoryImpl extends CrudRepository<JTCompany, Long> {
|
||||
CompanyBlackList findByCompanyName(String companyName);
|
||||
|
||||
JTCompany findByCompanyCode(String companyCode);
|
||||
|
||||
List<JTCompany> findBySystemCodeId(Long systemCodeId);
|
||||
}
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ public class UserHttpRequestImpl implements UserHttpRequest {
|
|||
|
||||
@Override
|
||||
public User loadUserInfo(User user) {
|
||||
loadSFInfo(user);
|
||||
user = loadSFInfo(user);
|
||||
if (user == null) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue