joinStatus
This commit is contained in:
@@ -233,7 +233,7 @@ public class LineServiceImpl implements LineService {
|
||||
|
||||
List<Long> lineIds = lineInfoDOS.stream().filter(lineInfoDO -> lineInfoDO.getId() != null).map(LineInfoDO::getId).collect(Collectors.toList());
|
||||
List<SigningBaseInfoDO> signingBaseInfoDOS = intentAgreementMapper.selectByLineIds(lineIds);
|
||||
Map<Long, Date> dateMap = signingBaseInfoDOS.stream().collect(Collectors.toMap(SigningBaseInfoDO::getId, SigningBaseInfoDO::getCreateTime));
|
||||
Map<Long, Date> dateMap = signingBaseInfoDOS.stream().collect(Collectors.toMap(SigningBaseInfoDO::getLineId, SigningBaseInfoDO::getCreateTime));
|
||||
|
||||
List<PartnerListVO> result = new ArrayList<>();
|
||||
lineInfoDOS.forEach(x->{
|
||||
@@ -280,13 +280,21 @@ public class LineServiceImpl implements LineService {
|
||||
if (lineInfo.getLineStatus().equals(LineStatusEnum.PUBLIC_SEAS.getCode())){
|
||||
throw new ServiceException(ErrorCodeEnum.NOT_IN_PUBLIC_SEA);
|
||||
}
|
||||
if (lineInfo.getInvestmentManager().equals(changeInvestmentRequest.getInvestmentManagerId())){
|
||||
throw new ServiceException(ErrorCodeEnum.NO_TRANSFER_REQUIRED);
|
||||
}
|
||||
|
||||
//如果线索招商经理为空 直接分配 如果不为空 且线索在公海 说明线索被结束 需要重置ID 生成一条新的线索
|
||||
lineInfo.setLineStatus(LineStatusEnum.PRIVATE_SEAS.getCode());
|
||||
lineInfo.setInvestmentManager(changeInvestmentRequest.getInvestmentManagerId());
|
||||
lineInfoDAO.updateLineInfo(lineInfo);
|
||||
if (transferFlag){
|
||||
//添加日志
|
||||
transferLogService.addLog(lineInfo,userInfo.getUserId(),changeInvestmentRequest.getInvestmentManagerId(), OperationLogTypeEnum.TRANSFER_INVESTMENT_MANAGER);
|
||||
OperationLogTypeEnum operationLogTypeEnum = OperationLogTypeEnum.TRANSFER_INVESTMENT_MANAGER;
|
||||
if (lineInfo.getJoinStatus()!=0){
|
||||
operationLogTypeEnum = OperationLogTypeEnum.TRANSFER_INVESTMENT_MANAGER_3;
|
||||
}
|
||||
transferLogService.addLog(lineInfo,userInfo.getUserId(),changeInvestmentRequest.getInvestmentManagerId(),operationLogTypeEnum);
|
||||
}
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user