feat: 修改交期的数据类型为datetime
This commit is contained in:
parent
bc00758d84
commit
35abaf305a
|
|
@ -8,6 +8,7 @@ import lombok.experimental.Accessors;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 曹鹏飞
|
* @author 曹鹏飞
|
||||||
|
|
@ -75,10 +76,10 @@ public class MaterialCostVO implements Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiModelProperty("交期")
|
@ApiModelProperty("交期")
|
||||||
private Integer leadTime;
|
private LocalDateTime leadTime;
|
||||||
|
|
||||||
public Integer getLeadTime() {
|
public LocalDateTime getLeadTime() {
|
||||||
return RandomUtil.randomInt(1000);
|
return LocalDateTime.now().plusDays(RandomUtil.randomInt(365));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiModelProperty("物料行id")
|
@ApiModelProperty("物料行id")
|
||||||
|
|
|
||||||
|
|
@ -258,7 +258,7 @@ public class ProductCostAnalysisService {
|
||||||
materialCostVO.setMaterialCategoryName("物料类别" + i);
|
materialCostVO.setMaterialCategoryName("物料类别" + i);
|
||||||
materialCostVO.setInventory(RandomUtil.randomBigDecimal(100, 2));
|
materialCostVO.setInventory(RandomUtil.randomBigDecimal(100, 2));
|
||||||
materialCostVO.setMaterialUnit("PC");
|
materialCostVO.setMaterialUnit("PC");
|
||||||
materialCostVO.setLeadTime(RandomUtil.randomInt(30));
|
materialCostVO.setLeadTime(LocalDateTime.now().plusDays(RandomUtil.randomInt(365)));
|
||||||
costs.add(materialCostVO);
|
costs.add(materialCostVO);
|
||||||
}
|
}
|
||||||
vo.setCosts(costs);
|
vo.setCosts(costs);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue