|
|
|
@ -21,6 +21,7 @@ import com.glxp.api.service.inv.InvProductRationService;
|
|
|
|
|
import com.glxp.api.service.system.SystemParamConfigService;
|
|
|
|
|
import com.glxp.api.util.MsDateUtil;
|
|
|
|
|
import com.glxp.api.util.StringUtils;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
|
@ -35,7 +36,7 @@ import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Slf4j
|
|
|
|
|
@Component
|
|
|
|
|
@EnableScheduling
|
|
|
|
|
public class AsyncIoCollectOrderDownloadTask implements SchedulingConfigurer {
|
|
|
|
@ -88,7 +89,11 @@ public class AsyncIoCollectOrderDownloadTask implements SchedulingConfigurer {
|
|
|
|
|
for (SysWorkplaceDocumentResponse sysWorkplaceDocumentResponse : sysWorkplaceDocumentResponses) {
|
|
|
|
|
String documentTypeCode = sysWorkplaceDocumentResponse.getDocumentTypeCode();
|
|
|
|
|
collectOrderRequest.setBusType(documentTypeCode);
|
|
|
|
|
try{
|
|
|
|
|
collectOriginService.downloadOrderV2(collectOrderRequest);
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
log.error("自动下载原始下载出错:{}", e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|