fix: 变更三明钢铁模版

This commit is contained in:
han0
2024-12-10 15:48:55 +08:00
parent bd020ec6ac
commit 22ff83a17a

View File

@@ -42,7 +42,7 @@ public class SanmingSteel extends Model<SanmingSteel> {
@TableField("SPEC")
private String spec;
@ApiModelProperty("")
@ApiModelProperty("料id")
@TableField("MATERIAL")
private String material;
@@ -65,15 +65,16 @@ public class SanmingSteel extends Model<SanmingSteel> {
public SanmingSteel () {}
public SanmingSteel (Row row, MaterialTask data) {
public SanmingSteel (Row row, MaterialTask task) {
var policy = Row.MissingCellPolicy.CREATE_NULL_AS_BLANK;
row.getCell(1).setCellType(CellType.STRING);
this.setName(row.getCell(0, policy).getStringCellValue());
this.setSpec(row.getCell(1, policy).getStringCellValue());
this.setMaterial(row.getCell(2, policy).getStringCellValue());
this.setName(row.getCell(1, policy).getStringCellValue());
this.setSpec(row.getCell(2, policy).getStringCellValue());
this.setMaterial(row.getCell(0, policy).getStringCellValue());
this.setPrice(BigDecimal.valueOf(row.getCell(3, policy).getNumericCellValue()));
this.setFluctuating(BigDecimal.valueOf(row.getCell(4, policy).getNumericCellValue()));
this.setDate(row.getCell(5, policy).getLocalDateTimeCellValue().toLocalDate());
// this.setDate(row.getCell(5, policy).getLocalDateTimeCellValue().toLocalDate());
this.setDate(LocalDate.of(task.getYear(), task.getMonth(), 1)); // 从任务获取日期
}
public SanmingSteel update(SanmingSteel item) {