16 小时以前 e731bf5f64d71ed93a570d505c52dc44d491175e
src/main/java/com/ruoyi/stock/service/impl/StockInventoryServiceImpl.java
@@ -194,6 +194,7 @@
        stockInRecordDto.setOilDepotId(stockInventoryDto.getOilDepotId());
        stockInRecordDto.setOilDepotName(stockInventoryDto.getOilDepotName());
        stockInRecordDto.setInboundCategory(stockInventoryDto.getInboundCategory());
        stockInRecordDto.setSalesLedgerId(stockInventoryDto.getSalesLedgerId());
        if (stockInventoryDto.getOilDepotId() != null && StringUtils.isEmpty(stockInRecordDto.getOilDepotName())) {
            OilDepot oilDepot = oilDepotMapper.selectById(stockInventoryDto.getOilDepotId());
            if (oilDepot != null) {
@@ -544,6 +545,10 @@
                return photos;
            }
            for (StorageBlobVO vo : list) {
                // 已经是 publicKey 永久地址的保持不动:重签会把它降级回 2 小时失效的 token
                if (StringUtils.hasText(vo.getPreviewURL()) && vo.getPreviewURL().contains("publicKey=")) {
                    continue;
                }
                String previewUrl = fileUtil.buildSignedUrl(vo, "/preview/", null);
                vo.setPreviewURL(previewUrl);
                vo.setUrl(previewUrl);