From f66407b1a6383aa75060e3b9ecab6195bfbd271a Mon Sep 17 00:00:00 2001 From: zjh <1084500556@qq.com> Date: 星期三, 18 十月 2023 11:56:51 +0800 Subject: [PATCH] zjh 2023/10/18--2 --- ltkj-admin/src/main/java/com/ltkj/web/controller/system/DictSfxmController.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/DictSfxmController.java b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/DictSfxmController.java index 3ebd1df..7f40fd8 100644 --- a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/DictSfxmController.java +++ b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/DictSfxmController.java @@ -103,6 +103,7 @@ @PostMapping @ApiOperation(value = "鏂板") public AjaxResult add(@RequestBody DictSfxm dictSfxm) { + asyncService.getDictSfxms(); dictSfxm.setWbm(MatchUtils.toWubi(dictSfxm.getXmmc())); dictSfxm.setPym(PinyinUtil.getFirstLetter(dictSfxm.getXmmc(),"").toUpperCase(Locale.ROOT)); return toAjax(dictSfxmService.insertDictSfxm(dictSfxm)); @@ -116,6 +117,7 @@ @PutMapping @ApiOperation(value = "淇敼") public AjaxResult edit(@RequestBody DictSfxm dictSfxm) { + asyncService.getDictSfxms(); return toAjax(dictSfxmService.updateDictSfxm(dictSfxm)); } @@ -127,6 +129,7 @@ @DeleteMapping("/{ids}") @ApiOperation(value = "鍒犻櫎") public AjaxResult remove(@PathVariable Long[] ids) { + asyncService.getDictSfxms(); return toAjax(dictSfxmService.deleteDictSfxmByIds(ids)); } @@ -134,7 +137,6 @@ @GetMapping("/getList") @ApiOperation(value = "鎸夌収椤圭洰缂栫爜鏍戝舰鏌ヨ") public AjaxResult getList() { - asyncService.getDictSfxms(); if(redisCache.hasKey("getDictSfxms")){ List<DictSfxm> getDictSfxms = redisCache.getCacheList("getDictSfxms"); return AjaxResult.success(getDictSfxms); -- Gitblit v1.8.0