This commit is contained in:
jing's 2024-02-16 23:01:47 +08:00
parent 3355b29dad
commit b280a73b4d
3 changed files with 68 additions and 1 deletions

View File

@ -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;
}
}

View File

@ -29,7 +29,7 @@ public class ReverseReportQuery {
@NotNull(message = "查询方式不能为空")
private Integer queryType;
@ApiModelProperty("版本策略 0-最新版 1-全部版本")
@ApiModelProperty("版本策略 0-最新版 1-全部版本 2-指定版本")
private Integer versionStrategy;
@ApiModelProperty("BOM-版本号")

View File

@ -0,0 +1,12 @@
package com.nflg.product.bomnew.service;
import org.springframework.stereotype.Service;
@Service
public class ForwardReportService {
}