|
|
@ -16,6 +16,7 @@ import org.springblade.core.mp.base.BaseService; |
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl; |
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl; |
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
import org.springblade.core.tool.utils.BeanUtil; |
|
|
|
import org.springblade.core.tool.utils.BeanUtil; |
|
|
|
|
|
|
|
import org.springblade.core.tool.utils.CollectionUtil; |
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
import org.springblade.core.tool.utils.StringUtil; |
|
|
|
import org.springblade.core.tool.utils.StringUtil; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
@ -40,7 +41,7 @@ public class ContentDefinitionServiceImpl extends BaseServiceImpl<ContentDefinit |
|
|
|
public List<ContentDefinitionVO> list(ContentDefinitionDTO request) { |
|
|
|
public List<ContentDefinitionVO> list(ContentDefinitionDTO request) { |
|
|
|
QueryWrapper<ContentDefinitionEntity> queryWrapper = Condition.getQueryWrapper(BeanUtil.copy(request, ContentDefinitionEntity.class)); |
|
|
|
QueryWrapper<ContentDefinitionEntity> queryWrapper = Condition.getQueryWrapper(BeanUtil.copy(request, ContentDefinitionEntity.class)); |
|
|
|
LambdaQueryWrapper<ContentDefinitionEntity> lambda = queryWrapper.lambda(); |
|
|
|
LambdaQueryWrapper<ContentDefinitionEntity> lambda = queryWrapper.lambda(); |
|
|
|
lambda.in(StringUtil.isNotBlank(request.getIds()),ContentDefinitionEntity::getId,Func.toLongList(",",request.getIds())); |
|
|
|
lambda.in(CollectionUtil.isNotEmpty(request.getIds()),ContentDefinitionEntity::getId,request.getIds()); |
|
|
|
return ContentDefinitionWrapper.build().listVO(this.list(lambda)); |
|
|
|
return ContentDefinitionWrapper.build().listVO(this.list(lambda)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|