Commit 71182ae9 by yao.xiao

修改-经纪人修改商机保存

parent 7bdaf668
......@@ -815,6 +815,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
saveCustomerTag(customerId,requestVO.getOpportunityCustomerTags());
//更新预设值
saveLeadsAssigneds(requestVO);
resp.setLeadsAssignedId(requestVO.getLeadsAssignedId());
resp.setOpportunityId(customerId);
resp.setCommonResult(new CommonResult(true, ZHBErrorConfig.getErrorInfo("800000")));
return resp;
......@@ -832,6 +833,12 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
mktLeadsAssigneds.setCustomerId(aclCustomer.getId());
List<MktLeadsAssigneds> mktLeadsAssignedsList = mktLeadsAssignedsDALService.findByMktLeadsAssigneds(mktLeadsAssigneds);
if (!mktLeadsAssignedsList.isEmpty()){
for (MktLeadsAssigneds info :mktLeadsAssignedsList){
Long assignedPractitionerId = info.getAssignedPractitionerId();
if (assignedPractitionerId.equals(requestVO.getAssignedPractitionerId())){
break;
}
}
return new CommonResult(false,ZHBErrorConfig.getErrorInfo("830014"));
}
}else {
......
......@@ -5,6 +5,7 @@ import lombok.Data;
@Data
public class OwnOpportunityBasicInformationSaveResponseVO {
private Long leadsAssignedId;
private Long opportunityId;
private CommonResult commonResult;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment