添加校验

This commit is contained in:
苏竹红
2023-09-04 15:33:41 +08:00
parent 0272a71a5d
commit c85d6c9479

View File

@@ -276,6 +276,10 @@ public class HyPartnerLineInfoServiceImpl implements HyPartnerLineInfoService {
if (StringUtils.isEmpty(userId)|| CollectionUtils.isEmpty(lineIdList)){
throw new ServiceException(ErrorCodeEnum.PARAMS_REQUIRED);
}
EnterpriseUserDO user = enterpriseUserDAO.getUserInfoById(userId);
if (user==null){
throw new ServiceException(ErrorCodeEnum.INVESTMENT_MANAGER_NOT_EXIST);
}
//加盟上线索集合
List<HyPartnerLineInfoDO> partnerLineInfoList= hyPartnerLineInfoDAO.getLineListByLineIds(lineIdList);
//过滤出已结束的线索 这块线索需要重新生成新的线索