package com.vincent.rsf.openApi.feign.erp;
|
|
import com.vincent.rsf.openApi.entity.params.ReportParams;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.http.MediaType;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import java.util.Map;
|
|
/**
|
* 调用 ERP/云仓 上报接口的 OpenFeign 客户端(订单完成回写、盘点差异单修改)。
|
* 可选方式,当前仍使用 HttpEntity(RestTemplate);启用时在 WmsErpServiceImpl 中切换。
|
*/
|
@FeignClient(
|
name = "erp-report",
|
url = "${platform.erp.host:http://127.0.0.1}:${platform.erp.port:8080}"
|
)
|
public interface ErpReportFeignClient {
|
|
/** 订单完成回写 / 盘点差异单修改:同一 ERP 回调地址 */
|
@PostMapping(value = "/C3Api?SysCode=WMS", consumes = MediaType.APPLICATION_JSON_VALUE)
|
Map<String, Object> report(@RequestBody ReportParams params);
|
}
|