chen.lin
2 天以前 9140aee230de0ef41de9682a9353fbd372e2bcaa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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);
}