|
|
@@ -183,6 +183,26 @@ public class UserMirrorFissionFrontServiceImpl implements UserMirrorFissionFront
|
|
|
return userMirrorFissionRecord;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Boolean getPermitStatus(long userId) throws Exception {
|
|
|
+ List<Long> userIdList = userBindRelationService.getRelationUserIdList(userId, null);
|
|
|
+ //特定老用户可进行镜像裂变活动
|
|
|
+ SysConfig sysConfig = sysConfigMapper.selectOne(Wrappers.lambdaQuery(SysConfig.class)
|
|
|
+ .eq(SysConfig::getSysKey, Constant.USER_MIRROR_FISSION_USER_LIST_KEY)
|
|
|
+ .last("limit 1"));
|
|
|
+ if (sysConfig == null || StrUtil.isEmpty(sysConfig.getSysValue())) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ List<Long> fission_userIds = Jsons.parseList(sysConfig.getSysValue(), Long.class);
|
|
|
+ AtomicBoolean isCt = new AtomicBoolean(false);
|
|
|
+ userIdList.forEach(uid -> {
|
|
|
+ if (fission_userIds.contains(uid)) {
|
|
|
+ isCt.set(true);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return isCt.get();
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
public Boolean hasPaidMirrorTicket(long userId, Long goodsId) {
|
|
|
List<Long> userIdList = userBindRelationService.getRelationUserIdList(userId, null);
|