新增-erp物料查询接口api
This commit is contained in:
@@ -1,6 +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.ErpMaterialDTO;
|
||||
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;
|
||||
@@ -33,4 +34,8 @@ public interface ErpExternalApi {
|
||||
@GetMapping(PREFIX + "/queryProductiveVersion")
|
||||
@Operation(summary = "生产版本数据查询")
|
||||
CommonResult<String> getErpProductiveVersionByFM(@Valid @RequestBody ErpProductiveVersionReqDTO reqDTO);
|
||||
|
||||
@GetMapping(PREFIX + "/queryMaterial")
|
||||
@Operation(summary = "物料数据查询")
|
||||
CommonResult<ErpMaterialDTO> getErpMaterial(@Valid @RequestBody ErpMaterialDTO reqDTO);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
package com.zt.plat.module.erp.api.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - ERP物料数据 Response VO")
|
||||
@Data
|
||||
public class ErpMaterialDTO {
|
||||
|
||||
@Schema(description = "主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "中铜物料编码;系统使用时使用该编码")
|
||||
private String downCenterNumber;
|
||||
|
||||
@Schema(description = "物料编码")
|
||||
private String materialNumber;
|
||||
|
||||
@Schema(description = "中铝物料编码")
|
||||
private String centerNumber;
|
||||
|
||||
@Schema(description = "创建日期")
|
||||
private LocalDateTime createDate;
|
||||
|
||||
@Schema(description = "物料类型", example = "2")
|
||||
private String materialType;
|
||||
|
||||
@Schema(description = "物料大类组")
|
||||
private String materialGroupDate;
|
||||
|
||||
@Schema(description = "外部物料小类组")
|
||||
private String externalMaterialGroupDate;
|
||||
|
||||
@Schema(description = "计量单位编码")
|
||||
private String unit;
|
||||
|
||||
@Schema(description = "计量单位描述")
|
||||
private String unitDescription;
|
||||
|
||||
@Schema(description = "物料类型描述")
|
||||
private String materialTypeDescription;
|
||||
|
||||
@Schema(description = "物料组描述")
|
||||
private String materialGroupDescription;
|
||||
|
||||
@Schema(description = "外部物料小类组描述")
|
||||
private String externalMaterialGroupDescription;
|
||||
|
||||
@Schema(description = "物料名称", example = "李四")
|
||||
private String materialName;
|
||||
|
||||
@Schema(description = "物料长描述")
|
||||
private String materialLengthDescription;
|
||||
|
||||
@Schema(description = "类型")
|
||||
private String type;
|
||||
|
||||
@Schema(description = "金属元素缩写")
|
||||
private String abbreviation;
|
||||
|
||||
@Schema(description = "金属元素名称", example = "赵六")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "金属元素编码")
|
||||
private String coding;
|
||||
|
||||
@Schema(description = "品位单位")
|
||||
private String gradeUnit;
|
||||
|
||||
@Schema(description = "小数位数")
|
||||
private Long decimalValue;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user