|
@@ -1,21 +1,22 @@
|
|
|
package org.jeecg.modules.adweb.site.service.impl;
|
|
|
|
|
|
|
|
|
-import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
-import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import jakarta.annotation.Resource;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.jeecg.modules.adweb.common.util.SnowflakeIdUtil;
|
|
|
import org.jeecg.modules.adweb.site.entity.AdwebSitePermission;
|
|
|
import org.jeecg.modules.adweb.site.entity.AdwebSiteUserPermission;
|
|
|
+import org.jeecg.modules.adweb.site.mapper.SiteUserPermissionMapper;
|
|
|
import org.jeecg.modules.adweb.site.service.ISitePermissionService;
|
|
|
import org.jeecg.modules.adweb.site.service.ISiteUserPermissionService;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
-import java.util.*;
|
|
|
-import java.util.function.Function;
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
@@ -26,7 +27,7 @@ import java.util.stream.Collectors;
|
|
|
*/
|
|
|
@Service
|
|
|
@Slf4j
|
|
|
-public class SiteUserPermissionServiceImpl implements ISiteUserPermissionService {
|
|
|
+public class SiteUserPermissionServiceImpl extends ServiceImpl<SiteUserPermissionMapper, AdwebSiteUserPermission> implements ISiteUserPermissionService {
|
|
|
|
|
|
@Resource
|
|
|
private ISitePermissionService sitePermissionService;
|
|
@@ -114,7 +115,7 @@ public class SiteUserPermissionServiceImpl implements ISiteUserPermissionService
|
|
|
|
|
|
queryWrapper.eq(AdwebSiteUserPermission::getUid, uid)
|
|
|
.eq(AdwebSiteUserPermission::getStatus, 1);
|
|
|
-
|
|
|
+
|
|
|
siteUserPermissionList = this.list(queryWrapper);
|
|
|
|
|
|
AdwebSiteUserPermission siteUserPermission = new AdwebSiteUserPermission();
|
|
@@ -142,99 +143,4 @@ public class SiteUserPermissionServiceImpl implements ISiteUserPermissionService
|
|
|
log.error("添加站点权限失败", e);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- /**
|
|
|
- * @param entityList
|
|
|
- * @param batchSize
|
|
|
- * @return
|
|
|
- */
|
|
|
- @Override
|
|
|
- public boolean saveBatch(Collection<AdwebSiteUserPermission> entityList, int batchSize) {
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @param entityList
|
|
|
- * @param batchSize
|
|
|
- * @return
|
|
|
- */
|
|
|
- @Override
|
|
|
- public boolean saveOrUpdateBatch(Collection<AdwebSiteUserPermission> entityList, int batchSize) {
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @param entityList
|
|
|
- * @param batchSize
|
|
|
- * @return
|
|
|
- */
|
|
|
- @Override
|
|
|
- public boolean updateBatchById(Collection<AdwebSiteUserPermission> entityList, int batchSize) {
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @param entity
|
|
|
- * @return
|
|
|
- */
|
|
|
- @Override
|
|
|
- public boolean saveOrUpdate(AdwebSiteUserPermission entity) {
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @param queryWrapper
|
|
|
- * @param throwEx
|
|
|
- * @return
|
|
|
- */
|
|
|
- @Override
|
|
|
- public AdwebSiteUserPermission getOne(Wrapper<AdwebSiteUserPermission> queryWrapper, boolean throwEx) {
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @param queryWrapper
|
|
|
- * @param throwEx
|
|
|
- * @return
|
|
|
- */
|
|
|
- @Override
|
|
|
- public Optional<AdwebSiteUserPermission> getOneOpt(Wrapper<AdwebSiteUserPermission> queryWrapper, boolean throwEx) {
|
|
|
- return Optional.empty();
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @param queryWrapper
|
|
|
- * @return
|
|
|
- */
|
|
|
- @Override
|
|
|
- public Map<String, Object> getMap(Wrapper<AdwebSiteUserPermission> queryWrapper) {
|
|
|
- return Map.of();
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @param queryWrapper
|
|
|
- * @param mapper
|
|
|
- * @param <V>
|
|
|
- * @return
|
|
|
- */
|
|
|
- @Override
|
|
|
- public <V> V getObj(Wrapper<AdwebSiteUserPermission> queryWrapper, Function<? super Object, V> mapper) {
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @return
|
|
|
- */
|
|
|
- @Override
|
|
|
- public BaseMapper<AdwebSiteUserPermission> getBaseMapper() {
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @return
|
|
|
- */
|
|
|
- @Override
|
|
|
- public Class<AdwebSiteUserPermission> getEntityClass() {
|
|
|
- return null;
|
|
|
- }
|
|
|
}
|