| | |
| | | @Excel(name = "需求数量") |
| | | private BigDecimal qtyRequired; |
| | | |
| | | @Schema(description = "来源 销售/内部") |
| | | @Excel(name = "来源 销售/内部") |
| | | private String source; |
| | | |
| | | @Schema(description = "承诺日期") |
| | | @Excel(name = "承诺日期") |
| | | private LocalDate promisedDeliveryDate; |
| | |
| | | BeanUtils.copyProperties(dto, entity); |
| | | entity.setProductModelId(resolveProductModelId(dto, i + 2, allModels, productNameById)); |
| | | entity.setStatus(PLAN_STATUS_WAIT); |
| | | entity.setSource(StringUtils.isNotEmpty(dto.getSource()) ? StringUtils.trim(dto.getSource()) : "内部"); |
| | | entity.setSource("内部"); |
| | | entity.setQuantityIssued(BigDecimal.ZERO); |
| | | entity.setCreateTime(now); |
| | | entity.setUpdateTime(now); |