Browse Source

feat: [档案管理] 档案记录

master
memorylkf 2 months ago
parent
commit
a6eebf4eb4
2 changed files with 4 additions and 26 deletions
  1. +3
    -26
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/ArchiveLogController.java
  2. +1
    -0
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/ArchiveLogServiceImpl.java

+ 3
- 26
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/ArchiveLogController.java View File

@ -2,6 +2,8 @@ package com.hxhq.business.controller;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
import com.hxhq.common.security.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import com.hxhq.business.domain.ArchiveLog; import com.hxhq.business.domain.ArchiveLog;
@ -28,6 +30,7 @@ public class ArchiveLogController extends BaseController
* 查询档案记录列表 * 查询档案记录列表
*/ */
@GetMapping("/list") @GetMapping("/list")
@RequiresPermissions("business:archive:record:list")
public TableDataInfo list(ArchiveLog archiveLog) public TableDataInfo list(ArchiveLog archiveLog)
{ {
startPage(); startPage();
@ -35,30 +38,4 @@ public class ArchiveLogController extends BaseController
return getDataTable(list); 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)));
}
} }

+ 1
- 0
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/ArchiveLogServiceImpl.java View File

@ -33,6 +33,7 @@ public class ArchiveLogServiceImpl extends ServiceImpl
public List<ArchiveLog> queryList(ArchiveLog archiveLog) public List<ArchiveLog> queryList(ArchiveLog archiveLog)
{ {
QueryWrapper<ArchiveLog> queryWrapper = Wrappers.query(); QueryWrapper<ArchiveLog> queryWrapper = Wrappers.query();
queryWrapper.eq("type",archiveLog.getType());
if(StringUtils.isNoneBlank(archiveLog.getOperateType())){ if(StringUtils.isNoneBlank(archiveLog.getOperateType())){
queryWrapper.and(q->q.eq("operate_type",archiveLog.getOperateType()) queryWrapper.and(q->q.eq("operate_type",archiveLog.getOperateType())
.or().eq("operate_type_en",archiveLog.getOperateType())); .or().eq("operate_type_en",archiveLog.getOperateType()));

Loading…
Cancel
Save