fix(crm): 合同产品数量支持一位小数
- CrmContractSaveReqVO.Product.count 由 Integer 改为 BigDecimal,避免小数被 Jackson 截断
- 报价单转合同时去掉 intValue() 截断,保留原始数量精度
Co-Authored-By: Claude Code <noreply@anthropic.com>
| | |
| | | @NotNull(message = "合同价格不能为空") |
| | | private BigDecimal contractPrice; |
| | | |
| | | @Schema(description = "产品数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "8911") |
| | | @Schema(description = "产品数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "8911.5") |
| | | @NotNull(message = "产品数量不能为空") |
| | | private Integer count; |
| | | private BigDecimal count; |
| | | |
| | | } |
| | | |
| | |
| | | product.setItemId(qp.getItemId()); |
| | | product.setItemPrice(qp.getItemPrice()); |
| | | product.setContractPrice(qp.getQuotationPrice()); |
| | | product.setCount(qp.getCount().intValue()); |
| | | product.setCount(qp.getCount()); |
| | | return product; |
| | | }); |
| | | contractVO.setProducts(contractProducts); |