mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-28 16:58:43 +08:00 
			
		
		
		
	Merge branch 'master' of https://gitee.com/zhijiantianya/ruoyi-vue-pro into feature/1.6.2
This commit is contained in:
		| @@ -1,12 +1,15 @@ | |||||||
| package cn.iocoder.yudao.framework.lock4j.config; | package cn.iocoder.yudao.framework.lock4j.config; | ||||||
|  |  | ||||||
| import cn.hutool.core.util.ClassUtil; | import cn.hutool.core.util.ClassUtil; | ||||||
|  | import com.baomidou.lock.spring.boot.autoconfigure.LockAutoConfiguration; | ||||||
| import cn.iocoder.yudao.framework.lock4j.core.DefaultLockFailureStrategy; | import cn.iocoder.yudao.framework.lock4j.core.DefaultLockFailureStrategy; | ||||||
| import cn.iocoder.yudao.framework.lock4j.core.Lock4jRedisKeyConstants; | import cn.iocoder.yudao.framework.lock4j.core.Lock4jRedisKeyConstants; | ||||||
|  | import org.springframework.boot.autoconfigure.AutoConfigureBefore; | ||||||
| import org.springframework.context.annotation.Bean; | import org.springframework.context.annotation.Bean; | ||||||
| import org.springframework.context.annotation.Configuration; | import org.springframework.context.annotation.Configuration; | ||||||
|  |  | ||||||
| @Configuration | @Configuration | ||||||
|  | @AutoConfigureBefore(LockAutoConfiguration.class) | ||||||
| public class YudaoLock4jConfiguration { | public class YudaoLock4jConfiguration { | ||||||
|  |  | ||||||
|     static { |     static { | ||||||
|   | |||||||
| @@ -206,7 +206,7 @@ public class CodegenServiceImpl implements CodegenService { | |||||||
|     public Map<String, String> generationCodes(Long tableId) { |     public Map<String, String> generationCodes(Long tableId) { | ||||||
|         // 校验是否已经存在 |         // 校验是否已经存在 | ||||||
|         CodegenTableDO table = codegenTableMapper.selectById(tableId); |         CodegenTableDO table = codegenTableMapper.selectById(tableId); | ||||||
|         if (codegenTableMapper.selectById(tableId) == null) { |         if (table == null) { | ||||||
|             throw exception(CODEGEN_TABLE_NOT_EXISTS); |             throw exception(CODEGEN_TABLE_NOT_EXISTS); | ||||||
|         } |         } | ||||||
|         List<CodegenColumnDO> columns = codegenColumnMapper.selectListByTableId(tableId); |         List<CodegenColumnDO> columns = codegenColumnMapper.selectListByTableId(tableId); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV