From 2f5a6e996ea7c58d174b52082e78fd172a9ada96 Mon Sep 17 00:00:00 2001 From: jenn <11@11.11> Date: 星期四, 06 七月 2023 19:26:25 +0800 Subject: [PATCH] fix 修复 代码生成 前端添加或修改表单修改列生成问题 --- ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysDictTypeServiceImpl.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysDictTypeServiceImpl.java b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysDictTypeServiceImpl.java index 971b0b2..d0e9562 100644 --- a/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysDictTypeServiceImpl.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/system/service/impl/SysDictTypeServiceImpl.java @@ -123,7 +123,6 @@ * @param dictType 瀛楀吀绫诲瀷 * @return 瀛楀吀绫诲瀷 */ - @Cacheable(cacheNames = CacheNames.SYS_DICT, key = "#dictType") @Override public SysDictTypeVo selectDictTypeByType(String dictType) { return baseMapper.selectVoById(new LambdaQueryWrapper<SysDictType>().eq(SysDictType::getDictType, dictType)); @@ -163,10 +162,11 @@ */ @CachePut(cacheNames = CacheNames.SYS_DICT, key = "#bo.dictType") @Override - public List<SysDictTypeVo> insertDictType(SysDictTypeBo bo) { + public List<SysDictDataVo> insertDictType(SysDictTypeBo bo) { SysDictType dict = MapstructUtils.convert(bo, SysDictType.class); int row = baseMapper.insert(dict); if (row > 0) { + // 鏂板 type 涓嬫棤 data 鏁版嵁 杩斿洖绌洪槻姝㈢紦瀛樼┛閫� return new ArrayList<>(); } throw new ServiceException("鎿嶄綔澶辫触"); -- Gitblit v1.9.3