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