应征入伍保留学籍申请表联表操作
This commit is contained in:
@@ -2,6 +2,7 @@ package com.srs.web.controller.routine;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
@@ -37,11 +38,10 @@ public class RtEnlistmentReserveController extends BaseController {
|
||||
/**
|
||||
* 查询应征入伍保留学籍申请列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserve:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询应征入伍保留学籍申请列表")
|
||||
public TableDataInfo list(RtEnlistmentReserve rtEnlistmentReserve)
|
||||
{
|
||||
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserve:list')")
|
||||
@GetMapping("/list")
|
||||
@ApiOperation("查询应征入伍保留学籍申请列表")
|
||||
public TableDataInfo list(RtEnlistmentReserve rtEnlistmentReserve) {
|
||||
startPage();
|
||||
List<RtEnlistmentReserve> list = rtEnlistmentReserveService.selectRtEnlistmentReserveList(rtEnlistmentReserve);
|
||||
return getDataTable(list);
|
||||
@@ -54,8 +54,7 @@ public class RtEnlistmentReserveController extends BaseController {
|
||||
@Log(title = "应征入伍保留学籍申请", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ApiOperation("导出应征入伍保留学籍申请列表")
|
||||
public void export(HttpServletResponse response, RtEnlistmentReserve rtEnlistmentReserve)
|
||||
{
|
||||
public void export(HttpServletResponse response, RtEnlistmentReserve rtEnlistmentReserve) {
|
||||
List<RtEnlistmentReserve> list = rtEnlistmentReserveService.selectRtEnlistmentReserveList(rtEnlistmentReserve);
|
||||
ExcelUtil<RtEnlistmentReserve> util = new ExcelUtil<RtEnlistmentReserve>(RtEnlistmentReserve.class);
|
||||
util.exportExcel(response, list, "应征入伍保留学籍申请数据");
|
||||
@@ -67,11 +66,20 @@ public class RtEnlistmentReserveController extends BaseController {
|
||||
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserve:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiOperation("获取应征入伍保留学籍申请详细信息")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return success(rtEnlistmentReserveService.selectRtEnlistmentReserveById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取应征入伍保留学籍申请详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserve:query')")
|
||||
@GetMapping(value = "/process/{processInstanceId}")
|
||||
@ApiOperation("获取应征入伍保留学籍申请详细信息")
|
||||
public AjaxResult getInfoByProcessInstanceId(@PathVariable("processInstanceId") String processInstanceId) {
|
||||
return success(rtEnlistmentReserveService.selectRtEnlistmentReserveByProcessInstanceId(processInstanceId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增应征入伍保留学籍申请
|
||||
*/
|
||||
@@ -79,8 +87,7 @@ public class RtEnlistmentReserveController extends BaseController {
|
||||
@Log(title = "应征入伍保留学籍申请", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ApiOperation("新增应征入伍保留学籍申请")
|
||||
public AjaxResult add(@RequestBody RtEnlistmentReserve rtEnlistmentReserve)
|
||||
{
|
||||
public AjaxResult add(@RequestBody RtEnlistmentReserve rtEnlistmentReserve) {
|
||||
return toAjax(rtEnlistmentReserveService.insertRtEnlistmentReserve(rtEnlistmentReserve));
|
||||
}
|
||||
|
||||
@@ -91,8 +98,7 @@ public class RtEnlistmentReserveController extends BaseController {
|
||||
@Log(title = "应征入伍保留学籍申请", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/update")
|
||||
@ApiOperation("修改应征入伍保留学籍申请")
|
||||
public AjaxResult edit(@RequestBody RtEnlistmentReserve rtEnlistmentReserve)
|
||||
{
|
||||
public AjaxResult edit(@RequestBody RtEnlistmentReserve rtEnlistmentReserve) {
|
||||
return toAjax(rtEnlistmentReserveService.updateRtEnlistmentReserve(rtEnlistmentReserve));
|
||||
}
|
||||
|
||||
@@ -103,8 +109,7 @@ public class RtEnlistmentReserveController extends BaseController {
|
||||
@Log(title = "应征入伍保留学籍申请", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/{ids}")
|
||||
@ApiOperation("删除应征入伍保留学籍申请")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
return toAjax(rtEnlistmentReserveService.deleteRtEnlistmentReserveByIds(ids));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user