This commit is contained in:
2025-11-06 19:36:24 +08:00
parent 714fce242f
commit 8f68b7a4d5
7 changed files with 426 additions and 13 deletions

View File

@@ -0,0 +1,47 @@
package com.ruoyi.jarvis.domain;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 腾讯文档操作日志对象 tencent_doc_operation_log
*
* @author system
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class TencentDocOperationLog extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 主键ID */
private Long id;
/** 文档ID */
private String fileId;
/** 工作表ID */
private String sheetId;
/** 操作类型 */
private String operationType;
/** 订单单号 */
private String orderNo;
/** 目标行号 */
private Integer targetRow;
/** 写入的物流链接 */
private String logisticsLink;
/** 操作状态 */
private String operationStatus;
/** 错误信息 */
private String errorMessage;
/** 操作人 */
private String operator;
}

View File

@@ -0,0 +1,21 @@
package com.ruoyi.jarvis.mapper;
import com.ruoyi.jarvis.domain.TencentDocOperationLog;
import org.apache.ibatis.annotations.Mapper;
/**
* 腾讯文档操作日志Mapper接口
*
* @author system
*/
@Mapper
public interface TencentDocOperationLogMapper {
/**
* 插入操作日志
*
* @param log 操作日志
* @return 结果
*/
int insertLog(TencentDocOperationLog log);
}

View File

@@ -1233,10 +1233,11 @@ private String handleTF(String input) {
jdOrderService.insertJDOrder(order);
}
// 如果分销标识是 H-TF自动写入腾讯文档
if ("H-TF".equals(order.getDistributionMark())) {
asyncWriteToTencentDoc(order);
}
// 注意H-TF订单不再自动写入腾讯文档需通过订单列表手动触发
// 原因:防止并发写入和数据覆盖,需要人工确认
// if ("H-TF".equals(order.getDistributionMark())) {
// asyncWriteToTencentDoc(order);
// }
// 返回完整的表单格式,使用原始输入保留完整物流链接
return formatOrderForm(order, originalInput);