Authored by Lixiaodi

香港价格

... ... @@ -1185,13 +1185,17 @@ public class ProductServiceImpl implements IProductService, ApplicationContextAw
batchReq.setProductList(batchBo);
batchReq.setTaskId(tran.getId());
batchBo.forEach(b -> b.setTranId(tran.getId()));
ApiResponse response = null;
try {
LOGGER.info("batch import send taskId={}, batchId={}", tran.getId(), (i + 1));
serviceCaller.call("ufo-gateway.batchImportPrds", batchReq, Void.class, 10);
response = serviceCaller.call("ufo-gateway.batchImportPrds", batchReq, ApiResponse.class, 10);
LOGGER.info("batch import send success taskId={}, batchId={}", tran.getId(), (i + 1));
} catch (Exception e) {
LOGGER.info("batch import send failed taskId={}, batchId={}", tran.getId(), (i + 1));
LOGGER.info("batch import send failed taskId={}, batchId={}, err={}", tran.getId(), (i + 1), e);
}
if (response != null && response.getCode() != 200) {
LOGGER.info("batch import send failed broke taskId={}, batchId={}, resp={}", tran.getId(), (i + 1), response);
throw new PlatformException("导入出错:" + response.getMessage(), response.getCode());
}
}
LOGGER.info("batch import over taskId={}", tran.getId());
... ...