ÎļþÃû´Ó ruoyi-common/src/main/java/com/ruoyi/common/core/page/IServicePlus.java ÐÞ¸Ä |
| | |
| | | package com.ruoyi.common.core.page; |
| | | package com.ruoyi.common.core.mybatisplus.core; |
| | | |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.common.core.page.PagePlus; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Collection; |
| | |
| | | * |
| | | * @param page 翻页对象 |
| | | * @param queryWrapper å®ä½å¯¹è±¡å°è£
æä½ç±» |
| | | * @param kClass voç±»å |
| | | */ |
| | | default <K> PagePlus<T, K> pageVo(PagePlus<T, K> page, Wrapper<T> queryWrapper, Class<K> kClass) { |
| | | PagePlus<T, K> result = getBaseMapper().selectPage(page, queryWrapper); |
| | |
| | | * æ æ¡ä»¶ç¿»é¡µæ¥è¯¢ |
| | | * |
| | | * @param page 翻页对象 |
| | | * @param kClass voç±»å |
| | | */ |
| | | default <K> PagePlus<T, K> pageVo(PagePlus<T, K> page, Class<K> kClass) { |
| | | return pageVo(page, Wrappers.emptyWrapper(), kClass); |
| | |
| | | return pageVo(page, Wrappers.emptyWrapper(), convertor); |
| | | } |
| | | |
| | | @Override |
| | | default boolean saveBatch(Collection<T> entityList) { |
| | | return saveBatch(entityList, DEFAULT_BATCH_SIZE); |
| | | } |
| | | |
| | | @Override |
| | | default boolean saveOrUpdateBatch(Collection<T> entityList) { |
| | | return saveOrUpdateBatch(entityList, DEFAULT_BATCH_SIZE); |
| | | } |
| | | |
| | | @Override |
| | | default boolean updateBatchById(Collection<T> entityList) { |
| | | return updateBatchById(entityList, DEFAULT_BATCH_SIZE); |
| | | } |
| | | |
| | | boolean saveAll(Collection<T> entityList); |
| | | } |
| | | |