This commit is contained in:
dinggang 2022-06-22 17:36:36 +08:00
parent c4a121464b
commit 83d9b7b4db
2 changed files with 2 additions and 4 deletions

View File

@ -64,8 +64,6 @@ public class CensusControllerV2 {
private JdbcTemplate jdbcTemplate;
@Autowired
private Tsingtao_xhaProperties tsingtao_xhaProperties;
@Autowired
private TsingtaoDataResourceService tsingtaoDataResourceService;
@Value("${census.type}")
private String[] censusTypes; // 需要进行统计的资源类型
@ -430,6 +428,7 @@ public class CensusControllerV2 {
}
break;
case TSINGTAO: { // TODO 青岛大数据局
TsingtaoDataResourceService tsingtaoDataResourceService = new TsingtaoDataResourceService();
GetDataResourceListDto getDataResourceListDto = new GetDataResourceListDto();
getDataResourceListDto.setPageNum(1);
getDataResourceListDto.setPageSize(5);

View File

@ -21,14 +21,13 @@ import java.util.stream.Collectors;
/**
* 青岛市局数据资源
*/
@Component
public class TsingtaoDataResourceService extends AbstractDataResourceService {
private static final Logger logger = LoggerFactory.getLogger(TsingtaoDataResourceService.class);
private static RestTemplate restTemplate;
{
static {
TsingtaoDataResourceService.restTemplate = SpringContextUtils.getBean(RestTemplate.class);
}