From a6eebf4eb41b76496a2b24eaf80bdecec79514de Mon Sep 17 00:00:00 2001 From: memorylkf <312904636@qq.com> Date: Mon, 26 Jan 2026 16:07:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20[=E6=A1=A3=E6=A1=88=E7=AE=A1=E7=90=86]?= =?UTF-8?q?=20=E6=A1=A3=E6=A1=88=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/controller/ArchiveLogController.java | 29 +++------------------- .../service/impl/ArchiveLogServiceImpl.java | 1 + 2 files changed, 4 insertions(+), 26 deletions(-) diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/ArchiveLogController.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/ArchiveLogController.java index 6c6c1d5..85ce033 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/ArchiveLogController.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/ArchiveLogController.java @@ -2,6 +2,8 @@ package com.hxhq.business.controller; import java.util.Arrays; import java.util.List; + +import com.hxhq.common.security.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import com.hxhq.business.domain.ArchiveLog; @@ -28,6 +30,7 @@ public class ArchiveLogController extends BaseController * 查询档案记录列表 */ @GetMapping("/list") + @RequiresPermissions("business:archive:record:list") public TableDataInfo list(ArchiveLog archiveLog) { startPage(); @@ -35,30 +38,4 @@ public class ArchiveLogController extends BaseController return getDataTable(list); } - /** - * 获取档案记录详细信息 - */ - @GetMapping(value = "/info") - public AjaxResult getInfo(Long id) - { - return AjaxResult.success(archiveLogService.getById(id)); - } - - /** - * 新增档案记录信息 - */ - @PostMapping("/save") - public AjaxResult save(@RequestBody ArchiveLog archiveLog) - { - return toAjax(archiveLogService.saveOrUpdate(archiveLog)); - } - - /** - * 删除档案记录信息 - */ - @PostMapping("/delete") - public AjaxResult delete(@RequestBody Long[] ids) - { - return toAjax(archiveLogService.removeByIds(Arrays.asList(ids))); - } } diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/ArchiveLogServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/ArchiveLogServiceImpl.java index 4c92d79..e8d73a6 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/ArchiveLogServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/ArchiveLogServiceImpl.java @@ -33,6 +33,7 @@ public class ArchiveLogServiceImpl extends ServiceImpl queryList(ArchiveLog archiveLog) { QueryWrapper queryWrapper = Wrappers.query(); + queryWrapper.eq("type",archiveLog.getType()); if(StringUtils.isNoneBlank(archiveLog.getOperateType())){ queryWrapper.and(q->q.eq("operate_type",archiveLog.getOperateType()) .or().eq("operate_type_en",archiveLog.getOperateType()));