fix: pbom导出时将T类型的编号和图号置为空
This commit is contained in:
parent
58c4a166d4
commit
8634cffaf7
|
|
@ -1,6 +1,8 @@
|
|||
package com.nflg.product.bomnew.pojo.vo;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.nflg.product.bomnew.constant.BomConstant;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
|
@ -33,12 +35,26 @@ public class BomNewPbomWorkExcelVO implements Serializable {
|
|||
@ExcelColumn(value = "物料编码")
|
||||
private String materialNo;
|
||||
|
||||
public String getMaterialNo() {
|
||||
if (StrUtil.equals(projectType, BomConstant.PROJECT_TYPE_TEMPORARY)) {
|
||||
return "";
|
||||
}
|
||||
return materialNo;
|
||||
}
|
||||
|
||||
@ExcelColumn("物料名称")
|
||||
private String materialName;
|
||||
|
||||
@ExcelColumn(value = "图号")
|
||||
private String drawingNo;
|
||||
|
||||
public String getDrawingNo() {
|
||||
if (StrUtil.equals(projectType, BomConstant.PROJECT_TYPE_TEMPORARY)) {
|
||||
return "";
|
||||
}
|
||||
return drawingNo;
|
||||
}
|
||||
|
||||
@ExcelColumn(value = "版本号")
|
||||
private String currentVersion;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue