mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-23 23:19:19 +08:00
1
This commit is contained in:
@@ -130,7 +130,7 @@
|
||||
<dependency>
|
||||
<groupId>com.aliyun.oss</groupId>
|
||||
<artifactId>aliyun-sdk-oss</artifactId>
|
||||
<version>3.17.4</version>
|
||||
<version>3.18.4</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importtask;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 订单导入映射配置(CSV 表头与订单字段、状态与状态ID 的映射)
|
||||
*/
|
||||
@Data
|
||||
public class OrderImportMappingConfig {
|
||||
|
||||
/**
|
||||
* 字段映射:CSV 表头 -> 订单字段
|
||||
*/
|
||||
@JsonProperty("fieldMapping")
|
||||
private List<FieldMappingItem> fieldMapping;
|
||||
|
||||
/**
|
||||
* 状态映射:CSV 状态文案 -> 订单状态ID
|
||||
*/
|
||||
@JsonProperty("statusMapping")
|
||||
private List<StatusMappingItem> statusMapping;
|
||||
|
||||
@Data
|
||||
public static class FieldMappingItem {
|
||||
private Boolean required;
|
||||
/** 订单/实体字段名,如 spec_code, link_product_name */
|
||||
private String fieldName;
|
||||
private String fieldLabel;
|
||||
/** CSV 表头名称,如 商品、订单号 */
|
||||
private String fileFieldName;
|
||||
}
|
||||
|
||||
@Data
|
||||
public static class StatusMappingItem {
|
||||
/** CSV 中的状态文案,如 已发货,待收货 */
|
||||
private String csvStatus;
|
||||
/** 系统订单状态ID */
|
||||
private Long mappedStatusId;
|
||||
}
|
||||
}
|
||||
+116
@@ -0,0 +1,116 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importtask;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 订单导入单行数据(由 CSV 解析后按 fieldMapping 得到)
|
||||
*/
|
||||
@Data
|
||||
public class OrderImportRow {
|
||||
|
||||
/** 行号(从 1 开始,含表头则为数据行号) */
|
||||
private int rowIndex;
|
||||
|
||||
/** 字段名 -> 原始字符串值 */
|
||||
private Map<String, String> values;
|
||||
|
||||
public OrderImportRow(int rowIndex, Map<String, String> values) {
|
||||
this.rowIndex = rowIndex;
|
||||
this.values = values;
|
||||
}
|
||||
|
||||
public String get(String fieldName) {
|
||||
return values == null ? null : values.get(fieldName);
|
||||
}
|
||||
|
||||
public String getSpecCode() {
|
||||
return get("spec_code");
|
||||
}
|
||||
|
||||
public String getLinkProductName() {
|
||||
return get("link_product_name");
|
||||
}
|
||||
|
||||
public String getProductCode() {
|
||||
return get("product_code");
|
||||
}
|
||||
|
||||
public String getPlatformOrderNo() {
|
||||
return get("platform_order_no");
|
||||
}
|
||||
|
||||
public String getLinkSpecName() {
|
||||
return get("link_spec_name");
|
||||
}
|
||||
|
||||
public String getStatusText() {
|
||||
return get("status");
|
||||
}
|
||||
|
||||
/** 根据 statusMapping 将 CSV 状态文案解析为订单状态ID */
|
||||
public Long getMappedStatusId(List<OrderImportMappingConfig.StatusMappingItem> statusMapping) {
|
||||
String text = getStatusText();
|
||||
if (text == null || text.isBlank() || statusMapping == null) {
|
||||
return null;
|
||||
}
|
||||
String trimmed = text.trim();
|
||||
for (OrderImportMappingConfig.StatusMappingItem item : statusMapping) {
|
||||
if (trimmed.equals(item.getCsvStatus() != null ? item.getCsvStatus().trim() : null)) {
|
||||
return item.getMappedStatusId();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public Integer getProductQuantity() {
|
||||
String v = get("product_quantity");
|
||||
if (v == null || v.isBlank()) return null;
|
||||
try {
|
||||
return Integer.parseInt(v.trim());
|
||||
} catch (NumberFormatException e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public BigDecimal getReceivedAmount() {
|
||||
String v = get("received_amount");
|
||||
if (v == null || v.isBlank()) return null;
|
||||
try {
|
||||
return new BigDecimal(v.trim());
|
||||
} catch (NumberFormatException e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** 下单时间,支持常见格式 */
|
||||
public LocalDateTime getOrderTime() {
|
||||
String v = get("order_time");
|
||||
if (v == null || v.isBlank()) return null;
|
||||
v = v.trim();
|
||||
DateTimeFormatter[] formatters = new DateTimeFormatter[]{
|
||||
DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"),
|
||||
DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss"),
|
||||
DateTimeFormatter.ofPattern("yyyy/MM/dd HH:mm:ss"),
|
||||
DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm"),
|
||||
DateTimeFormatter.ISO_LOCAL_DATE_TIME
|
||||
};
|
||||
for (DateTimeFormatter f : formatters) {
|
||||
try {
|
||||
return LocalDateTime.parse(v, f);
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
}
|
||||
try {
|
||||
return LocalDate.parse(v, DateTimeFormatter.ISO_LOCAL_DATE).atStartOfDay();
|
||||
} catch (Exception e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
+6
@@ -15,6 +15,12 @@ import java.util.List;
|
||||
@Schema(description = "单店铺概览统计VO")
|
||||
public class ShopOverviewStatisticsVO {
|
||||
|
||||
/**
|
||||
* 店铺名称
|
||||
*/
|
||||
@Schema(description = "店铺名称", example = "淘宝旗舰店")
|
||||
private String shopName;
|
||||
|
||||
/**
|
||||
* 店铺总销售额
|
||||
*/
|
||||
|
||||
+10
@@ -63,4 +63,14 @@ public interface OrderService extends IService<OrderPO> {
|
||||
* @return 批量导入结果VO
|
||||
*/
|
||||
BatchImportResultVO batchImportOrders(BatchImportOrderDTO batchImportOrderDTO);
|
||||
|
||||
/**
|
||||
* 导入场景下创建订单(不依赖当前请求用户上下文)
|
||||
*
|
||||
* @param createOrderDTO 创建订单DTO
|
||||
* @param companyId 公司ID
|
||||
* @param userId 操作人ID
|
||||
* @return 订单VO
|
||||
*/
|
||||
OrderVO createOrderForImport(CreateOrderDTO createOrderDTO, Long companyId, Long userId);
|
||||
}
|
||||
|
||||
+16
@@ -7,6 +7,7 @@ import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product.CreateProductDTO
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product.ProductFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.product.UpdateProductDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.po.ProductPO;
|
||||
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.vo.ProductVO;
|
||||
|
||||
/**
|
||||
@@ -45,4 +46,19 @@ public interface ProductService extends IService<ProductPO> {
|
||||
* @return 分页结果
|
||||
*/
|
||||
PageResultVO<ProductVO> getProductPage(PageQueryDTO<ProductFilterDTO> pageQueryDTO);
|
||||
|
||||
/**
|
||||
* 按公司ID和商品编码查询商品(导入用)
|
||||
*/
|
||||
ProductPO getByCompanyIdAndProductCode(Long companyId, String productCode);
|
||||
|
||||
/**
|
||||
* 按公司ID和商品名称查询商品(导入用)
|
||||
*/
|
||||
ProductPO getByCompanyIdAndName(Long companyId, String name);
|
||||
|
||||
/**
|
||||
* 导入场景下创建商品(不依赖当前请求用户上下文)
|
||||
*/
|
||||
ProductVO createProductForImport(CreateProductDTO createProductDTO, Long companyId, Long userId);
|
||||
}
|
||||
|
||||
+15
@@ -66,6 +66,21 @@ public interface ProductSpecService extends IService<ProductSpecPO> {
|
||||
*/
|
||||
List<ProductVO> getProductSpecsByProductAndSpecs(List<ProductSpecQueryDTO> queries);
|
||||
|
||||
/**
|
||||
* 按公司ID和规格编码查询规格(导入用,同公司下取第一个匹配)
|
||||
*/
|
||||
ProductSpecPO getByCompanyIdAndSpecCode(Long companyId, String specCode);
|
||||
|
||||
/**
|
||||
* 按公司ID、商品名称、规格编码查询规格(导入用)
|
||||
*/
|
||||
ProductSpecPO getByCompanyIdAndProductNameAndSpecCode(Long companyId, String productName, String specCode);
|
||||
|
||||
/**
|
||||
* 导入场景下创建商品规格(不依赖当前请求用户上下文)
|
||||
*/
|
||||
ProductSpecVO createProductSpecForImport(CreateProductSpecDTO createProductSpecDTO, Long companyId, Long userId);
|
||||
|
||||
/**
|
||||
* 商品规格查询DTO
|
||||
*/
|
||||
|
||||
+12
-2
@@ -6,7 +6,6 @@ import org.apache.commons.csv.CSVFormat;
|
||||
import org.apache.commons.csv.CSVParser;
|
||||
import org.apache.commons.csv.CSVRecord;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import top.xyquan.ecomdmbbackend.common.exception.BusinessException;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.mapper.ShopProductRelationMapper;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
@@ -187,7 +186,7 @@ public class ImportTaskProcessorServiceImpl implements ImportTaskProcessorServic
|
||||
* @param taskId 任务ID
|
||||
*/
|
||||
@Override
|
||||
@Transactional
|
||||
// 不使用事务:商品/规格创建均立即提交,避免事务回滚导致“商品不存在”等查询问题
|
||||
public void processImportTask(Long taskId) {
|
||||
ImportTaskPO task = importTaskService.getById(taskId);
|
||||
if (task == null) {
|
||||
@@ -967,6 +966,17 @@ public class ImportTaskProcessorServiceImpl implements ImportTaskProcessorServic
|
||||
product.setCreateBy(createBy);
|
||||
productMapper.insert(product);
|
||||
productId = product.getId();
|
||||
|
||||
// 验证商品确实创建成功
|
||||
if (productId == null) {
|
||||
throw new BusinessException("商品创建失败,未返回商品ID");
|
||||
}
|
||||
|
||||
// 验证商品确实存在(刷新实体,确保数据已提交)
|
||||
ProductPO verifyProduct = productMapper.selectById(productId);
|
||||
if (verifyProduct == null) {
|
||||
throw new BusinessException("商品创建后验证失败,商品ID: " + productId);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
productId = product.getId();
|
||||
|
||||
+54
@@ -134,6 +134,60 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, OrderPO> implemen
|
||||
return convertToVO(order);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public OrderVO createOrderForImport(CreateOrderDTO createOrderDTO, Long companyId, Long userId) {
|
||||
ShopPO shop = shopService.getById(createOrderDTO.getShopId());
|
||||
if (shop == null || !shop.getCompanyId().equals(companyId)) {
|
||||
throw new BusinessException("店铺不存在");
|
||||
}
|
||||
ProductPO product = productService.getById(createOrderDTO.getProductId());
|
||||
if (product == null || !product.getCompanyId().equals(companyId)) {
|
||||
throw new BusinessException("商品不存在");
|
||||
}
|
||||
if (createOrderDTO.getProductSpecId() != null) {
|
||||
ProductSpecPO productSpec = productSpecService.getById(createOrderDTO.getProductSpecId());
|
||||
if (productSpec == null || !productSpec.getCompanyId().equals(companyId)
|
||||
|| !productSpec.getProductId().equals(createOrderDTO.getProductId())) {
|
||||
throw new BusinessException("商品规格不存在或不属于该商品");
|
||||
}
|
||||
}
|
||||
OrderStatusPO orderStatus = orderStatusService.getById(createOrderDTO.getStatusId());
|
||||
if (orderStatus == null || !orderStatus.getCompanyId().equals(companyId)) {
|
||||
throw new BusinessException("订单状态不存在");
|
||||
}
|
||||
if (createOrderDTO.getPlatformOrderNo() != null && !createOrderDTO.getPlatformOrderNo().trim().isEmpty()) {
|
||||
LambdaQueryWrapper<OrderPO> wrapper = new LambdaQueryWrapper<>();
|
||||
wrapper.eq(OrderPO::getPlatformOrderNo, createOrderDTO.getPlatformOrderNo())
|
||||
.eq(OrderPO::getCompanyId, companyId);
|
||||
if (this.count(wrapper) > 0) {
|
||||
throw new BusinessException("平台订单号已存在");
|
||||
}
|
||||
}
|
||||
OrderPO order = new OrderPO();
|
||||
order.setCompanyId(companyId);
|
||||
order.setShopId(createOrderDTO.getShopId());
|
||||
order.setPlatformOrderNo(createOrderDTO.getPlatformOrderNo());
|
||||
order.setStatusId(createOrderDTO.getStatusId());
|
||||
order.setProductId(createOrderDTO.getProductId());
|
||||
order.setProductSpecId(createOrderDTO.getProductSpecId());
|
||||
order.setLinkProductName(createOrderDTO.getLinkProductName());
|
||||
order.setLinkSpecName(createOrderDTO.getLinkSpecName());
|
||||
order.setQuantity(createOrderDTO.getQuantity());
|
||||
order.setUnitPrice(createOrderDTO.getUnitPrice());
|
||||
order.setProductCost(createOrderDTO.getProductCost());
|
||||
order.setShippingCost(createOrderDTO.getShippingCost());
|
||||
order.setOtherCost(createOrderDTO.getOtherCost());
|
||||
order.setRemark(createOrderDTO.getRemark());
|
||||
order.setReceivedAmount(createOrderDTO.getReceivedAmount());
|
||||
order.setOrderTime(createOrderDTO.getOrderTime());
|
||||
order.setCreateBy(userId);
|
||||
order.setImportTaskId(createOrderDTO.getImportTaskId());
|
||||
order.setConfirm(createOrderDTO.getConfirm() != null ? createOrderDTO.getConfirm() : 1);
|
||||
this.save(order);
|
||||
return convertToVO(order);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新订单
|
||||
* @param updateOrderDTO 更新订单DTO
|
||||
|
||||
+54
@@ -114,6 +114,60 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, ProductPO> im
|
||||
return convertToVO(product);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProductPO getByCompanyIdAndProductCode(Long companyId, String productCode) {
|
||||
if (companyId == null || productCode == null || productCode.isBlank()) return null;
|
||||
LambdaQueryWrapper<ProductPO> w = new LambdaQueryWrapper<>();
|
||||
w.eq(ProductPO::getCompanyId, companyId).eq(ProductPO::getProductCode, productCode.trim());
|
||||
return this.getOne(w);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProductPO getByCompanyIdAndName(Long companyId, String name) {
|
||||
if (companyId == null || name == null || name.isBlank()) return null;
|
||||
LambdaQueryWrapper<ProductPO> w = new LambdaQueryWrapper<>();
|
||||
w.eq(ProductPO::getCompanyId, companyId).eq(ProductPO::getName, name.trim());
|
||||
return this.getOne(w);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public ProductVO createProductForImport(CreateProductDTO createProductDTO, Long companyId, Long userId) {
|
||||
LambdaQueryWrapper<ProductPO> wrapper = new LambdaQueryWrapper<>();
|
||||
wrapper.eq(ProductPO::getName, createProductDTO.getName()).eq(ProductPO::getCompanyId, companyId);
|
||||
if (this.count(wrapper) > 0) {
|
||||
throw new BusinessException("商品名称已存在");
|
||||
}
|
||||
if (createProductDTO.getProductCode() != null && !createProductDTO.getProductCode().trim().isEmpty()) {
|
||||
LambdaQueryWrapper<ProductPO> codeWrapper = new LambdaQueryWrapper<>();
|
||||
codeWrapper.eq(ProductPO::getProductCode, createProductDTO.getProductCode().trim());
|
||||
if (this.count(codeWrapper) > 0) {
|
||||
throw new BusinessException("商品编码已存在");
|
||||
}
|
||||
}
|
||||
ProductPO product = new ProductPO();
|
||||
BeanUtils.copyProperties(createProductDTO, product);
|
||||
product.setCompanyId(companyId);
|
||||
product.setCreateBy(userId);
|
||||
this.save(product);
|
||||
if (createProductDTO.getSpecs() != null && !createProductDTO.getSpecs().isEmpty()) {
|
||||
for (CreateProductDTO.ProductSpecDTO specDTO : createProductDTO.getSpecs()) {
|
||||
ProductSpecPO spec = new ProductSpecPO();
|
||||
spec.setCompanyId(companyId);
|
||||
spec.setProductId(product.getId());
|
||||
spec.setName(specDTO.getName());
|
||||
spec.setSpecCode(specDTO.getSpecCode());
|
||||
spec.setProductCost(specDTO.getProductCost() != null ? specDTO.getProductCost() : java.math.BigDecimal.ZERO);
|
||||
spec.setShippingCost(specDTO.getShippingCost());
|
||||
spec.setOtherCost(specDTO.getOtherCost());
|
||||
spec.setRemark(specDTO.getRemark());
|
||||
spec.setCreateBy(userId);
|
||||
productSpecService.save(spec);
|
||||
}
|
||||
}
|
||||
return convertToVO(product);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新商品
|
||||
* @param updateProductDTO 更新商品DTO
|
||||
|
||||
+44
@@ -226,6 +226,50 @@ public class ProductSpecServiceImpl extends ServiceImpl<ProductSpecMapper, Produ
|
||||
return convertToVO(productSpec);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProductSpecPO getByCompanyIdAndSpecCode(Long companyId, String specCode) {
|
||||
if (companyId == null || specCode == null || specCode.isBlank()) return null;
|
||||
LambdaQueryWrapper<ProductSpecPO> w = new LambdaQueryWrapper<>();
|
||||
w.eq(ProductSpecPO::getCompanyId, companyId).eq(ProductSpecPO::getSpecCode, specCode.trim()).last("LIMIT 1");
|
||||
return this.getOne(w);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ProductSpecPO getByCompanyIdAndProductNameAndSpecCode(Long companyId, String productName, String specCode) {
|
||||
if (companyId == null || productName == null || productName.isBlank() || specCode == null || specCode.isBlank()) return null;
|
||||
LambdaQueryWrapper<ProductPO> productWrapper = new LambdaQueryWrapper<>();
|
||||
productWrapper.eq(ProductPO::getName, productName.trim()).eq(ProductPO::getCompanyId, companyId);
|
||||
ProductPO product = productService.getOne(productWrapper);
|
||||
if (product == null) return null;
|
||||
LambdaQueryWrapper<ProductSpecPO> specWrapper = new LambdaQueryWrapper<>();
|
||||
specWrapper.eq(ProductSpecPO::getProductId, product.getId())
|
||||
.eq(ProductSpecPO::getSpecCode, specCode.trim())
|
||||
.eq(ProductSpecPO::getCompanyId, companyId);
|
||||
return this.getOne(specWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public ProductSpecVO createProductSpecForImport(CreateProductSpecDTO createProductSpecDTO, Long companyId, Long userId) {
|
||||
ProductPO product = productService.getById(createProductSpecDTO.getProductId());
|
||||
if (product == null || !product.getCompanyId().equals(companyId)) {
|
||||
throw new BusinessException("商品不存在");
|
||||
}
|
||||
LambdaQueryWrapper<ProductSpecPO> wrapper = new LambdaQueryWrapper<>();
|
||||
wrapper.eq(ProductSpecPO::getProductId, createProductSpecDTO.getProductId())
|
||||
.eq(ProductSpecPO::getName, createProductSpecDTO.getName())
|
||||
.eq(ProductSpecPO::getCompanyId, companyId);
|
||||
if (this.count(wrapper) > 0) {
|
||||
throw new BusinessException("规格名称已存在");
|
||||
}
|
||||
ProductSpecPO productSpec = new ProductSpecPO();
|
||||
BeanUtils.copyProperties(createProductSpecDTO, productSpec);
|
||||
productSpec.setCompanyId(companyId);
|
||||
productSpec.setCreateBy(userId);
|
||||
this.save(productSpec);
|
||||
return convertToVO(productSpec);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据商品名称和规格编码列表查询商品规格
|
||||
* @param queries 商品规格查询DTO列表
|
||||
|
||||
+2
-2
@@ -244,8 +244,8 @@ public class ShopServiceImpl extends ServiceImpl<ShopMapper, ShopPO> implements
|
||||
*/
|
||||
@Override
|
||||
public SysFileUploadVO uploadLogo(MultipartFile file) {
|
||||
// 上传Logo到系统文件模块(支持哈希校验和跨公司共享)
|
||||
List<SysFileUploadVO> files = sysFileService.batchUploadFiles(Collections.singletonList(file));
|
||||
// 上传Logo到系统文件模块(支持哈希校验和跨公司共享),设置文件分类为logo
|
||||
List<SysFileUploadVO> files = sysFileService.batchUploadFiles(Collections.singletonList(file), "logo");
|
||||
if (files.isEmpty()) {
|
||||
throw new BusinessException("Logo上传失败");
|
||||
}
|
||||
|
||||
+102
@@ -0,0 +1,102 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.ecom.util;
|
||||
|
||||
import org.apache.commons.csv.CSVFormat;
|
||||
import org.apache.commons.csv.CSVParser;
|
||||
import org.apache.commons.csv.CSVRecord;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importtask.OrderImportMappingConfig;
|
||||
import top.xyquan.ecomdmbbackend.modules.ecom.model.dto.importtask.OrderImportRow;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 订单导入 CSV 解析工具:按字段映射与状态映射解析 CSV,得到订单行数据列表。
|
||||
*/
|
||||
public final class OrderImportCsvParser {
|
||||
|
||||
private static final String BOM = "\uFEFF";
|
||||
|
||||
private OrderImportCsvParser() {
|
||||
}
|
||||
|
||||
/**
|
||||
* 从文件路径解析订单导入 CSV
|
||||
*
|
||||
* @param filePath 文件路径(可为相对 user.dir 或绝对路径)
|
||||
* @param config 字段映射与状态映射配置
|
||||
* @return 解析后的订单行列表(不含表头)
|
||||
* @throws IOException 读取或解析失败
|
||||
*/
|
||||
public static List<OrderImportRow> parse(Path filePath, OrderImportMappingConfig config) throws IOException {
|
||||
try (InputStream in = Files.newInputStream(filePath)) {
|
||||
return parse(in, config);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 从输入流解析订单导入 CSV(UTF-8)
|
||||
*
|
||||
* @param inputStream 输入流
|
||||
* @param config 字段映射与状态映射配置
|
||||
* @return 解析后的订单行列表(不含表头)
|
||||
* @throws IOException 读取或解析失败
|
||||
*/
|
||||
public static List<OrderImportRow> parse(InputStream inputStream, OrderImportMappingConfig config) throws IOException {
|
||||
if (config == null || config.getFieldMapping() == null || config.getFieldMapping().isEmpty()) {
|
||||
return List.of();
|
||||
}
|
||||
|
||||
List<OrderImportMappingConfig.FieldMappingItem> fieldMapping = config.getFieldMapping();
|
||||
// CSV 表头名 -> 实体字段名
|
||||
Map<String, String> fileHeaderToField = new HashMap<>();
|
||||
for (OrderImportMappingConfig.FieldMappingItem item : fieldMapping) {
|
||||
if (item.getFileFieldName() != null && item.getFieldName() != null) {
|
||||
fileHeaderToField.put(item.getFileFieldName().trim(), item.getFieldName());
|
||||
}
|
||||
}
|
||||
|
||||
InputStreamReader reader = new InputStreamReader(inputStream, StandardCharsets.UTF_8);
|
||||
CSVFormat format = CSVFormat.DEFAULT.builder()
|
||||
.setHeader()
|
||||
.setSkipHeaderRecord(true)
|
||||
.setTrim(true)
|
||||
.setIgnoreEmptyLines(true)
|
||||
.build();
|
||||
|
||||
List<OrderImportRow> rows = new ArrayList<>();
|
||||
try (CSVParser parser = CSVParser.parse(reader, format)) {
|
||||
List<String> headerNames = parser.getHeaderNames();
|
||||
if (headerNames == null) {
|
||||
return rows;
|
||||
}
|
||||
|
||||
int rowIndex = 1;
|
||||
for (CSVRecord record : parser) {
|
||||
rowIndex++;
|
||||
Map<String, String> values = new HashMap<>();
|
||||
for (String fileHeader : headerNames) {
|
||||
if (fileHeader == null) continue;
|
||||
String normalizedHeader = fileHeader.startsWith(BOM) ? fileHeader.substring(BOM.length()).trim() : fileHeader.trim();
|
||||
String fieldName = fileHeaderToField.get(normalizedHeader);
|
||||
if (fieldName != null) {
|
||||
String value = record.get(fileHeader);
|
||||
if (value != null) {
|
||||
value = value.trim();
|
||||
}
|
||||
values.put(fieldName, value);
|
||||
}
|
||||
}
|
||||
rows.add(new OrderImportRow(rowIndex, values));
|
||||
}
|
||||
}
|
||||
return rows;
|
||||
}
|
||||
}
|
||||
+56
-1
@@ -2,6 +2,9 @@ package top.xyquan.ecomdmbbackend.modules.sys.config;
|
||||
|
||||
import com.aliyun.oss.OSS;
|
||||
import com.aliyun.oss.OSSClientBuilder;
|
||||
import com.aliyun.oss.ClientBuilderConfiguration;
|
||||
import com.aliyun.oss.common.auth.DefaultCredentialProvider;
|
||||
import com.aliyun.oss.common.comm.SignVersion;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
@@ -34,7 +37,29 @@ public class OssConfig {
|
||||
accessKeySecret == null || accessKeySecret.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
return new OSSClientBuilder().build(endpoint, accessKeyId, accessKeySecret);
|
||||
|
||||
String region = getRegion();
|
||||
|
||||
// 如果无法提取region,使用默认方式创建(V1签名)
|
||||
if (region == null || region.isEmpty()) {
|
||||
return new OSSClientBuilder().build(endpoint, accessKeyId, accessKeySecret);
|
||||
}
|
||||
|
||||
// 使用V4签名版本创建OSSClient(参考官方示例)
|
||||
// V4签名对时区容错性更好,推荐用于预签名URL
|
||||
ClientBuilderConfiguration clientBuilderConfiguration = new ClientBuilderConfiguration();
|
||||
clientBuilderConfiguration.setSignatureVersion(SignVersion.V4);
|
||||
|
||||
// 创建CredentialsProvider(参考官方示例)
|
||||
DefaultCredentialProvider credentialsProvider = new DefaultCredentialProvider(accessKeyId, accessKeySecret);
|
||||
|
||||
// 按照官方示例的方式创建OSSClient
|
||||
return OSSClientBuilder.create()
|
||||
.endpoint(endpoint)
|
||||
.credentialsProvider(credentialsProvider)
|
||||
.clientConfiguration(clientBuilderConfiguration)
|
||||
.region(region)
|
||||
.build();
|
||||
}
|
||||
|
||||
public String getEndpoint() {
|
||||
@@ -48,5 +73,35 @@ public class OssConfig {
|
||||
public String getDomain() {
|
||||
return domain;
|
||||
}
|
||||
|
||||
public String getAccessKeyId() {
|
||||
return accessKeyId;
|
||||
}
|
||||
|
||||
public String getAccessKeySecret() {
|
||||
return accessKeySecret;
|
||||
}
|
||||
|
||||
/**
|
||||
* 从endpoint提取region
|
||||
* 例如:oss-cn-hangzhou.aliyuncs.com -> cn-hangzhou
|
||||
* oss-cn-guangzhou.aliyuncs.com -> cn-guangzhou
|
||||
*/
|
||||
public String getRegion() {
|
||||
if (endpoint == null || endpoint.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
String endpointWithoutProtocol = endpoint.replace("https://", "").replace("http://", "");
|
||||
// 格式:oss-cn-{region}.aliyuncs.com
|
||||
if (endpointWithoutProtocol.startsWith("oss-cn-")) {
|
||||
int start = "oss-cn-".length();
|
||||
int end = endpointWithoutProtocol.indexOf(".aliyuncs.com");
|
||||
if (end > start) {
|
||||
return "cn-" + endpointWithoutProtocol.substring(start, end);
|
||||
}
|
||||
}
|
||||
// 如果格式不匹配,尝试其他格式
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+11
-1
@@ -5,9 +5,12 @@ import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.validation.Valid;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.common.response.ApiResponse;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.dto.file.BatchCreateOssFileDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.dto.file.BatchSignUrlDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.dto.file.SysFileFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.vo.BatchSignUrlVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.vo.SysFileUploadVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.vo.SysFileVO;
|
||||
@@ -36,7 +39,7 @@ public class SysFileController {
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
|
||||
@Operation(summary = "批量获取URL签名", description = "批量获取OSS文件上传URL签名,如果文件已存在则返回文件信息")
|
||||
@Operation(summary = "批量获取Header签名", description = "批量获取OSS文件上传Header签名(V1签名方式,HMAC-SHA1),如果文件已存在则返回文件信息")
|
||||
@PostMapping("/batch-sign-url")
|
||||
public ApiResponse<BatchSignUrlVO> batchSignUrl(@Valid @RequestBody BatchSignUrlDTO dto) {
|
||||
BatchSignUrlVO result = sysFileService.batchSignUrl(dto);
|
||||
@@ -56,5 +59,12 @@ public class SysFileController {
|
||||
String accessUrl = sysFileService.getFileAccessUrl(fileId);
|
||||
return ApiResponse.success(accessUrl);
|
||||
}
|
||||
|
||||
@Operation(summary = "分页获取文件列表", description = "分页获取当前公司的文件列表,支持条件过滤")
|
||||
@PostMapping("/page")
|
||||
public ApiResponse<PageResultVO<SysFileVO>> getFilePage(@Valid @RequestBody PageQueryDTO<SysFileFilterDTO> pageQueryDTO) {
|
||||
PageResultVO<SysFileVO> result = sysFileService.getFilePage(pageQueryDTO);
|
||||
return ApiResponse.success(result);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.sys.model.dto.file;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 系统文件分页查询过滤DTO
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "系统文件分页查询过滤DTO")
|
||||
public class SysFileFilterDTO {
|
||||
|
||||
/**
|
||||
* 文件名(模糊查询)
|
||||
*/
|
||||
@Schema(description = "文件名(模糊查询)", example = "logo")
|
||||
private String filename;
|
||||
|
||||
/**
|
||||
* 文件格式(精准查询)
|
||||
*/
|
||||
@Schema(description = "文件格式(精准查询)", example = "jpg")
|
||||
private String fileFormat;
|
||||
|
||||
/**
|
||||
* 存储类型(精准查询)
|
||||
*/
|
||||
@Schema(description = "存储类型(精准查询)", example = "oss", allowableValues = {"local", "oss", "s3", "qiniu", "cos"})
|
||||
private String storageType;
|
||||
|
||||
/**
|
||||
* 文件分类(精准查询)
|
||||
*/
|
||||
@Schema(description = "文件分类(精准查询)", example = "image")
|
||||
private String category;
|
||||
|
||||
/**
|
||||
* 标签(模糊查询)
|
||||
*/
|
||||
@Schema(description = "标签(模糊查询)", example = "logo")
|
||||
private String tags;
|
||||
|
||||
/**
|
||||
* 上传时间范围-开始时间
|
||||
*/
|
||||
@Schema(description = "上传时间范围-开始时间", example = "2024-01-01T00:00:00")
|
||||
private LocalDateTime startUploadTime;
|
||||
|
||||
/**
|
||||
* 上传时间范围-结束时间
|
||||
*/
|
||||
@Schema(description = "上传时间范围-结束时间", example = "2024-12-31T23:59:59")
|
||||
private LocalDateTime endUploadTime;
|
||||
}
|
||||
|
||||
+10
-3
@@ -4,12 +4,13 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 批量URL签名响应VO
|
||||
* 批量Header签名响应VO(Header签名)
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "批量URL签名响应VO")
|
||||
@Schema(description = "批量Header签名响应VO(Header签名)")
|
||||
public class BatchSignUrlVO {
|
||||
|
||||
@Schema(description = "文件信息列表")
|
||||
@@ -33,9 +34,15 @@ public class BatchSignUrlVO {
|
||||
@Schema(description = "是否已存在", example = "true")
|
||||
private Boolean exists;
|
||||
|
||||
@Schema(description = "上传URL(如果文件不存在,用于前端上传)", example = "https://oss.example.com/upload?signature=xxx")
|
||||
@Schema(description = "上传URL(如果文件不存在,不含签名参数)", example = "https://bucket.oss-cn-hangzhou.aliyuncs.com/uploads/2024/01/file.jpg")
|
||||
private String uploadUrl;
|
||||
|
||||
@Schema(description = "上传所需的Header签名信息(如果文件不存在,包含Authorization、Date、x-oss-date、Content-Type等)", example = "{\"Authorization\":\"OSS xxx:xxx\",\"Date\":\"Mon, 01 Jan 2024 00:00:00 GMT\",\"x-oss-date\":\"Mon, 01 Jan 2024 00:00:00 GMT\",\"Content-Type\":\"image/jpeg\"}")
|
||||
private Map<String, String> uploadHeaders;
|
||||
|
||||
@Schema(description = "存储路径/Key(如果文件不存在,用于前端创建文件记录时使用)", example = "uploads/2024/01/abc123def456.jpg")
|
||||
private String storagePath;
|
||||
|
||||
@Schema(description = "访问URL(如果文件已存在,临时签名URL)", example = "https://oss.example.com/file.jpg?signature=xxx")
|
||||
private String accessUrl;
|
||||
|
||||
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.sys.model.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* OSS Header签名信息VO(V1签名方式)
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "OSS Header签名信息VO(V1签名方式)")
|
||||
public class OssPostPolicyVO {
|
||||
|
||||
@Schema(description = "OSS上传URL(不含签名参数,前端需要使用Header签名上传)", example = "https://your-bucket.oss-cn-hangzhou.aliyuncs.com/uploads/2024/01/file.jpg")
|
||||
private String url;
|
||||
|
||||
@Schema(description = "存储路径/Key", example = "uploads/2024/01/file.jpg")
|
||||
private String key;
|
||||
|
||||
@Schema(description = "上传所需的Header签名信息(包含Authorization、Date、x-oss-date、Content-Type等)", example = "{\"Authorization\":\"OSS xxx:xxx\",\"Date\":\"Mon, 01 Jan 2024 00:00:00 GMT\",\"x-oss-date\":\"Mon, 01 Jan 2024 00:00:00 GMT\",\"Content-Type\":\"image/jpeg\"}")
|
||||
private Map<String, String> headers;
|
||||
}
|
||||
|
||||
+6
-4
@@ -1,5 +1,7 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.sys.service;
|
||||
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.vo.OssPostPolicyVO;
|
||||
|
||||
import java.io.InputStream;
|
||||
|
||||
/**
|
||||
@@ -8,13 +10,13 @@ import java.io.InputStream;
|
||||
public interface OssService {
|
||||
|
||||
/**
|
||||
* 生成上传URL(预签名URL)
|
||||
* 生成上传Header签名(V1签名方式,HMAC-SHA1)
|
||||
*
|
||||
* @param storagePath 存储路径/Key
|
||||
* @param expirationMinutes 过期时间(分钟)
|
||||
* @return 预签名URL
|
||||
* @param expirationMinutes 过期时间(分钟,当前Header签名不使用此参数,保留用于兼容)
|
||||
* @return Header签名信息(包含上传URL和签名headers)
|
||||
*/
|
||||
String generateUploadUrl(String storagePath, int expirationMinutes);
|
||||
OssPostPolicyVO generateUploadPolicy(String storagePath, int expirationMinutes);
|
||||
|
||||
/**
|
||||
* 生成访问URL(预签名URL)
|
||||
|
||||
+20
@@ -1,8 +1,11 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.sys.service;
|
||||
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.dto.file.BatchCreateOssFileDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.dto.file.BatchSignUrlDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.dto.file.SysFileFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.vo.BatchSignUrlVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.vo.SysFileUploadVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.vo.SysFileVO;
|
||||
@@ -22,6 +25,15 @@ public interface SysFileService {
|
||||
*/
|
||||
List<SysFileUploadVO> batchUploadFiles(List<MultipartFile> files);
|
||||
|
||||
/**
|
||||
* 批量上传文件(仅用于本地存储),支持设置文件分类
|
||||
*
|
||||
* @param files 文件列表
|
||||
* @param category 文件分类
|
||||
* @return 文件信息列表(不包含敏感信息)
|
||||
*/
|
||||
List<SysFileUploadVO> batchUploadFiles(List<MultipartFile> files, String category);
|
||||
|
||||
/**
|
||||
* 批量获取URL签名(用于前端上传到OSS)
|
||||
*
|
||||
@@ -45,5 +57,13 @@ public interface SysFileService {
|
||||
* @return 文件访问URL
|
||||
*/
|
||||
String getFileAccessUrl(Long fileId);
|
||||
|
||||
/**
|
||||
* 分页获取当前公司的文件列表
|
||||
*
|
||||
* @param pageQueryDTO 分页查询DTO
|
||||
* @return 分页结果
|
||||
*/
|
||||
PageResultVO<SysFileVO> getFilePage(PageQueryDTO<SysFileFilterDTO> pageQueryDTO);
|
||||
}
|
||||
|
||||
|
||||
+213
-11
@@ -1,14 +1,27 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.sys.service.impl;
|
||||
|
||||
import com.aliyun.oss.OSS;
|
||||
import com.aliyun.oss.HttpMethod;
|
||||
import com.aliyun.oss.model.GeneratePresignedUrlRequest;
|
||||
import org.springframework.stereotype.Service;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.config.OssConfig;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.vo.OssPostPolicyVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.service.OssService;
|
||||
|
||||
import javax.crypto.Mac;
|
||||
import javax.crypto.spec.SecretKeySpec;
|
||||
import java.io.InputStream;
|
||||
import java.net.URL;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.security.InvalidKeyException;
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
import java.time.ZoneOffset;
|
||||
import java.time.ZonedDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.Base64;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* OSS服务实现类
|
||||
@@ -25,34 +38,223 @@ public class OssServiceImpl implements OssService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String generateUploadUrl(String storagePath, int expirationMinutes) {
|
||||
public OssPostPolicyVO generateUploadPolicy(String storagePath, int expirationMinutes) {
|
||||
if (ossClient == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (ossConfig.getBucketName() == null || ossConfig.getBucketName().isEmpty() ||
|
||||
storagePath == null || storagePath.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
try {
|
||||
Date expiration = new Date(System.currentTimeMillis() + expirationMinutes * 60 * 1000L);
|
||||
GeneratePresignedUrlRequest request = new GeneratePresignedUrlRequest(
|
||||
ossConfig.getBucketName(), storagePath);
|
||||
request.setExpiration(expiration);
|
||||
request.setMethod(com.aliyun.oss.HttpMethod.PUT);
|
||||
URL url = ossClient.generatePresignedUrl(request);
|
||||
return url.toString();
|
||||
// 根据文件后缀获取Content-Type
|
||||
String contentType = getContentTypeFromPath(storagePath);
|
||||
|
||||
// 生成Header签名(V1签名方式,HMAC-SHA1)
|
||||
Map<String, String> headers = generateUploadHeaders(storagePath, contentType);
|
||||
|
||||
// 构建上传URL(不含签名参数)
|
||||
String uploadUrl = buildObjectUrl(storagePath);
|
||||
|
||||
// 构建返回对象
|
||||
OssPostPolicyVO policyVO = new OssPostPolicyVO();
|
||||
policyVO.setUrl(uploadUrl);
|
||||
policyVO.setKey(storagePath);
|
||||
policyVO.setHeaders(headers);
|
||||
|
||||
return policyVO;
|
||||
} catch (Exception e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成上传所需的Header签名(V1签名方式,HMAC-SHA1)
|
||||
* 参考官方文档:VERB + "\n" + CONTENT-MD5 + "\n" + CONTENT-TYPE + "\n" + DATE + "\n" + CanonicalizedOSSHeaders + CanonicalizedResource
|
||||
* 如果使用x-oss-date,需要在CanonicalizedOSSHeaders中包含
|
||||
*/
|
||||
private Map<String, String> generateUploadHeaders(String storagePath, String contentType) {
|
||||
String httpMethod = "PUT";
|
||||
String date = getCurrentUTCDate(); // RFC 1123格式的UTC时间(GMT)
|
||||
String canonicalizedResource = "/" + ossConfig.getBucketName() + "/" + storagePath;
|
||||
|
||||
// 构建CanonicalizedOSSHeaders,包含x-oss-date(值与Date保持一致)
|
||||
// 格式:header-name:header-value\n(按字典序排序)
|
||||
String canonicalizedOSSHeaders = "x-oss-date:" + date + "\n";
|
||||
|
||||
// 构建StringToSign:VERB + "\n" + CONTENT-MD5 + "\n" + CONTENT-TYPE + "\n" + DATE + "\n" + CanonicalizedOSSHeaders + CanonicalizedResource
|
||||
String stringToSign = buildStringToSign(httpMethod, "", contentType != null ? contentType : "", date, canonicalizedOSSHeaders, canonicalizedResource);
|
||||
|
||||
// 计算HMAC-SHA1签名
|
||||
String signature = calculateSignature(stringToSign, ossConfig.getAccessKeySecret());
|
||||
String authorization = "OSS " + ossConfig.getAccessKeyId() + ":" + signature;
|
||||
|
||||
// 构建返回的headers Map
|
||||
Map<String, String> headers = new HashMap<>();
|
||||
headers.put("Authorization", authorization);
|
||||
headers.put("Date", date);
|
||||
headers.put("x-oss-date", date); // x-oss-date值与Date保持一致
|
||||
// 如果contentType为空,使用默认值
|
||||
headers.put("Content-Type", contentType != null && !contentType.isEmpty() ? contentType : "application/octet-stream");
|
||||
|
||||
return headers;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据文件路径获取Content-Type
|
||||
* 从文件路径中提取文件扩展名,然后返回对应的MIME类型
|
||||
*/
|
||||
private String getContentTypeFromPath(String storagePath) {
|
||||
if (storagePath == null || storagePath.isEmpty()) {
|
||||
return "application/octet-stream";
|
||||
}
|
||||
|
||||
// 提取文件扩展名
|
||||
int lastDotIndex = storagePath.lastIndexOf(".");
|
||||
if (lastDotIndex < 0 || lastDotIndex >= storagePath.length() - 1) {
|
||||
return "application/octet-stream";
|
||||
}
|
||||
|
||||
String extension = storagePath.substring(lastDotIndex + 1).toLowerCase();
|
||||
|
||||
// 根据扩展名返回对应的Content-Type
|
||||
return getContentTypeByExtension(extension);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据文件扩展名获取Content-Type
|
||||
*/
|
||||
private String getContentTypeByExtension(String extension) {
|
||||
if (extension == null || extension.isEmpty()) {
|
||||
return "application/octet-stream";
|
||||
}
|
||||
|
||||
// 常见文件类型的MIME类型映射
|
||||
return switch (extension) {
|
||||
// 图片类型
|
||||
case "jpg", "jpeg" -> "image/jpeg";
|
||||
case "png" -> "image/png";
|
||||
case "gif" -> "image/gif";
|
||||
case "bmp" -> "image/bmp";
|
||||
case "webp" -> "image/webp";
|
||||
case "svg" -> "image/svg+xml";
|
||||
case "ico" -> "image/x-icon";
|
||||
|
||||
// 文档类型
|
||||
case "pdf" -> "application/pdf";
|
||||
case "doc" -> "application/msword";
|
||||
case "docx" -> "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
||||
case "xls" -> "application/vnd.ms-excel";
|
||||
case "xlsx" -> "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
||||
case "ppt" -> "application/vnd.ms-powerpoint";
|
||||
case "pptx" -> "application/vnd.openxmlformats-officedocument.presentationml.presentation";
|
||||
|
||||
// 文本类型
|
||||
case "txt" -> "text/plain";
|
||||
case "html", "htm" -> "text/html";
|
||||
case "css" -> "text/css";
|
||||
case "js" -> "application/javascript";
|
||||
case "json" -> "application/json";
|
||||
case "xml" -> "application/xml";
|
||||
|
||||
// 压缩文件
|
||||
case "zip" -> "application/zip";
|
||||
case "rar" -> "application/x-rar-compressed";
|
||||
case "7z" -> "application/x-7z-compressed";
|
||||
case "tar" -> "application/x-tar";
|
||||
case "gz" -> "application/gzip";
|
||||
|
||||
// 视频类型
|
||||
case "mp4" -> "video/mp4";
|
||||
case "avi" -> "video/x-msvideo";
|
||||
case "mov" -> "video/quicktime";
|
||||
case "wmv" -> "video/x-ms-wmv";
|
||||
case "flv" -> "video/x-flv";
|
||||
case "webm" -> "video/webm";
|
||||
|
||||
// 音频类型
|
||||
case "mp3" -> "audio/mpeg";
|
||||
case "wav" -> "audio/wav";
|
||||
case "ogg" -> "audio/ogg";
|
||||
case "aac" -> "audio/aac";
|
||||
case "flac" -> "audio/flac";
|
||||
|
||||
// 其他
|
||||
default -> "application/octet-stream";
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* 构建对象访问URL(不含签名参数)
|
||||
* 格式:https://bucket-name.endpoint/storagePath
|
||||
*/
|
||||
private String buildObjectUrl(String storagePath) {
|
||||
String endpoint = ossConfig.getEndpoint();
|
||||
// 移除协议前缀(如果有)
|
||||
if (endpoint.startsWith("http://")) {
|
||||
endpoint = endpoint.substring(7);
|
||||
} else if (endpoint.startsWith("https://")) {
|
||||
endpoint = endpoint.substring(8);
|
||||
}
|
||||
// 格式:https://bucket-name.endpoint/storagePath
|
||||
return "https://" + ossConfig.getBucketName() + "." + endpoint + "/" + storagePath;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取当前UTC时间(RFC 1123格式)
|
||||
*/
|
||||
private String getCurrentUTCDate() {
|
||||
return ZonedDateTime.now(ZoneOffset.UTC)
|
||||
.format(DateTimeFormatter.RFC_1123_DATE_TIME);
|
||||
}
|
||||
|
||||
/**
|
||||
* 构建待签名字符串(严格按照官方公式)
|
||||
* 公式:VERB + "\n" + Content-MD5 + "\n" + Content-Type + "\n" + Date + "\n" + CanonicalizedOSSHeaders + CanonicalizedResource
|
||||
* 注意:CanonicalizedOSSHeaders 和 CanonicalizedResource 之间没有 "\n",直接连接
|
||||
*/
|
||||
private String buildStringToSign(String httpMethod, String contentMD5, String contentType,
|
||||
String date, String canonicalizedOSSHeaders, String canonicalizedResource) {
|
||||
// 严格按照官方公式构建:VERB + "\n" + Content-MD5 + "\n" + Content-Type + "\n" + Date + "\n" + CanonicalizedOSSHeaders + CanonicalizedResource
|
||||
return httpMethod + "\n"
|
||||
+ (contentMD5 != null ? contentMD5 : "") + "\n"
|
||||
+ (contentType != null ? contentType : "") + "\n"
|
||||
+ date + "\n"
|
||||
+ canonicalizedOSSHeaders + canonicalizedResource;
|
||||
}
|
||||
|
||||
/**
|
||||
* 计算HMAC-SHA1签名
|
||||
*/
|
||||
private String calculateSignature(String stringToSign, String accessKeySecret) {
|
||||
try {
|
||||
Mac mac = Mac.getInstance("HmacSHA1");
|
||||
mac.init(new SecretKeySpec(accessKeySecret.getBytes(StandardCharsets.UTF_8), "HmacSHA1"));
|
||||
byte[] signature = mac.doFinal(stringToSign.getBytes(StandardCharsets.UTF_8));
|
||||
return Base64.getEncoder().encodeToString(signature);
|
||||
} catch (NoSuchAlgorithmException | InvalidKeyException e) {
|
||||
throw new RuntimeException("Error calculating signature", e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String generateAccessUrl(String storagePath, int expirationMinutes) {
|
||||
if (ossClient == null) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
Date expiration = new Date(System.currentTimeMillis() + expirationMinutes * 60 * 1000L);
|
||||
// 设置过期时间(参考官方示例:new Date(new Date().getTime() + 3600 * 1000L))
|
||||
Date expiration = new Date(new Date().getTime() + expirationMinutes * 60 * 1000L);
|
||||
|
||||
// 生成预签名URL(GET方法,用于下载,参考官方示例)
|
||||
GeneratePresignedUrlRequest request = new GeneratePresignedUrlRequest(
|
||||
ossConfig.getBucketName(), storagePath);
|
||||
ossConfig.getBucketName(), storagePath, HttpMethod.GET);
|
||||
// 设置过期时间
|
||||
request.setExpiration(expiration);
|
||||
request.setMethod(com.aliyun.oss.HttpMethod.GET);
|
||||
|
||||
// 通过HTTP GET请求生成预签名URL
|
||||
URL url = ossClient.generatePresignedUrl(request);
|
||||
return url.toString();
|
||||
} catch (Exception e) {
|
||||
|
||||
+201
-6
@@ -1,17 +1,23 @@
|
||||
package top.xyquan.ecomdmbbackend.modules.sys.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import top.xyquan.ecomdmbbackend.common.exception.BusinessException;
|
||||
import top.xyquan.ecomdmbbackend.common.model.dto.PageQueryDTO;
|
||||
import top.xyquan.ecomdmbbackend.common.model.vo.PageResultVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.mapper.SysFileMapper;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.dto.file.BatchCreateOssFileDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.dto.file.BatchSignUrlDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.dto.file.SysFileFilterDTO;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.po.SysFilePO;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.vo.BatchSignUrlVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.vo.OssPostPolicyVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.vo.SysFileUploadVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.model.vo.SysFileVO;
|
||||
import top.xyquan.ecomdmbbackend.modules.sys.service.OssService;
|
||||
@@ -24,6 +30,7 @@ import java.time.LocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 系统文件服务实现类
|
||||
@@ -129,6 +136,129 @@ public class SysFileServiceImpl extends ServiceImpl<SysFileMapper, SysFilePO> im
|
||||
}
|
||||
}
|
||||
|
||||
// 如果没有找到有效的其他公司文件,或者文件不存在,则作为新文件处理
|
||||
if (storagePath == null) {
|
||||
// 没有任何公司有相同文件,生成新的存储路径并上传(仅本地存储)
|
||||
String relativePath = generateStoragePath(file.getOriginalFilename(), fileHash);
|
||||
storagePath = "./" + relativePath;
|
||||
saveFileToLocal(storagePath, file);
|
||||
|
||||
// 创建新记录
|
||||
SysFilePO sysFile = new SysFilePO();
|
||||
sysFile.setCompanyId(companyId);
|
||||
sysFile.setStorageType(storageType);
|
||||
sysFile.setStoragePath(storagePath);
|
||||
sysFile.setFilename(file.getOriginalFilename());
|
||||
sysFile.setFileFormat(getFileExtension(file.getOriginalFilename()).toLowerCase());
|
||||
sysFile.setMimeType(file.getContentType());
|
||||
sysFile.setFileSize(file.getSize());
|
||||
sysFile.setFileHash(fileHash);
|
||||
sysFile.setUploadBy(userId);
|
||||
|
||||
this.save(sysFile);
|
||||
result.add(convertToUploadVO(sysFile));
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public List<SysFileUploadVO> batchUploadFiles(List<MultipartFile> files, String category) {
|
||||
if (files == null || files.isEmpty()) {
|
||||
throw new BusinessException("文件列表不能为空");
|
||||
}
|
||||
|
||||
Long companyId = currentUserContext.getCurrentCompanyId();
|
||||
Long userId = currentUserContext.getCurrentUserId();
|
||||
List<SysFileUploadVO> result = new ArrayList<>();
|
||||
|
||||
for (MultipartFile file : files) {
|
||||
if (file.isEmpty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// 计算文件哈希
|
||||
String fileHash = FileHashUtils.calculateFileHash(file);
|
||||
|
||||
// 检查当前公司是否已有相同哈希的文件
|
||||
LambdaQueryWrapper<SysFilePO> wrapper = new LambdaQueryWrapper<>();
|
||||
wrapper.eq(SysFilePO::getCompanyId, companyId)
|
||||
.eq(SysFilePO::getFileHash, fileHash)
|
||||
.isNull(SysFilePO::getDeleteTime)
|
||||
.last("LIMIT 1");
|
||||
SysFilePO existingFile = this.getOne(wrapper);
|
||||
|
||||
if (existingFile != null) {
|
||||
// 当前公司已有相同文件,先验证文件是否真的存在可访问
|
||||
if (verifyFileExists(existingFile)) {
|
||||
// 如果文件已存在但category不同,更新category
|
||||
if (category != null && !category.equals(existingFile.getCategory())) {
|
||||
existingFile.setCategory(category);
|
||||
this.updateById(existingFile);
|
||||
}
|
||||
result.add(convertToUploadVO(existingFile));
|
||||
continue;
|
||||
} else {
|
||||
// 文件不存在,删除无效记录,继续处理
|
||||
this.removeById(existingFile.getId());
|
||||
}
|
||||
}
|
||||
|
||||
// 检查是否有其他公司已有相同哈希的文件
|
||||
LambdaQueryWrapper<SysFilePO> otherCompanyWrapper = new LambdaQueryWrapper<>();
|
||||
otherCompanyWrapper.eq(SysFilePO::getFileHash, fileHash)
|
||||
.ne(SysFilePO::getCompanyId, companyId)
|
||||
.isNull(SysFilePO::getDeleteTime)
|
||||
.last("LIMIT 1");
|
||||
SysFilePO otherCompanyFile = this.getOne(otherCompanyWrapper);
|
||||
|
||||
String storagePath = null;
|
||||
String storageType = "local"; // 上传接口始终使用本地存储
|
||||
|
||||
if (otherCompanyFile != null) {
|
||||
// 其他公司已有相同文件,先验证文件是否真的存在可访问
|
||||
if (verifyFileExists(otherCompanyFile)) {
|
||||
// 文件存在,复制存储路径和类型
|
||||
storagePath = otherCompanyFile.getStoragePath();
|
||||
storageType = otherCompanyFile.getStorageType();
|
||||
|
||||
// 如果是本地存储,需要重新上传到当前公司的存储路径
|
||||
if ("local".equals(storageType)) {
|
||||
String relativePath = generateStoragePath(file.getOriginalFilename(), fileHash);
|
||||
storagePath = "./" + relativePath;
|
||||
saveFileToLocal(storagePath, file);
|
||||
}
|
||||
// 如果是OSS存储,直接使用相同的存储路径(OSS文件可以跨公司共享)
|
||||
|
||||
// 创建当前公司的文件记录
|
||||
SysFilePO sysFile = new SysFilePO();
|
||||
BeanUtils.copyProperties(otherCompanyFile, sysFile);
|
||||
sysFile.setId(null);
|
||||
sysFile.setCompanyId(companyId);
|
||||
sysFile.setStoragePath(storagePath);
|
||||
sysFile.setStorageType(storageType);
|
||||
sysFile.setFilename(file.getOriginalFilename());
|
||||
sysFile.setFileFormat(getFileExtension(file.getOriginalFilename()).toLowerCase());
|
||||
sysFile.setMimeType(file.getContentType());
|
||||
sysFile.setFileSize(file.getSize());
|
||||
sysFile.setFileHash(fileHash);
|
||||
sysFile.setCategory(category); // 设置文件分类
|
||||
sysFile.setUploadBy(userId);
|
||||
sysFile.setUploadTime(LocalDateTime.now());
|
||||
sysFile.setUpdateTime(null);
|
||||
sysFile.setUpdateBy(null);
|
||||
sysFile.setDeleteTime(null);
|
||||
sysFile.setDeleteBy(null);
|
||||
|
||||
this.save(sysFile);
|
||||
result.add(convertToUploadVO(sysFile));
|
||||
} else {
|
||||
// 文件不存在,删除无效记录,继续处理(当作新文件处理)
|
||||
}
|
||||
}
|
||||
|
||||
// 如果没有找到有效的其他公司文件,或者文件不存在,则作为新文件处理
|
||||
if (storagePath == null) {
|
||||
// 没有任何公司有相同文件,生成新的存储路径并上传(仅本地存储)
|
||||
@@ -146,6 +276,7 @@ public class SysFileServiceImpl extends ServiceImpl<SysFileMapper, SysFilePO> im
|
||||
sysFile.setMimeType(file.getContentType());
|
||||
sysFile.setFileSize(file.getSize());
|
||||
sysFile.setFileHash(fileHash);
|
||||
sysFile.setCategory(category); // 设置文件分类
|
||||
sysFile.setUploadBy(userId);
|
||||
|
||||
this.save(sysFile);
|
||||
@@ -231,10 +362,15 @@ public class SysFileServiceImpl extends ServiceImpl<SysFileMapper, SysFilePO> im
|
||||
}
|
||||
|
||||
if (otherCompanyFile == null) {
|
||||
// 文件不存在,返回OSS签名URL(不创建记录)
|
||||
// 文件不存在,返回OSS Header签名信息(不创建记录)
|
||||
signInfo.setExists(false);
|
||||
String storagePath = generateStoragePath(item.getFilename(), item.getFileHash());
|
||||
signInfo.setUploadUrl(ossService.generateUploadUrl(storagePath, 60));
|
||||
OssPostPolicyVO uploadPolicy = ossService.generateUploadPolicy(storagePath, 120);
|
||||
if (uploadPolicy != null && uploadPolicy.getUrl() != null) {
|
||||
signInfo.setUploadUrl(uploadPolicy.getUrl());
|
||||
signInfo.setUploadHeaders(uploadPolicy.getHeaders());
|
||||
signInfo.setStoragePath(storagePath); // 返回storagePath供前端创建文件记录时使用
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -456,12 +592,71 @@ public class SysFileServiceImpl extends ServiceImpl<SysFileMapper, SysFilePO> im
|
||||
SysFileVO vo = new SysFileVO();
|
||||
BeanUtils.copyProperties(sysFile, vo);
|
||||
|
||||
// 如果是OSS存储,生成访问URL
|
||||
if ("oss".equals(sysFile.getStorageType())) {
|
||||
vo.setAccessUrl(ossService.generateAccessUrl(sysFile.getStoragePath(), 60));
|
||||
}
|
||||
// 使用工具类生成访问URL
|
||||
String accessUrl = SysFileUtils.getFileAccessUrl(sysFile.getStoragePath(), sysFile.getStorageType());
|
||||
vo.setAccessUrl(accessUrl);
|
||||
|
||||
return vo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResultVO<SysFileVO> getFilePage(PageQueryDTO<SysFileFilterDTO> pageQueryDTO) {
|
||||
// 从token中获取公司ID
|
||||
Long companyId = currentUserContext.getCurrentCompanyId();
|
||||
|
||||
// 创建分页对象
|
||||
Page<SysFilePO> page = new Page<>(pageQueryDTO.getPage(), pageQueryDTO.getPageSize());
|
||||
|
||||
// 构建查询条件
|
||||
LambdaQueryWrapper<SysFilePO> wrapper = new LambdaQueryWrapper<>();
|
||||
wrapper.eq(SysFilePO::getCompanyId, companyId)
|
||||
.isNull(SysFilePO::getDeleteTime); // 只查询未删除的文件
|
||||
|
||||
// 添加过滤条件
|
||||
SysFileFilterDTO filter = pageQueryDTO.getFilters();
|
||||
if (filter != null) {
|
||||
// 文件名(模糊查询)
|
||||
if (filter.getFilename() != null && !filter.getFilename().trim().isEmpty()) {
|
||||
wrapper.like(SysFilePO::getFilename, filter.getFilename());
|
||||
}
|
||||
// 文件格式(精准查询)
|
||||
if (filter.getFileFormat() != null && !filter.getFileFormat().trim().isEmpty()) {
|
||||
wrapper.eq(SysFilePO::getFileFormat, filter.getFileFormat());
|
||||
}
|
||||
// 存储类型(精准查询)
|
||||
if (filter.getStorageType() != null && !filter.getStorageType().trim().isEmpty()) {
|
||||
wrapper.eq(SysFilePO::getStorageType, filter.getStorageType());
|
||||
}
|
||||
// 文件分类(精准查询)
|
||||
if (filter.getCategory() != null && !filter.getCategory().trim().isEmpty()) {
|
||||
wrapper.eq(SysFilePO::getCategory, filter.getCategory());
|
||||
}
|
||||
// 标签(模糊查询)
|
||||
if (filter.getTags() != null && !filter.getTags().trim().isEmpty()) {
|
||||
wrapper.like(SysFilePO::getTags, filter.getTags());
|
||||
}
|
||||
// 上传时间范围
|
||||
if (filter.getStartUploadTime() != null) {
|
||||
wrapper.ge(SysFilePO::getUploadTime, filter.getStartUploadTime());
|
||||
}
|
||||
if (filter.getEndUploadTime() != null) {
|
||||
wrapper.le(SysFilePO::getUploadTime, filter.getEndUploadTime());
|
||||
}
|
||||
}
|
||||
|
||||
// 排序:按上传时间倒序
|
||||
wrapper.orderByDesc(SysFilePO::getUploadTime);
|
||||
|
||||
// 执行分页查询
|
||||
IPage<SysFilePO> pageResult = this.page(page, wrapper);
|
||||
|
||||
// 转换为VO并生成访问URL
|
||||
List<SysFileVO> voList = pageResult.getRecords().stream()
|
||||
.map(this::convertToVO)
|
||||
.collect(Collectors.toList());
|
||||
|
||||
// 构建分页结果
|
||||
return PageResultVO.create(voList, pageResult.getTotal(), pageQueryDTO.getPage(), pageQueryDTO.getPageSize());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ spring:
|
||||
redis:
|
||||
host: 192.168.10.3
|
||||
port: 6379
|
||||
password: redis_z6Shsk
|
||||
password: redis_qinghua
|
||||
database: 2
|
||||
timeout: 10000ms # 设置为10秒,大于leftPop的5秒等待时间
|
||||
lettuce:
|
||||
@@ -110,7 +110,7 @@ knife4j:
|
||||
# OSS配置
|
||||
oss:
|
||||
enabled: false
|
||||
endpoint: oss-cn-guangzhou.aliyuncs.com
|
||||
endpoint: https://oss-cn-guangzhou.aliyuncs.com
|
||||
access-key-id: LTAI5t6QFVokh9o3Q3jvQjVc
|
||||
access-key-secret: 8FPEkc0aNETc3Oa7ErYZDTf8aIHpNb
|
||||
bucket-name: xyquan
|
||||
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 642 KiB |
BIN
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
@@ -0,0 +1,160 @@
|
||||
package top.xyquan.pocketdgcuservice.service.impl;
|
||||
|
||||
import com.aliyun.oss.OSS;
|
||||
import com.aliyun.oss.OSSClientBuilder;
|
||||
import jakarta.annotation.PreDestroy;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.util.StringUtils;
|
||||
import top.xyquan.pocketdgcuservice.config.OSSConfig;
|
||||
import top.xyquan.pocketdgcuservice.domain.dto.OssHeaderSignDTO;
|
||||
import top.xyquan.pocketdgcuservice.domain.vo.OssHeaderSignVO;
|
||||
|
||||
import javax.crypto.Mac;
|
||||
import javax.crypto.spec.SecretKeySpec;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.security.InvalidKeyException;
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
import java.time.ZoneOffset;
|
||||
import java.time.ZonedDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Service
|
||||
@RequiredArgsConstructor
|
||||
public class OssService {
|
||||
|
||||
private final OSSConfig ossConfig;
|
||||
private OSS ossClient; // OSSClient实例
|
||||
|
||||
// 批量生成OssHeaderSignVO
|
||||
public List<OssHeaderSignVO> generateBulkUploadHeaderSigns(String belongTo, List<OssHeaderSignDTO> dtos) {
|
||||
Map<String, String> dirMap = new HashMap<>();
|
||||
dirMap.put("post", "pocket-dgcu/post-images");
|
||||
dirMap.put("chat", "pocket-dgcu/chat-images");
|
||||
dirMap.put("avatar", "pocket-dgcu/avatars");
|
||||
dirMap.put("auth", "pocket-dgcu/auth-images");
|
||||
|
||||
String dir = dirMap.getOrDefault(belongTo, "pocket-dgcu/default");
|
||||
|
||||
return dtos
|
||||
.stream()
|
||||
.map(dto -> generateUploadHeaderSign(dir, dto)
|
||||
)
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
// 批量删除文件
|
||||
public void deleteFiles(List<String> urlList) {
|
||||
OSS ossClient = getOssClient();
|
||||
urlList.forEach(url -> {
|
||||
try {
|
||||
String fullPath = url
|
||||
.substring(url.lastIndexOf("aliyuncs.com/") + "aliyuncs.com/".length());
|
||||
ossClient.deleteObject(ossConfig.getBucketName(), fullPath);
|
||||
} catch (Exception e) {
|
||||
// 忽略所有异常
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 获取OSSClient实例(懒加载)
|
||||
private OSS getOssClient() {
|
||||
if (ossClient == null) {
|
||||
synchronized (this) {
|
||||
if (ossClient == null) {
|
||||
// 初始化OSSClient
|
||||
ossClient = new OSSClientBuilder()
|
||||
.build(ossConfig.getEndPoint(), ossConfig.getAccessKeyId(), ossConfig.getAccessKeySecret());
|
||||
}
|
||||
}
|
||||
}
|
||||
return ossClient;
|
||||
}
|
||||
|
||||
// 关闭OSSClient(在应用关闭时调用)
|
||||
@PreDestroy
|
||||
public void shutdown() {
|
||||
if (ossClient != null) {
|
||||
ossClient.shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
// 生成单个OssHeaderSignVO
|
||||
private OssHeaderSignVO generateUploadHeaderSign(String dir, OssHeaderSignDTO dto) {
|
||||
// 生成UUID并拼接文件名
|
||||
String uuidFileName = generateUUIDFileName(dto.getFileName());
|
||||
|
||||
// 生成签名头信息
|
||||
Map<String, String> headers = generateUploadHeaders(dir, uuidFileName, dto.getContentType());
|
||||
|
||||
// 构建OssHeaderSignVO对象
|
||||
OssHeaderSignVO vo = new OssHeaderSignVO();
|
||||
vo.setFileName(dto.getFileName()); // 设置拼接后的文件名
|
||||
vo.setSignUrl(buildObjectUrl(dir, uuidFileName)); // 设置完整URL
|
||||
vo.setAuthorization(headers.get("Authorization")); // 设置Authorization签名
|
||||
vo.setContentType(dto.getContentType()); // 设置ContentType
|
||||
|
||||
return vo;
|
||||
}
|
||||
|
||||
// 生成UUID拼接文件名
|
||||
private String generateUUIDFileName(String fileName) {
|
||||
String uuid = UUID.randomUUID().toString().replace("-", ""); // 生成UUID并去除横线
|
||||
return uuid + "_" + fileName; // 拼接为 uuid_filename 格式
|
||||
}
|
||||
|
||||
// 生成上传所需的Header签名(内部方法)
|
||||
private Map<String, String> generateUploadHeaders(String dir, String fileName, String contentType) {
|
||||
String httpMethod = "PUT";
|
||||
String date = getCurrentUTCDate();
|
||||
String canonicalizedResource = "/" + ossConfig.getBucketName() + "/" + dir + "/" + fileName;
|
||||
|
||||
String stringToSign = buildStringToSign(httpMethod, "", contentType, date, canonicalizedResource);
|
||||
String signature = calculateSignature(stringToSign, ossConfig.getAccessKeySecret());
|
||||
String authorization = "OSS " + ossConfig.getAccessKeyId() + ":" + signature;
|
||||
|
||||
Map<String, String> headers = new HashMap<>();
|
||||
headers.put("Authorization", authorization);
|
||||
headers.put("Date", date);
|
||||
if (StringUtils.hasText(contentType)) {
|
||||
headers.put("Content-Type", contentType);
|
||||
}
|
||||
return headers;
|
||||
}
|
||||
|
||||
// 构建对象访问URL
|
||||
private String buildObjectUrl(String dir, String fileName) {
|
||||
return "https://" + ossConfig.getBucketName() + "." + ossConfig.getEndPoint() + "/" + dir + "/" + fileName;
|
||||
}
|
||||
|
||||
// 获取当前UTC时间(RFC 1123格式)
|
||||
private String getCurrentUTCDate() {
|
||||
return ZonedDateTime.now(ZoneOffset.UTC)
|
||||
.format(DateTimeFormatter.RFC_1123_DATE_TIME);
|
||||
}
|
||||
|
||||
// 构建待签名字符串
|
||||
private String buildStringToSign(String httpMethod, String contentMD5, String contentType,
|
||||
String date, String canonicalizedResource) {
|
||||
return String.join("\n",
|
||||
httpMethod,
|
||||
contentMD5,
|
||||
contentType,
|
||||
date,
|
||||
canonicalizedResource);
|
||||
}
|
||||
|
||||
// 计算HMAC-SHA1签名
|
||||
private String calculateSignature(String stringToSign, String accessKeySecret) {
|
||||
try {
|
||||
Mac mac = Mac.getInstance("HmacSHA1");
|
||||
mac.init(new SecretKeySpec(accessKeySecret.getBytes(StandardCharsets.UTF_8), "HmacSHA1"));
|
||||
byte[] signature = mac.doFinal(stringToSign.getBytes(StandardCharsets.UTF_8));
|
||||
return Base64.getEncoder().encodeToString(signature);
|
||||
} catch (NoSuchAlgorithmException | InvalidKeyException e) {
|
||||
throw new RuntimeException("Error calculating signature", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 6.1 KiB |
@@ -0,0 +1,150 @@
|
||||
商品,订单号,订单状态,商品数量(件),支付时间,商品id,商品规格,商家编码-规格维度,售后状态,订单成交时间,商家实收金额(元)
|
||||
【预防HPV】家用衣物除菌液杀菌除螨衣物混洗温和植源洗衣消毒水,251216-297024960900884,已发货,待收货,"1 ",2025/12/16 23:55,"825569827537 ","强效消灭常见细菌/衣物混洗无忧,家庭必备【大容量-4斤】长效抑菌",YQ091,无售后或售后取消,2025/12/16 23:55,"30.8 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-502860367482245,已发货,待收货,"1 ",2025/12/16 23:40,"788451908871 ","轻奢大牌香丨满身香水味丨持久留香,到手1斤装【补充替换液】",SLJ007,无售后或售后取消,2025/12/16 23:40,"6.8 "
|
||||
【预防HPV】家用衣物除菌液杀菌除螨衣物混洗温和植源洗衣消毒水,251216-210076987022098,已发货,待收货,"1 ",2025/12/16 23:06,"825569827537 ","强效消灭常见细菌/衣物混洗无忧,母婴适用【大容量-2斤】温和配方",SLJ0031,无售后或售后取消,2025/12/16 23:06,"18.8 "
|
||||
【预防甲流】消毒液衣物除菌家用消毒水洗衣专用杀菌除螨酒精非84,251216-140724180522914,已发货,待收货,"1 ",2025/12/16 23:06,"689960275653 ","消字认证【贴身衣物杀菌除螨】母婴可用,消字认证:买1桶发1桶【灭杀活菌】",SLJ0031,无售后或售后取消," ","18.8 "
|
||||
【远离细菌侵扰】香氛衣物除菌液温和植物杀菌除螨洗衣消毒除菌剂,251216-324036258231807,已发货,待收货,"1 ",2025/12/16 22:14,"787153868021 ","【强效杀菌99.999%丨持久留香】,香氛消毒根源杀菌【2瓶*2000ml】",YQ395,无售后或售后取消,2025/12/16 22:14,"32.8 "
|
||||
【老客力荐】洗衣液持久留香去污深层抑菌除螨母婴家庭批发大容量,251216-482035637810686,已发货,待收货,"1 ",2025/12/16 22:02,"873039260045 ","7重植萃成分洗护丨99.9%除菌除螨,【共500g丨1袋】补充替换液",SLJ0054,无售后或售后取消,2025/12/16 22:02,"6.9 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-094104502633752,未发货,退款成功,"1 ",2025/12/16 21:59,"788451908871 ","轻奢大牌香丨满身香水味丨持久留香,到手4斤【清甜樱花洗衣液】",SLJ008,退款成功,2025/12/16 21:59,"18.8 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-351666256271405,已发货,待收货,"1 ",2025/12/16 21:45,"788451908871 ","轻奢大牌香丨满身香水味丨持久留香,到手4斤【清甜樱花洗衣液】",SLJ008,无售后或售后取消,2025/12/16 21:45,"18.8 "
|
||||
【预防HPV】家用衣物除菌液杀菌除螨衣物混洗温和植源洗衣消毒水,251216-293129480631690,已发货,待收货,"1 ",2025/12/16 21:30,"825569827537 ","强效消灭常见细菌/衣物混洗无忧,母婴适用【大容量-2斤】温和配方",SLJ0031,无售后或售后取消,2025/12/16 21:30,"18.8 "
|
||||
【远离细菌侵扰】香氛衣物除菌液温和植物杀菌除螨洗衣消毒除菌剂,251216-617836715531866,已发货,待收货,"1 ",2025/12/16 20:59,"787153868021 ","【强效杀菌99.999%丨持久留香】,香氛消毒根源杀菌【2瓶*2000ml】",YQ395,无售后或售后取消,2025/12/16 20:59,"32.8 "
|
||||
【预防甲流】消毒液衣物除菌家用消毒水洗衣专用杀菌除螨酒精非84,251216-017558433330443,已发货,待收货,"1 ",2025/12/16 20:43,"689960275653 ","消字认证【贴身衣物杀菌除螨】母婴可用,活动特价:买1送1发2桶【杀菌除螨99%】",YQ091,无售后或售后取消,2025/12/16 20:43,"30.8 "
|
||||
【远离细菌侵扰】香氛衣物除菌液温和植物杀菌除螨洗衣消毒除菌剂,251216-062919862653780,已发货,待收货,"1 ",2025/12/16 20:34,"787153868021 ","【强效杀菌99.999%丨持久留香】,香氛消毒根源杀菌【2瓶*2000ml】",YQ395,无售后或售后取消,2025/12/16 20:34,"32.8 "
|
||||
【母婴严选】香氛洗衣液持久留香洁净柔顺去污除菌除螨母婴家庭装,251216-131984310701809,已发货,待收货,"1 ",2025/12/16 20:32,"873071600690 ","【深层洁净丨天然成分丨温和不刺激】,【补充液】小份量500g*1袋",SLJ0054,无售后或售后取消,2025/12/16 20:32,"6.9 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-574771771821593,已发货,待收货,"1 ",2025/12/16 20:31,"788451908871 ","轻奢大牌香丨满身香水味丨持久留香,到手4斤【清甜樱花洗衣液】",SLJ008,无售后或售后取消,2025/12/16 20:31,"18.8 "
|
||||
【预防甲流】消毒液衣物除菌家用消毒水洗衣专用杀菌除螨酒精非84,251216-646399936062245,已发货,待收货,"1 ",2025/12/16 20:31,"689960275653 ","消字认证【贴身衣物杀菌除螨】母婴可用,活动特价:买1送1发2桶【杀菌除螨99%】",YQ091,无售后或售后取消,2025/12/16 20:31,"30.8 "
|
||||
【预防甲流】消毒液衣物除菌家用消毒水洗衣专用杀菌除螨酒精非84,251216-685123879260865,已发货,待收货,"1 ",2025/12/16 19:43,"689960275653 ","消字认证【贴身衣物杀菌除螨】母婴可用,活动特价:买1送1发2桶【杀菌除螨99%】",YQ091,无售后或售后取消,2025/12/16 19:43,"30.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-456660108900593,已发货,待收货,"1 ",2025/12/16 19:16,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 19:16,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-066830999140593,已取消,"1 "," ","844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消," ","29.9 "
|
||||
【老客力荐】洗衣液持久留香去污深层抑菌除螨母婴家庭批发大容量,251216-553548531341284,已发货,待收货,"1 ",2025/12/16 19:08,"873039260045 ","7重植萃成分洗护丨99.9%除菌除螨,【共10斤丨5kg*1桶】90%用户选择",SLJ0065,无售后或售后取消,2025/12/16 19:08,"30.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-396964697653109,已发货,待收货,"1 ",2025/12/16 19:07,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 19:07,"29.9 "
|
||||
【远离细菌侵扰】香氛衣物除菌液温和植物杀菌除螨洗衣消毒除菌剂,251216-300296487351054,未发货,退款成功,"1 ",2025/12/16 19:04,"787153868021 ","【强效杀菌99.999%丨持久留香】,香氛消毒根源杀菌【1瓶*1000ml】",SLJ0092,退款成功,2025/12/16 19:04,"20.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-088573253163830,已发货,待收货,"1 ",2025/12/16 18:57,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 18:57,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-171007024703924,已发货,待收货,"1 ",2025/12/16 18:53,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 18:53,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-572947249563832,已发货,待收货,"1 ",2025/12/16 18:40,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 18:40,"29.9 "
|
||||
【预防甲流】消毒液衣物除菌家用消毒水洗衣专用杀菌除螨酒精非84,251216-192481913170072,已发货,待收货,"1 ",2025/12/16 18:26,"689960275653 ","消字认证【贴身衣物杀菌除螨】母婴可用,消字认证:买1桶发1桶【灭杀活菌】",SLJ0031,无售后或售后取消,2025/12/16 18:26,"18.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-400980733451723,已发货,待收货,"1 ",2025/12/16 18:18,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 18:18,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-351246763560998,已发货,待收货,"1 ",2025/12/16 18:18,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【日用洗护】清新樱花香洗衣液4斤*1瓶",SLJ008,无售后或售后取消,2025/12/16 18:18,"18.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-177655006832036,已发货,待收货,"1 ",2025/12/16 18:11,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【日用洗护】清新樱花香洗衣液4斤*1瓶",SLJ008,无售后或售后取消,2025/12/16 18:11,"18.8 "
|
||||
【远离细菌侵扰】香氛衣物除菌液温和植物杀菌除螨洗衣消毒除菌剂,251216-323826542960758,已发货,待收货,"1 ",2025/12/16 18:06,"787153868021 ","【强效杀菌99.999%丨持久留香】,香氛消毒根源杀菌【1瓶*1000ml】",SLJ0092,无售后或售后取消,2025/12/16 18:06,"20.8 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-320434378263512,已发货,待收货,"1 ",2025/12/16 18:03,"788451908871 ","轻奢大牌香丨满身香水味丨持久留香,到手10斤【盈香玫瑰洗衣液】",SLJ0076,无售后或售后取消,2025/12/16 18:03,"29.9 "
|
||||
【预防甲流】消毒液衣物除菌家用消毒水洗衣专用杀菌除螨酒精非84,251216-433276916031882,已发货,待收货,"1 ",2025/12/16 18:02,"689960275653 ","消字认证【贴身衣物杀菌除螨】母婴可用,活动特价:买1送1发2桶【杀菌除螨99%】",YQ091,无售后或售后取消,2025/12/16 18:02,"30.8 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-284777530880131,已发货,待收货,"1 ",2025/12/16 17:57,"788451908871 ","轻奢大牌香丨满身香水味丨持久留香,到手4斤【清甜樱花洗衣液】",SLJ008,无售后或售后取消,2025/12/16 17:57,"18.8 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-506194849280131,待付款,"1 "," ","788451908871 ","轻奢大牌香丨满身香水味丨持久留香,到手10斤【盈香玫瑰洗衣液】",SLJ0076,无售后或售后取消," ","29.9 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-333095944582705,已发货,待收货,"1 ",2025/12/16 17:35,"788451908871 ","轻奢大牌香丨满身香水味丨持久留香,到手4斤【清甜樱花洗衣液】",SLJ008,无售后或售后取消,2025/12/16 17:35,"18.8 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-570053117440624,已发货,待收货,"1 ",2025/12/16 17:34,"872966119900 ","轻奢大牌香丨满身香水味丨持久留香,到手4斤【清甜樱花洗衣液】",SLJ008,无售后或售后取消,2025/12/16 17:34,"18.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-297533499813801,已发货,待收货,"1 ",2025/12/16 17:23,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 17:23,"29.9 "
|
||||
【预防甲流】消毒液衣物除菌家用消毒水洗衣专用杀菌除螨酒精非84,251216-651784415561776,已取消,"1 "," ","689960275653 ","消字认证【贴身衣物杀菌除螨】母婴可用,活动特价:买1送1发2桶【杀菌除螨99%】",YQ091,无售后或售后取消," ","30.8 "
|
||||
【预防甲流】消毒液衣物除菌家用消毒水洗衣专用杀菌除螨酒精非84,251216-576648650373231,已发货,待收货,"1 ",2025/12/16 17:06,"689960275653 ","消字认证【贴身衣物杀菌除螨】母婴可用,活动特价:买1送1发2桶【杀菌除螨99%】",YQ091,无售后或售后取消,2025/12/16 17:06,"30.8 "
|
||||
【预防甲流】消毒液衣物除菌家用消毒水洗衣专用杀菌除螨酒精非84,251216-382819449121597,已发货,待收货,"1 ",2025/12/16 17:00,"689960275653 ","消字认证【贴身衣物杀菌除螨】母婴可用,活动特价:买1送1发2桶【杀菌除螨99%】",YQ091,无售后或售后取消,2025/12/16 17:00,"30.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-461572729200293,未发货,退款成功,"2 ",2025/12/16 16:50,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【外出便携】小袋装应急洗衣液500g*1袋",SLJ007,退款成功,2025/12/16 16:50,"13.6 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-057603540482015,已发货,待收货,"1 ",2025/12/16 16:45,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 16:45,"29.9 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-081542540892957,已发货,待收货,"1 ",2025/12/16 16:22,"872966119900 ","轻奢大牌香丨满身香水味丨持久留香,到手4斤【清甜樱花洗衣液】",SLJ008,无售后或售后取消,2025/12/16 16:22,"18.8 "
|
||||
【远离细菌侵扰】香氛衣物除菌液温和植物杀菌除螨洗衣消毒除菌剂,251216-489732247960934,已发货,待收货,"1 ",2025/12/16 16:20,"787153868021 ","【强效杀菌99.999%丨持久留香】,香氛消毒根源杀菌【2瓶*2000ml】",YQ395,无售后或售后取消,2025/12/16 16:20,"32.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-351844514190922,已发货,待收货,"1 ",2025/12/16 16:18,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【日用洗护】清新樱花香洗衣液4斤*1瓶",SLJ008,无售后或售后取消,2025/12/16 16:18,"18.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-147623821680907,已发货,待收货,"1 ",2025/12/16 16:14,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 16:14,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-121524733513286,已发货,待收货,"1 ",2025/12/16 16:13,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 16:13,"29.9 "
|
||||
【远离细菌侵扰】香氛衣物除菌液温和植物杀菌除螨洗衣消毒除菌剂,251216-446614750852974,已发货,待收货,"1 ",2025/12/16 16:12,"787153868021 ","【强效杀菌99.999%丨持久留香】,香氛消毒根源杀菌【2瓶*2000ml】",YQ395,无售后或售后取消,2025/12/16 16:12,"32.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-357008750970132,已发货,待收货,"1 ",2025/12/16 16:10,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 16:10,"29.9 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-635148715571529,已发货,待收货,"1 ",2025/12/16 16:06,"872966119900 ","轻奢大牌香丨满身香水味丨持久留香,到手10斤【盈香玫瑰洗衣液】",SLJ0076,无售后或售后取消,2025/12/16 16:06,"29.9 "
|
||||
【预防甲流】消毒液衣物除菌家用消毒水洗衣专用杀菌除螨酒精非84,251216-588235477352551,已发货,待收货,"1 ",2025/12/16 15:50,"689960275653 ","消字认证【贴身衣物杀菌除螨】母婴可用,活动特价:买1送1发2桶【杀菌除螨99%】",YQ091,无售后或售后取消,2025/12/16 15:50,"30.8 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-034241329472449,已发货,待收货,"1 ",2025/12/16 15:45,"872966119900 ","轻奢大牌香丨满身香水味丨持久留香,到手4斤【清甜樱花洗衣液】",SLJ008,无售后或售后取消,2025/12/16 15:45,"18.8 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-659832256861758,未发货,退款成功,"1 ",2025/12/16 15:45,"872966119900 ","轻奢大牌香丨满身香水味丨持久留香,到手10斤【盈香玫瑰洗衣液】",SLJ0076,退款成功,2025/12/16 15:45,"29.9 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-596922887720433,已发货,待收货,"1 ",2025/12/16 15:42,"872966119900 ","轻奢大牌香丨满身香水味丨持久留香,到手4斤【清甜樱花洗衣液】",SLJ008,无售后或售后取消,2025/12/16 15:42,"18.8 "
|
||||
【预防HPV】家用衣物除菌液杀菌除螨衣物混洗温和植源洗衣消毒水,251216-416101251451824,已发货,待收货,"1 ",2025/12/16 15:39,"825569827537 ","强效消灭常见细菌/衣物混洗无忧,母婴适用【大容量-2斤】温和配方",SLJ0031,无售后或售后取消,2025/12/16 15:39,"18.8 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-251857539450919,已发货,待收货,"1 ",2025/12/16 15:24,"872966119900 ","轻奢大牌香丨满身香水味丨持久留香,到手1斤装【补充替换液】",SLJ007,无售后或售后取消,2025/12/16 15:24,"6.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-048596335010591,已发货,待收货,"1 ",2025/12/16 15:18,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 15:18,"29.9 "
|
||||
【预防甲流】消毒液衣物除菌家用消毒水洗衣专用杀菌除螨酒精非84,251216-467523366503670,未发货,退款成功,"1 ",2025/12/16 15:15,"689960275653 ","消字认证【贴身衣物杀菌除螨】母婴可用,消字认证:买1桶发1桶【灭杀活菌】",SLJ0031,退款成功,2025/12/16 15:15,"18.8 "
|
||||
【远离细菌侵扰】香氛衣物除菌液温和植物杀菌除螨洗衣消毒除菌剂,251216-288473803060097,未发货,退款成功,"1 ",2025/12/16 15:01,"787153868021 ","【强效杀菌99.999%丨持久留香】,香氛消毒根源杀菌【2瓶*2000ml】",YQ395,退款成功,2025/12/16 15:01,"32.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-101308188162075,已发货,待收货,"1 ",2025/12/16 14:50,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 14:50,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-555960287590334,已发货,待收货,"1 ",2025/12/16 14:47,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 14:47,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-317482606103277,已发货,待收货,"1 ",2025/12/16 14:45,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 14:45,"29.9 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-185204743830742,已发货,待收货,"1 ",2025/12/16 14:43,"872966119900 ","轻奢大牌香丨满身香水味丨持久留香,到手9斤【清甜樱花洗衣液】",YQ068,无售后或售后取消,2025/12/16 14:43,"29.9 "
|
||||
【老客力荐】洗衣液持久留香去污深层抑菌除螨母婴家庭批发大容量,251216-134663432581519,已发货,待收货,"1 ",2025/12/16 14:43,"873039260045 ","7重植萃成分洗护丨99.9%除菌除螨,【共10斤丨5kg*1桶】90%用户选择",SLJ0065,无售后或售后取消,2025/12/16 14:43,"30.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-385944153721755,已发货,待收货,"1 ",2025/12/16 14:39,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 14:39,"29.9 "
|
||||
【远离细菌侵扰】香氛衣物除菌液温和植物杀菌除螨洗衣消毒除菌剂,251216-321519623682474,已发货,待收货,"1 ",2025/12/16 14:38,"787153868021 ","【强效杀菌99.999%丨持久留香】,香氛消毒根源杀菌【2瓶*2000ml】",YQ395,无售后或售后取消,2025/12/16 14:38,"32.8 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-043563149671140,已发货,待收货,"1 ",2025/12/16 14:37,"872966119900 ","轻奢大牌香丨满身香水味丨持久留香,到手10斤【盈香玫瑰洗衣液】",SLJ0076,无售后或售后取消,2025/12/16 14:37,"29.9 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-555477973371117,已发货,待收货,"1 ",2025/12/16 14:32,"872966119900 ","轻奢大牌香丨满身香水味丨持久留香,到手4斤【清甜樱花洗衣液】",SLJ008,无售后或售后取消,2025/12/16 14:32,"18.8 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-405154045480614,已发货,待收货,"1 ",2025/12/16 14:32,"872966119900 ","轻奢大牌香丨满身香水味丨持久留香,到手4斤【清甜樱花洗衣液】",SLJ008,无售后或售后取消,2025/12/16 14:32,"18.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-207057098243425,已发货,待收货,"1 ",2025/12/16 14:31,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 14:31,"29.9 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-057535393381868,已发货,待收货,"1 ",2025/12/16 14:29,"872966119900 ","轻奢大牌香丨满身香水味丨持久留香,到手4斤【清甜樱花洗衣液】",SLJ008,无售后或售后取消,2025/12/16 14:29,"18.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-031777145183627,已发货,待收货,"1 ",2025/12/16 14:28,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 14:28,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-308145109392650,已取消,"1 "," ","844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消," ","29.9 "
|
||||
【远离细菌侵扰】香氛衣物除菌液温和植物杀菌除螨洗衣消毒除菌剂,251216-245466416783210,未发货,退款成功,"1 ",2025/12/16 14:15,"787153868021 ","【强效杀菌99.999%丨持久留香】,香氛消毒根源杀菌【2瓶*2000ml】",YQ395,退款成功,2025/12/16 14:15,"32.8 "
|
||||
【预防HPV】家用衣物除菌液杀菌除螨衣物混洗温和植源洗衣消毒水,251216-090518372681622,未发货,退款成功,"1 ",2025/12/16 14:03,"825569827537 ","强效消灭常见细菌/衣物混洗无忧,家庭必备【大容量-4斤】长效抑菌",YQ091,退款成功,2025/12/16 14:03,"30.8 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-395234568561226,已发货,待收货,"1 ",2025/12/16 14:02,"788451908871 ","轻奢大牌香丨满身香水味丨持久留香,到手4斤【清甜樱花洗衣液】",SLJ008,无售后或售后取消,2025/12/16 14:02,"18.8 "
|
||||
【远离细菌侵扰】香氛衣物除菌液温和植物杀菌除螨洗衣消毒除菌剂,251216-252691095070004,未发货,退款成功,"1 ",2025/12/16 13:53,"787153868021 ","【强效杀菌99.999%丨持久留香】,香氛消毒根源杀菌【2瓶*2000ml】",YQ395,退款成功,2025/12/16 13:53,"32.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-538763630083819,已发货,待收货,"1 ",2025/12/16 13:44,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【日用洗护】清新樱花香洗衣液4斤*1瓶",SLJ008,无售后或售后取消,2025/12/16 13:44,"18.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-293229074021748,已发货,待收货,"1 ",2025/12/16 13:36,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 13:36,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-629135163821748,已发货,待收货,"1 ",2025/12/16 13:35,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 13:35,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-116171794780667,已取消,"1 "," ","844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消," ","29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-469290248501462,已发货,待收货,"1 ",2025/12/16 13:09,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 13:09,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-222282391102815,已发货,待收货,"1 ",2025/12/16 13:06,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【洗衣搭档】清新樱花香洗衣液9斤*1瓶1袋",YQ068,无售后或售后取消,2025/12/16 13:06,"29.9 "
|
||||
【老客力荐】洗衣液持久留香去污深层抑菌除螨母婴家庭批发大容量,251216-148593774911697,未发货,退款成功,"1 ",2025/12/16 13:02,"873039260045 ","7重植萃成分洗护丨99.9%除菌除螨,【共10斤丨5kg*1桶】90%用户选择",SLJ0065,退款成功,2025/12/16 13:02,"30.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-063423137341411,已发货,待收货,"1 ",2025/12/16 12:58,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 12:58,"29.9 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-314368387390571,已发货,待收货,"1 ",2025/12/16 12:48,"788451908871 ","轻奢大牌香丨满身香水味丨持久留香,到手1斤装【补充替换液】",SLJ007,无售后或售后取消,2025/12/16 12:48,"6.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-176134592060590,已发货,待收货,"1 ",2025/12/16 12:40,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 12:40,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-237219428793467,已发货,待收货,"1 ",2025/12/16 12:35,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 12:35,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-684243075471109,已发货,待收货,"1 ",2025/12/16 12:35,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【外出便携】小袋装应急洗衣液500g*1袋",SLJ007,无售后或售后取消,2025/12/16 12:35,"6.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-364070837791475,已发货,待收货,"1 ",2025/12/16 12:33,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 12:33,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-053293893263110,已发货,待收货,"1 ",2025/12/16 12:31,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 12:31,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-202280855960057,已发货,待收货,"1 ",2025/12/16 12:31,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 12:31,"29.9 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-272603584102467,已发货,待收货,"1 ",2025/12/16 12:26,"872966119900 ","轻奢大牌香丨满身香水味丨持久留香,到手4斤【清甜樱花洗衣液】",SLJ008,无售后或售后取消,2025/12/16 12:26,"18.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-289684887051393,已发货,待收货,"1 ",2025/12/16 12:24,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 12:24,"29.9 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-398448432720899,已发货,待收货,"1 ",2025/12/16 12:15,"872966119900 ","轻奢大牌香丨满身香水味丨持久留香,到手4斤【清甜樱花洗衣液】",SLJ008,无售后或售后取消,2025/12/16 12:15,"18.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-184701427332869,已发货,待收货,"1 ",2025/12/16 12:13,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 12:13,"29.9 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-461902978561652,已发货,待收货,"1 ",2025/12/16 12:11,"872966119900 ","轻奢大牌香丨满身香水味丨持久留香,到手10斤【盈香玫瑰洗衣液】",SLJ0076,无售后或售后取消,2025/12/16 12:11,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-624710193553197,已发货,待收货,"1 ",2025/12/16 11:57,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 11:57,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-659522916721278,已发货,待收货,"1 ",2025/12/16 11:52,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 11:52,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-359829410202120,已发货,待收货,"1 ",2025/12/16 11:39,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【日用洗护】清新樱花香洗衣液4斤*1瓶",SLJ008,无售后或售后取消,2025/12/16 11:39,"18.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-238163126680973,已发货,待收货,"1 ",2025/12/16 11:39,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【日用洗护】清新樱花香洗衣液4斤*1瓶",SLJ008,无售后或售后取消,2025/12/16 11:39,"18.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-089653266030966,已发货,待收货,"1 ",2025/12/16 11:33,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【日用洗护】清新樱花香洗衣液4斤*1瓶",SLJ008,无售后或售后取消,2025/12/16 11:33,"18.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-169890291301704,已发货,待收货,"1 ",2025/12/16 11:26,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【日用洗护】清新樱花香洗衣液4斤*1瓶",SLJ008,无售后或售后取消,2025/12/16 11:26,"18.8 "
|
||||
【远离细菌侵扰】香氛衣物除菌液温和植物杀菌除螨洗衣消毒除菌剂,251216-557884434850824,已发货,待收货,"1 ",2025/12/16 11:25,"787153868021 ","【强效杀菌99.999%丨持久留香】,香氛消毒根源杀菌【2瓶*2000ml】",YQ395,无售后或售后取消,2025/12/16 11:25,"32.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-029664233040806,已发货,待收货,"1 ",2025/12/16 11:12,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 11:12,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-442006321453542,已取消,"1 "," ","844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消," ","29.9 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-507731002912960,已发货,待收货,"1 ",2025/12/16 10:23,"788451908871 ","轻奢大牌香丨满身香水味丨持久留香,到手1斤装【补充替换液】",SLJ007,无售后或售后取消,2025/12/16 10:23,"6.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-086486586963288,已发货,待收货,"1 ",2025/12/16 10:12,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 10:12,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-196513635951190,已发货,待收货,"1 ",2025/12/16 10:09,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 10:09,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-333164060302440,已发货,待收货,"1 ",2025/12/16 10:02,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【日用洗护】清新樱花香洗衣液4斤*1瓶",SLJ008,无售后或售后取消,2025/12/16 10:02,"18.8 "
|
||||
【远离细菌侵扰】香氛衣物除菌液温和植物杀菌除螨洗衣消毒除菌剂,251216-416987225600378,已发货,待收货,"1 ",2025/12/16 9:56,"787153868021 ","【强效杀菌99.999%丨持久留香】,香氛消毒根源杀菌【1瓶*1000ml】",SLJ0092,无售后或售后取消,2025/12/16 9:56,"20.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-417155008091863,已发货,待收货,"1 ",2025/12/16 9:34,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 9:34,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-437340137800770,已发货,待收货,"2 ",2025/12/16 9:24,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【日用洗护】清新樱花香洗衣液4斤*1瓶",SLJ008,无售后或售后取消,2025/12/16 9:24,"37.6 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-010108280341088,已发货,待收货,"1 ",2025/12/16 9:22,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 9:22,"29.9 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-686083326330509,已发货,待收货,"1 ",2025/12/16 9:11,"872966119900 ","轻奢大牌香丨满身香水味丨持久留香,到手18斤【清甜樱花洗衣液】",YQ080,无售后或售后取消,2025/12/16 9:11,"59.9 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-090974513463566,已发货,待收货,"1 ",2025/12/16 9:03,"872966119900 ","轻奢大牌香丨满身香水味丨持久留香,到手4斤【清甜樱花洗衣液】",SLJ008,无售后或售后取消,2025/12/16 9:03,"18.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-142323290441370,已发货,待收货,"1 ",2025/12/16 8:55,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 8:55,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-399140534620623,已发货,待收货,"1 ",2025/12/16 8:49,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【日用洗护】清新樱花香洗衣液4斤*1瓶",SLJ008,无售后或售后取消,2025/12/16 8:49,"18.8 "
|
||||
【远离细菌侵扰】香氛衣物除菌液温和植物杀菌除螨洗衣消毒除菌剂,251216-284709425481989,已发货,待收货,"1 ",2025/12/16 8:48,"787153868021 ","【强效杀菌99.999%丨持久留香】,香氛消毒根源杀菌【2瓶*2000ml】",YQ395,无售后或售后取消,2025/12/16 8:48,"32.8 "
|
||||
【远离细菌侵扰】香氛衣物除菌液温和植物杀菌除螨洗衣消毒除菌剂,251216-157045307760921,已发货,待收货,"1 ",2025/12/16 8:46,"787153868021 ","【强效杀菌99.999%丨持久留香】,香氛消毒根源杀菌【2瓶*2000ml】",YQ395,无售后或售后取消,2025/12/16 8:46,"32.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-092620767673187,已取消,"1 "," ","844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消," ","29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-595842844281673,已发货,待收货,"1 ",2025/12/16 8:28,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【日用洗护】清新樱花香洗衣液4斤*1瓶",SLJ008,无售后或售后取消,2025/12/16 8:28,"18.8 "
|
||||
【预防甲流】消毒液衣物除菌家用消毒水洗衣专用杀菌除螨酒精非84,251216-481191534232379,已发货,待收货,"1 ",2025/12/16 7:55,"689960275653 ","消字认证【贴身衣物杀菌除螨】母婴可用,消字认证:买1桶发1桶【灭杀活菌】",SLJ0031,无售后或售后取消,2025/12/16 7:55,"18.8 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-650966474261377,已发货,待收货,"1 ",2025/12/16 7:50,"872966119900 ","轻奢大牌香丨满身香水味丨持久留香,到手10斤【盈香玫瑰洗衣液】",SLJ0076,无售后或售后取消,2025/12/16 7:50,"29.9 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-537007265341213,已发货,待收货,"1 ",2025/12/16 7:39,"872966119900 ","轻奢大牌香丨满身香水味丨持久留香,到手4斤【清甜樱花洗衣液】",SLJ008,无售后或售后取消,2025/12/16 7:39,"18.8 "
|
||||
【预防甲流】消毒液衣物除菌家用消毒水洗衣专用杀菌除螨酒精非84,251216-102225681990011,已发货,待收货,"1 ",2025/12/16 18:39,"689960275653 ","消字认证【贴身衣物杀菌除螨】母婴可用,活动特价:买1送1发2桶【杀菌除螨99%】",YQ091,无售后或售后取消,2025/12/16 18:39,"30.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-529562355252094,已发货,待收货,"1 ",2025/12/16 7:12,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【日用洗护】清新樱花香洗衣液4斤*1瓶",SLJ008,无售后或售后取消,2025/12/16 7:12,"18.8 "
|
||||
【远离细菌侵扰】香氛衣物除菌液温和植物杀菌除螨洗衣消毒除菌剂,251216-630917773752894,已发货,待收货,"1 ",2025/12/16 6:38,"787153868021 ","【强效杀菌99.999%丨持久留香】,香氛消毒根源杀菌【1瓶*1000ml】",SLJ0092,无售后或售后取消,2025/12/16 6:38,"20.8 "
|
||||
【远离细菌侵扰】香氛衣物除菌液温和植物杀菌除螨洗衣消毒除菌剂,251216-390259054092275,已发货,待收货,"1 ",2025/12/16 5:50,"787153868021 ","【强效杀菌99.999%丨持久留香】,香氛消毒根源杀菌【2瓶*2000ml】",YQ395,无售后或售后取消,2025/12/16 5:50,"32.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-077709975081033,已发货,待收货,"1 ",2025/12/16 5:44,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【日用洗护】清新樱花香洗衣液4斤*1瓶",SLJ008,无售后或售后取消,2025/12/16 5:44,"18.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-368018768260503,已发货,待收货,"1 ",2025/12/16 5:40,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 5:40,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-220505106870584,已发货,待收货,"1 ",2025/12/16 5:29,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 5:29,"29.9 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-193829353863158,已发货,待收货,"1 ",2025/12/16 5:03,"872966119900 ","轻奢大牌香丨满身香水味丨持久留香,到手10斤【盈香玫瑰洗衣液】",SLJ0076,无售后或售后取消,2025/12/16 5:03,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-660099602003743,已发货,待收货,"1 ",2025/12/16 5:01,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 5:01,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-590054736172269,已发货,待收货,"1 ",2025/12/16 4:16,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【洗衣搭档】清新樱花香洗衣液9斤*1瓶1袋",YQ068,无售后或售后取消,2025/12/16 4:16,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-375641936210221,已发货,待收货,"1 ",2025/12/16 3:30,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 3:30,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-649582395821108,已发货,待收货,"1 ",2025/12/16 2:18,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 2:18,"29.9 "
|
||||
【远离细菌侵扰】香氛衣物除菌液温和植物杀菌除螨洗衣消毒除菌剂,251216-045508236813470,已发货,待收货,"1 ",2025/12/16 1:57,"787153868021 ","【强效杀菌99.999%丨持久留香】,香氛消毒根源杀菌【2瓶*2000ml】",YQ395,无售后或售后取消,2025/12/16 1:57,"32.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-657373304441612,已发货,待收货,"1 ",2025/12/16 1:56,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 1:56,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-575479550320200,已发货,待收货,"1 ",2025/12/16 1:32,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 1:32,"29.9 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-590054725153531,已发货,待收货,"1 ",2025/12/16 1:28,"788451908871 ","轻奢大牌香丨满身香水味丨持久留香,到手1斤装【补充替换液】",SLJ007,无售后或售后取消,2025/12/16 1:28,"6.8 "
|
||||
【远离细菌侵扰】香氛衣物除菌液温和植物杀菌除螨洗衣消毒除菌剂,251216-532529825312800,已发货,待收货,"1 ",2025/12/16 1:16,"787153868021 ","【强效杀菌99.999%丨持久留香】,香氛消毒根源杀菌【2瓶*2000ml】",YQ395,无售后或售后取消,2025/12/16 1:16,"32.8 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-608488670813482,已发货,待收货,"1 ",2025/12/16 1:14,"788451908871 ","轻奢大牌香丨满身香水味丨持久留香,到手4斤【清甜樱花洗衣液】",SLJ008,无售后或售后取消,2025/12/16 1:14,"18.8 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-208435944962039,已发货,待收货,"1 ",2025/12/16 1:08,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 1:08,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-582043584062140,未发货,退款成功,"1 ",2025/12/16 0:57,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,退款成功,2025/12/16 0:57,"29.9 "
|
||||
【央ma力荐】洗衣液持久留香强效抑菌去污渍除螨通用家庭装大容量,251216-377005064611581,已发货,待收货,"1 ",2025/12/16 0:56,"844555867211 ","【一瓶搞定洗衣难题】除菌除螨/去污/祛味留香,【超大容量】香氛玫瑰花洗衣液10斤*1大桶",SLJ0076,无售后或售后取消,2025/12/16 0:56,"29.9 "
|
||||
【山姆特惠购】洗衣液持久留香除污渍抑菌除螨洁净母婴学生家庭装,251216-340661409340151,已发货,退款成功,"1 ",2025/12/16 0:36,"788451908871 ","轻奢大牌香丨满身香水味丨持久留香,到手4斤【清甜樱花洗衣液】",SLJ008,退款成功,2025/12/16 0:36,"18.8 "
|
||||
【远离细菌侵扰】香氛衣物除菌液温和植物杀菌除螨洗衣消毒除菌剂,251216-527790313772658,已发货,待收货,"1 ",2025/12/16 0:27,"787153868021 ","【强效杀菌99.999%丨持久留香】,香氛消毒根源杀菌【2瓶*2000ml】",YQ395,无售后或售后取消,2025/12/16 0:27,"32.8 "
|
||||
【远离细菌侵扰】香氛衣物除菌液温和植物杀菌除螨洗衣消毒除菌剂,251216-257698055833781,已发货,待收货,"1 ",2025/12/16 0:19,"787153868021 ","【强效杀菌99.999%丨持久留香】,香氛消毒根源杀菌【2瓶*2000ml】",YQ395,无售后或售后取消,2025/12/16 0:19,"32.8 "
|
||||
【远离细菌侵扰】香氛衣物除菌液温和植物杀菌除螨洗衣消毒除菌剂,251216-028332603802393,已发货,待收货,"1 ",2025/12/16 0:18,"787153868021 ","【强效杀菌99.999%丨持久留香】,香氛消毒根源杀菌【2瓶*2000ml】",YQ395,无售后或售后取消,2025/12/16 0:18,"32.8 "
|
||||
|
Binary file not shown.
|
After Width: | Height: | Size: 194 KiB |
Reference in New Issue
Block a user