|
|
|
@ -6,6 +6,7 @@ import com.project.logistics.domain.entity.LogisticsOrderEntity; |
|
|
|
|
|
|
|
import com.project.logistics.domain.enums.*; |
|
|
|
import com.project.logistics.domain.service.base.*; |
|
|
|
import com.project.receive.domain.dto.SfPodPushRequest; |
|
|
|
import com.project.receive.domain.dto.SfRoutePushRequest; |
|
|
|
import com.project.receive.domain.entity.FeePushLogEntity; |
|
|
|
import com.project.receive.domain.entity.PodPushLogEntity; |
|
|
|
@ -204,14 +205,18 @@ public class ReceiveService { |
|
|
|
/** |
|
|
|
* 处理 POD 图片推送 |
|
|
|
*/ |
|
|
|
public void savePodPictureLog(String content) throws Exception { |
|
|
|
public void savePodPictureLog(SfPodPushRequest request) throws Exception { |
|
|
|
// 关键:POD 推送包含巨大的 Base64 字节,这里只做存库。
|
|
|
|
// 具体的解析、下载、传 WebDAV 交由后续的 SF_DOWNLOAD_POD 任务去重试执行。
|
|
|
|
String waybillNo = JsonPath.read(content, "$.waybillNo"); |
|
|
|
String waybillNo = request.getWaybillNo(); |
|
|
|
String base64Data = request.getContent(); |
|
|
|
if (waybillNo == null) { |
|
|
|
throw new IllegalArgumentException("运单号不能为空"); |
|
|
|
} |
|
|
|
|
|
|
|
PodPushLogEntity podLog = new PodPushLogEntity(); |
|
|
|
podLog.setWaybillNo(waybillNo); |
|
|
|
podLog.setRawPushData(content); // 存入 LONGTEXT 字段
|
|
|
|
podLog.setRawPushData(base64Data); // 存入 LONGTEXT 字段
|
|
|
|
podLog.setProcessStatus(SyncStatusEnum.WAIT.getCode()); |
|
|
|
podPushLogService.save(podLog); |
|
|
|
|
|
|
|
|