erp根据工厂、物料查询生产版本
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.zt.plat.module.erp.api;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.module.erp.api.dto.ErpProductiveVersionReqDTO;
|
||||
import com.zt.plat.module.erp.api.dto.ErpQueryReqDTO;
|
||||
import com.zt.plat.module.erp.api.dto.ErpSubmitReqDTO;
|
||||
import com.zt.plat.module.erp.enums.ApiConstants;
|
||||
@@ -10,6 +12,7 @@ import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
@@ -28,4 +31,7 @@ public interface ErpExternalApi {
|
||||
@Operation(summary = "erp数据查询")
|
||||
HashMap<String, Object> queryDataToErp(@Valid @RequestBody ErpQueryReqDTO reqDTO);
|
||||
|
||||
@GetMapping(PREFIX + "/queryProductiveVersion")
|
||||
@Operation(summary = "生产版本数据查询")
|
||||
CommonResult<String> getErpProductiveVersionByFM(@Valid @RequestBody ErpProductiveVersionReqDTO reqDTO);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.zt.plat.module.erp.api.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@Schema(description = "RPC 服务 - 查询 ERP DTO")
|
||||
@Data
|
||||
public class ErpProductiveVersionReqDTO {
|
||||
|
||||
@Schema(description = "工厂编码")
|
||||
@NotNull(message = "工厂编码不能为空")
|
||||
private String factoryNumber;
|
||||
@Schema(description = "物料编码")
|
||||
@NotNull(message = "物料编码不能为空")
|
||||
private String materialNumber;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user