From 14cedccaf3c9a7e2caa08e563b9a51e26a1c0d0f Mon Sep 17 00:00:00 2001 From: AprilWind <2100166581@qq.com> Date: 星期五, 10 五月 2024 10:29:04 +0800 Subject: [PATCH] !530 新增分布式锁Lock4j异常拦截 * update 新增Redis异常处理器处理Lock4j异常 --- ruoyi-modules/ruoyi-generator/src/main/resources/vm/java/serviceImpl.java.vm | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ruoyi-modules/ruoyi-generator/src/main/resources/vm/java/serviceImpl.java.vm b/ruoyi-modules/ruoyi-generator/src/main/resources/vm/java/serviceImpl.java.vm index cec6c1b..d603de1 100644 --- a/ruoyi-modules/ruoyi-generator/src/main/resources/vm/java/serviceImpl.java.vm +++ b/ruoyi-modules/ruoyi-generator/src/main/resources/vm/java/serviceImpl.java.vm @@ -1,7 +1,8 @@ package ${packageName}.service.impl; import org.dromara.common.core.utils.MapstructUtils; - #if($table.crud || $table.sub) +import org.dromara.common.core.utils.StringUtils; +#if($table.crud) import org.dromara.common.mybatis.core.page.TableDataInfo; import org.dromara.common.mybatis.core.page.PageQuery; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; @@ -40,7 +41,7 @@ return baseMapper.selectVoById(${pkColumn.javaField}); } -#if($table.crud || $table.sub) +#if($table.crud) /** * 鏌ヨ${functionName}鍒楄〃 */ -- Gitblit v1.9.3