feat(mybatisplus): 新增 FastBaseIService 并发布 mingli-utils 5.4.0
Gitea Actions Build / Build (push) Canceled after 0s
Gitea Actions Build / Build (push) Canceled after 0s
- 新增 FastBaseIService 服务层便捷基类,与 FastBaseMapper 对齐常用增删改查,移除旧的 BaseMapperQuery - Jackson 自动配置改用 Jackson2ObjectMapperBuilderCustomizer Bean 注册模块,避免直接依赖 ObjectMapper - SpringBeanUtils 新增 lazyBean 延迟获取 Bean 便捷函数 - SystemUtil 新增 lineSeparator 相关常量并整理链式调用格式 - FileUtils.writeLines(charset) 修复自递归问题 - build.gradle.kts 增加 mybatis-plus-spring 编译依赖
This commit is contained in:
@@ -13,10 +13,10 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
* ProjectName FastBaseMapper.kt
|
||||
* ProjectName mingli-utils
|
||||
* ModuleName mingli-utils.main
|
||||
* CurrentFile FastBaseMapper.kt
|
||||
* LastUpdate 2026-10-27 10:23:10
|
||||
* LastUpdate 2026-10-28 22:23:47
|
||||
* UpdateUser MingLiPro
|
||||
*/
|
||||
|
||||
@@ -37,6 +37,7 @@ import com.mingliqiye.utils.mybatisplus.FastBaseMapper.Companion.ktQueryChainWra
|
||||
import com.mingliqiye.utils.mybatisplus.FastBaseMapper.Companion.ktQueryWrapper
|
||||
import com.mingliqiye.utils.mybatisplus.FastBaseMapper.Companion.ktUpdateChainWrapper
|
||||
import com.mingliqiye.utils.mybatisplus.FastBaseMapper.Companion.ktUpdateWrapper
|
||||
import com.mingliqiye.utils.mybatisplus.FastBaseMapper.Companion.selectListByColumns
|
||||
import com.mingliqiye.utils.tuple.Tuple
|
||||
import kotlin.reflect.KProperty1
|
||||
|
||||
@@ -786,8 +787,8 @@ interface FastBaseMapper<T> : BaseMapper<T> {
|
||||
*/
|
||||
inline fun <reified T : Any, R> FastBaseMapper<T>.existsByColumn(
|
||||
column: KProperty1<T, R>,
|
||||
funs: (w: KtQueryWrapper<T>) -> KtQueryWrapper<T> = { it },
|
||||
value: R,
|
||||
funs: (w: KtQueryWrapper<T>) -> KtQueryWrapper<T> = { it },
|
||||
): Boolean = exists { wrapper: KtQueryWrapper<T> ->
|
||||
funs(wrapper).eq(column, value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user