Commit f381568f6b5b02f45142b91af1195d0bc0945db3
1 parent
02223875
【修复】CRM:商机添加商品时,businessProducts 参数错误,应该是 products
Showing
2 changed files
with
3 additions
and
3 deletions
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/controller/admin/business/vo/business/CrmBusinessSaveReqVO.java
| ... | ... | @@ -66,7 +66,7 @@ public class CrmBusinessSaveReqVO { |
| 66 | 66 | private Long contactId; // 使用场景,在【联系人详情】添加商机时,如果需要关联两者,需要传递 contactId 字段 |
| 67 | 67 | |
| 68 | 68 | @Schema(description = "产品列表") |
| 69 | - private List<BusinessProduct> businessProducts; | |
| 69 | + private List<BusinessProduct> products; | |
| 70 | 70 | |
| 71 | 71 | @Schema(description = "产品列表") |
| 72 | 72 | @Data | ... | ... |
yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/service/business/CrmBusinessServiceImpl.java
| ... | ... | @@ -89,7 +89,7 @@ public class CrmBusinessServiceImpl implements CrmBusinessService { |
| 89 | 89 | success = CRM_BUSINESS_CREATE_SUCCESS) |
| 90 | 90 | public Long createBusiness(CrmBusinessSaveReqVO createReqVO, Long userId) { |
| 91 | 91 | // 1.1 校验产品项的有效性 |
| 92 | - List<CrmBusinessProductDO> businessProducts = validateBusinessProducts(createReqVO.getBusinessProducts()); | |
| 92 | + List<CrmBusinessProductDO> businessProducts = validateBusinessProducts(createReqVO.getProducts()); | |
| 93 | 93 | // 1.2 校验关联字段 |
| 94 | 94 | validateRelationDataExists(createReqVO); |
| 95 | 95 | |
| ... | ... | @@ -130,7 +130,7 @@ public class CrmBusinessServiceImpl implements CrmBusinessService { |
| 130 | 130 | // 1.1 校验存在 |
| 131 | 131 | CrmBusinessDO oldBusiness = validateBusinessExists(updateReqVO.getId()); |
| 132 | 132 | // 1.2 校验产品项的有效性 |
| 133 | - List<CrmBusinessProductDO> businessProducts = validateBusinessProducts(updateReqVO.getBusinessProducts()); | |
| 133 | + List<CrmBusinessProductDO> businessProducts = validateBusinessProducts(updateReqVO.getProducts()); | |
| 134 | 134 | // 1.3 校验关联字段 |
| 135 | 135 | validateRelationDataExists(updateReqVO); |
| 136 | 136 | ... | ... |