|
@@ -221,6 +221,14 @@ public class FsUserInformationCollectionServiceImpl extends ServiceImpl<FsUserIn
|
|
|
throw new CustomException("该套餐不支持用户信息采集");
|
|
throw new CustomException("该套餐不支持用户信息采集");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ //用户是否已存在采集信息
|
|
|
|
|
+ FsUserInformationCollection queryCondition = new FsUserInformationCollection();
|
|
|
|
|
+ queryCondition.setUserId(param.getUserId());
|
|
|
|
|
+ List<FsUserInformationCollection> fsUserInformationCollections = baseMapper.selectFsUserInformationCollectionList(queryCondition);
|
|
|
|
|
+ if (!CollectionUtils.isEmpty(fsUserInformationCollections)&&fsUserInformationCollections.size()>1){
|
|
|
|
|
+ log.info("用户已存在采集信息,用户id:{}",param.getUserId());
|
|
|
|
|
+ throw new CustomException("用户已存在采集信息");
|
|
|
|
|
+ }
|
|
|
fsUserInformationCollection.setCreateTime(DateUtils.getNowDate());
|
|
fsUserInformationCollection.setCreateTime(DateUtils.getNowDate());
|
|
|
baseMapper.insertFsUserInformationCollection(fsUserInformationCollection);
|
|
baseMapper.insertFsUserInformationCollection(fsUserInformationCollection);
|
|
|
//新增用户信息采集表的同时记录用户信息采集进度
|
|
//新增用户信息采集表的同时记录用户信息采集进度
|