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.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author 曹鹏飞
|
||||
|
|
@ -75,10 +76,10 @@ public class MaterialCostVO implements Serializable {
|
|||
}
|
||||
|
||||
@ApiModelProperty("交期")
|
||||
private Integer leadTime;
|
||||
private LocalDateTime leadTime;
|
||||
|
||||
public Integer getLeadTime() {
|
||||
return RandomUtil.randomInt(1000);
|
||||
public LocalDateTime getLeadTime() {
|
||||
return LocalDateTime.now().plusDays(RandomUtil.randomInt(365));
|
||||
}
|
||||
|
||||
@ApiModelProperty("物料行id")
|
||||
|
|
|
|||
|
|
@ -258,7 +258,7 @@ public class ProductCostAnalysisService {
|
|||
materialCostVO.setMaterialCategoryName("物料类别" + i);
|
||||
materialCostVO.setInventory(RandomUtil.randomBigDecimal(100, 2));
|
||||
materialCostVO.setMaterialUnit("PC");
|
||||
materialCostVO.setLeadTime(RandomUtil.randomInt(30));
|
||||
materialCostVO.setLeadTime(LocalDateTime.now().plusDays(RandomUtil.randomInt(365)));
|
||||
costs.add(materialCostVO);
|
||||
}
|
||||
vo.setCosts(costs);
|
||||
|
|
|
|||
Loading…
Reference in New Issue