package com.vincent.rsf.server.api.config;
|
|
import lombok.Data;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.context.annotation.Configuration;
|
|
/**
|
* @author Ryan
|
* @version 1.0
|
* @title RemotesInfoProperties
|
* @description
|
* @create 2025/3/7 09:48
|
*/
|
@Data
|
@Configuration
|
@ConfigurationProperties(prefix = "platform.erp")
|
public class RemotesInfoProperties {
|
|
/**
|
* 接口host
|
*/
|
private String host;
|
/**
|
* 端口号
|
*/
|
private String port;
|
|
/**
|
* 接口链接前缀
|
*/
|
private String prePath;
|
|
/**
|
* 云仓地址
|
*/
|
private String baseUrl;
|
|
/**
|
* 鼎捷 ilcwmsplus 完成反馈等公共字段(orgNo、单据类别、单位)
|
*/
|
private Dap dap = new Dap();
|
|
@Data
|
public static class Dap {
|
private String orgNo = "";
|
private String docTypeIn = "";
|
private String docTypeOut = "";
|
/** 库存调整(9.2)单据类别;移库等 */
|
private String docTypeAdj = "";
|
private String unitNo = "PCS";
|
}
|
|
@Data
|
@Configuration
|
@ConfigurationProperties(prefix = "platform.erp.api")
|
public class ApiInfo {
|
/** 一键上报质检接口 */
|
private String notifyInspect;
|
/** 已改为 Feign 固定路径 /dapilc/.../cusInventoryCompletionReport、cusOutboundCompletionReport,本项仅作配置占位 */
|
private String inOutResultPath = "/dapilc/restful/service/ilcwmsplus/IKWebService/cusInventoryCompletionReport";
|
/** 9.2 库存调整:仍为 /api/report/inventoryAdjust,报文体与 9.1 一致为 {data:[]} */
|
private String inventoryAdjustPath = "/api/report/inventoryAdjust";
|
/** 物料基础信息同步(立库侧请求云仓) */
|
private String matSyncPath = "/api/mat/sync";
|
}
|
|
@Data
|
@Configuration
|
@ConfigurationProperties(prefix = "platform.rcs")
|
public class RcsApi {
|
/**
|
* rcs调用路径
|
*/
|
private String host;
|
|
/**rcs调用端口**/
|
private String port;
|
|
}
|
|
|
public String getBaseUrl() {
|
return this.host + ":" + this.port + "/" + this.prePath;
|
}
|
}
|