| | |
| | | package com.mindskip.xzs.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | |
| | | import com.mindskip.xzs.domain.vo.TagVO; |
| | | import com.mindskip.xzs.repository.TagMapper; |
| | | import com.mindskip.xzs.service.TagService; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.StringUtils; |
| | | |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * @author gonghl |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<Tag> list(List<Integer> list) { |
| | | LambdaQueryWrapper<Tag> queryWrapper = new LambdaQueryWrapper<>(); |
| | | if (ObjectUtils.isNotEmpty(list)) { |
| | | queryWrapper.in(Tag::getDeptId, list); |
| | | queryWrapper.or().isNull(Tag::getDeptId); |
| | | } |
| | | return list(queryWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public void saveBatchUserTag(List<UserTag> list) { |
| | | baseMapper.saveBatchUserTag(list); |
| | | } |