test: automate overseas wallet and pallet cost closure

This commit is contained in:
2026-09-06 11:00:06 +08:00
parent 64bf5aa0fe
commit 20b3074cb1
21 changed files with 506 additions and 103 deletions
@@ -18,13 +18,15 @@ import org.springframework.web.server.ResponseStatusException;
@Component
@RequiredArgsConstructor
public class HttpProcurementFileGateway implements ProcurementFileGateway {
private final RestClient.Builder builder;
private final LastlegRestClientFactory factory;
private final LastlegRestClientProperties properties;
private final RestClient.Builder restClientBuilder;
private final LastlegRestClientFactory restClientFactory;
private final LastlegRestClientProperties restClientProperties;
@Value("${baiyue.clients.file.url:http://127.0.0.1:9205}") private String baseUrl;
@Value("${baiyue.security.internal-service-token:}") private String token;
private RestClient client;
@PostConstruct void initialize() { client = factory.build(builder, baseUrl, properties.getProcurementFile()); }
@PostConstruct void initialize() {
client = restClientFactory.build(restClientBuilder, baseUrl, restClientProperties.getProcurementFile());
}
@Override
public UploadedFile upload(String customerId, long orderId, long operatorId, String category, MultipartFile file) {