This commit is contained in:
parent
3355b29dad
commit
b280a73b4d
|
|
@ -0,0 +1,55 @@
|
|||
package com.nflg.product.bomnew.constant;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
public class ReportConstant {
|
||||
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
public enum BomTypeEnum implements ValueEnum<Integer> {
|
||||
|
||||
//BOM 类型 0-原始BOM 1-EBom 2-PBom 3-MBom
|
||||
ORIGINAL_BOM(0, "原始BOM"),
|
||||
E_BOM(1, "EBom"),
|
||||
P_BOM(2, "PBom"),
|
||||
M_BOM(3, "MBom");
|
||||
|
||||
private final Integer value;
|
||||
private final String description;
|
||||
|
||||
}
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
public enum QueryTypeEnum implements ValueEnum<Integer> {
|
||||
|
||||
//查询方式 0-单层 1-多层 2-汇总
|
||||
SINGLE(0, "单层"),
|
||||
MULTI(1, "多层"),
|
||||
SUM(2, "汇总");
|
||||
|
||||
private final Integer value;
|
||||
private final String description;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@AllArgsConstructor
|
||||
@Getter
|
||||
public enum VersionStrategyEnum implements ValueEnum<Integer> {
|
||||
|
||||
//版本策略 0-最新版 1-全部版本 2-指定版本
|
||||
NEW(0, "最新版"),
|
||||
ALL(1, "全部版本"),
|
||||
DEFINE(2, "指定版本");
|
||||
|
||||
private final Integer value;
|
||||
private final String description;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -29,7 +29,7 @@ public class ReverseReportQuery {
|
|||
@NotNull(message = "查询方式不能为空")
|
||||
private Integer queryType;
|
||||
|
||||
@ApiModelProperty("版本策略 0-最新版 1-全部版本")
|
||||
@ApiModelProperty("版本策略 0-最新版 1-全部版本 2-指定版本")
|
||||
private Integer versionStrategy;
|
||||
|
||||
@ApiModelProperty("BOM-版本号")
|
||||
|
|
|
|||
|
|
@ -0,0 +1,12 @@
|
|||
package com.nflg.product.bomnew.service;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
public class ForwardReportService {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue