备份再加用户部门的代码

This commit is contained in:
lulz1 2024-04-06 13:03:55 +08:00
parent 293a090d8b
commit 8084bda3c0
3 changed files with 6 additions and 6 deletions

View File

@ -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")

View File

@ -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);
} }

View File

@ -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;
} }