|
|
|
@ -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))); |
|
|
|
} |
|
|
|
} |