|
|
|
|
@ -8,8 +8,10 @@ import okhttp3.*; |
|
|
|
|
import org.springblade.wms.pojo.dto.ErpStPurOtherDTO; |
|
|
|
|
import org.springblade.wms.pojo.dto.StPdmPartDTO; |
|
|
|
|
import org.springblade.wms.pojo.dto.StPdmPartResponseDTO; |
|
|
|
|
import org.springblade.wms.service.IStBuyOrderService; |
|
|
|
|
import org.springblade.wms.service.ISyDockingLogService; |
|
|
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
|
|
import org.springframework.context.annotation.Lazy; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
import java.io.IOException; |
|
|
|
|
@ -41,8 +43,9 @@ public class StHttpRequestService { |
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
private ISyDockingLogService syDockingLogService; |
|
|
|
|
// @Resource
|
|
|
|
|
// private IStBuyOrderService stBuyOrderService;
|
|
|
|
|
@Resource |
|
|
|
|
@Lazy |
|
|
|
|
private IStBuyOrderService stBuyOrderService; |
|
|
|
|
// private final ISyDockingLogService syDockingLogService;
|
|
|
|
|
//
|
|
|
|
|
// private final IStBuyOrderService stBuyOrderService;
|
|
|
|
|
@ -215,7 +218,7 @@ public class StHttpRequestService { |
|
|
|
|
// 4. 处理响应结果(和原逻辑一致)
|
|
|
|
|
if (result != null && "200".equals(result.getString("retCode"))) { |
|
|
|
|
// 成功:更新额外单号
|
|
|
|
|
// stBuyOrderService.httpUpdateBo(erpStPurOtherDto.getBoId(), result.getString("responseBody"));
|
|
|
|
|
stBuyOrderService.httpUpdateBo(erpStPurOtherDto.getBoId(), result.getString("responseBody")); |
|
|
|
|
} else { |
|
|
|
|
// 失败:记录日志并跳过
|
|
|
|
|
String errorDesc = result != null ? result.getString("errorDesc") : "未知错误"; |
|
|
|
|
|