【修复】CRM:商机添加商品时,businessProducts 参数错误,应该是 products
This commit is contained in:
parent
022238758c
commit
f381568f6b
@ -66,7 +66,7 @@ public class CrmBusinessSaveReqVO {
|
|||||||
private Long contactId; // 使用场景,在【联系人详情】添加商机时,如果需要关联两者,需要传递 contactId 字段
|
private Long contactId; // 使用场景,在【联系人详情】添加商机时,如果需要关联两者,需要传递 contactId 字段
|
||||||
|
|
||||||
@Schema(description = "产品列表")
|
@Schema(description = "产品列表")
|
||||||
private List<BusinessProduct> businessProducts;
|
private List<BusinessProduct> products;
|
||||||
|
|
||||||
@Schema(description = "产品列表")
|
@Schema(description = "产品列表")
|
||||||
@Data
|
@Data
|
||||||
|
@ -89,7 +89,7 @@ public class CrmBusinessServiceImpl implements CrmBusinessService {
|
|||||||
success = CRM_BUSINESS_CREATE_SUCCESS)
|
success = CRM_BUSINESS_CREATE_SUCCESS)
|
||||||
public Long createBusiness(CrmBusinessSaveReqVO createReqVO, Long userId) {
|
public Long createBusiness(CrmBusinessSaveReqVO createReqVO, Long userId) {
|
||||||
// 1.1 校验产品项的有效性
|
// 1.1 校验产品项的有效性
|
||||||
List<CrmBusinessProductDO> businessProducts = validateBusinessProducts(createReqVO.getBusinessProducts());
|
List<CrmBusinessProductDO> businessProducts = validateBusinessProducts(createReqVO.getProducts());
|
||||||
// 1.2 校验关联字段
|
// 1.2 校验关联字段
|
||||||
validateRelationDataExists(createReqVO);
|
validateRelationDataExists(createReqVO);
|
||||||
|
|
||||||
@ -130,7 +130,7 @@ public class CrmBusinessServiceImpl implements CrmBusinessService {
|
|||||||
// 1.1 校验存在
|
// 1.1 校验存在
|
||||||
CrmBusinessDO oldBusiness = validateBusinessExists(updateReqVO.getId());
|
CrmBusinessDO oldBusiness = validateBusinessExists(updateReqVO.getId());
|
||||||
// 1.2 校验产品项的有效性
|
// 1.2 校验产品项的有效性
|
||||||
List<CrmBusinessProductDO> businessProducts = validateBusinessProducts(updateReqVO.getBusinessProducts());
|
List<CrmBusinessProductDO> businessProducts = validateBusinessProducts(updateReqVO.getProducts());
|
||||||
// 1.3 校验关联字段
|
// 1.3 校验关联字段
|
||||||
validateRelationDataExists(updateReqVO);
|
validateRelationDataExists(updateReqVO);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user