应征入伍保留学籍

This commit is contained in:
2025-10-31 17:46:14 +08:00
parent a33e929582
commit 6e9d57a5e0
18 changed files with 1663 additions and 0 deletions

View File

@@ -0,0 +1,110 @@
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;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.*;
import org.springframework.security.access.prepost.PreAuthorize;
import com.srs.routine.domain.RtEnlistmentReserveApproval;
import com.srs.routine.service.IRtEnlistmentReserveApprovalService;
import com.srs.common.core.controller.BaseController;
import com.srs.common.core.domain.AjaxResult;
import com.srs.common.utils.poi.ExcelUtil;
import com.srs.common.enums.BusinessType;
import com.srs.common.annotation.Log;
import com.srs.common.core.page.TableDataInfo;
/**
* 保留学籍审批记录Controller
*
* @author srs
* @date 2025-10-31
*/
@RestController
@RequestMapping("/routine/enlistmentReserveApproval")
@Api(value = "保留学籍审批记录管理", tags = "保留学籍审批记录管理")
public class RtEnlistmentReserveApprovalController extends BaseController {
@Autowired
private IRtEnlistmentReserveApprovalService rtEnlistmentReserveApprovalService;
/**
* 查询保留学籍审批记录列表
*/
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserveApproval:list')")
@GetMapping("/list")
@ApiOperation("查询保留学籍审批记录列表")
public TableDataInfo list(RtEnlistmentReserveApproval rtEnlistmentReserveApproval)
{
startPage();
List<RtEnlistmentReserveApproval> list = rtEnlistmentReserveApprovalService.selectRtEnlistmentReserveApprovalList(rtEnlistmentReserveApproval);
return getDataTable(list);
}
/**
* 导出保留学籍审批记录列表
*/
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserveApproval:export')")
@Log(title = "保留学籍审批记录", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ApiOperation("导出保留学籍审批记录列表")
public void export(HttpServletResponse response, RtEnlistmentReserveApproval rtEnlistmentReserveApproval)
{
List<RtEnlistmentReserveApproval> list = rtEnlistmentReserveApprovalService.selectRtEnlistmentReserveApprovalList(rtEnlistmentReserveApproval);
ExcelUtil<RtEnlistmentReserveApproval> util = new ExcelUtil<RtEnlistmentReserveApproval>(RtEnlistmentReserveApproval.class);
util.exportExcel(response, list, "保留学籍审批记录数据");
}
/**
* 获取保留学籍审批记录详细信息
*/
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserveApproval:query')")
@GetMapping(value = "/{id}")
@ApiOperation("获取保留学籍审批记录详细信息")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(rtEnlistmentReserveApprovalService.selectRtEnlistmentReserveApprovalById(id));
}
/**
* 新增保留学籍审批记录
*/
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserveApproval:add')")
@Log(title = "保留学籍审批记录", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ApiOperation("新增保留学籍审批记录")
public AjaxResult add(@RequestBody RtEnlistmentReserveApproval rtEnlistmentReserveApproval)
{
return toAjax(rtEnlistmentReserveApprovalService.insertRtEnlistmentReserveApproval(rtEnlistmentReserveApproval));
}
/**
* 修改保留学籍审批记录
*/
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserveApproval:edit')")
@Log(title = "保留学籍审批记录", businessType = BusinessType.UPDATE)
@PostMapping("/update")
@ApiOperation("修改保留学籍审批记录")
public AjaxResult edit(@RequestBody RtEnlistmentReserveApproval rtEnlistmentReserveApproval)
{
return toAjax(rtEnlistmentReserveApprovalService.updateRtEnlistmentReserveApproval(rtEnlistmentReserveApproval));
}
/**
* 删除保留学籍审批记录
*/
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserveApproval:remove')")
@Log(title = "保留学籍审批记录", businessType = BusinessType.DELETE)
@PostMapping("/{ids}")
@ApiOperation("删除保留学籍审批记录")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(rtEnlistmentReserveApprovalService.deleteRtEnlistmentReserveApprovalByIds(ids));
}
}

View File

@@ -0,0 +1,110 @@
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;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.*;
import org.springframework.security.access.prepost.PreAuthorize;
import com.srs.routine.domain.RtEnlistmentReserveAttach;
import com.srs.routine.service.IRtEnlistmentReserveAttachService;
import com.srs.common.core.controller.BaseController;
import com.srs.common.core.domain.AjaxResult;
import com.srs.common.utils.poi.ExcelUtil;
import com.srs.common.enums.BusinessType;
import com.srs.common.annotation.Log;
import com.srs.common.core.page.TableDataInfo;
/**
* 保留学籍申请附件入伍通知书等Controller
*
* @author srs
* @date 2025-10-31
*/
@RestController
@RequestMapping("/routine/enlistmentReserveAttach")
@Api(value = "保留学籍申请附件(入伍通知书等)管理", tags = "保留学籍申请附件(入伍通知书等)管理")
public class RtEnlistmentReserveAttachController extends BaseController {
@Autowired
private IRtEnlistmentReserveAttachService rtEnlistmentReserveAttachService;
/**
* 查询保留学籍申请附件(入伍通知书等)列表
*/
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserveAttach:list')")
@GetMapping("/list")
@ApiOperation("查询保留学籍申请附件(入伍通知书等)列表")
public TableDataInfo list(RtEnlistmentReserveAttach rtEnlistmentReserveAttach)
{
startPage();
List<RtEnlistmentReserveAttach> list = rtEnlistmentReserveAttachService.selectRtEnlistmentReserveAttachList(rtEnlistmentReserveAttach);
return getDataTable(list);
}
/**
* 导出保留学籍申请附件(入伍通知书等)列表
*/
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserveAttach:export')")
@Log(title = "保留学籍申请附件(入伍通知书等)", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ApiOperation("导出保留学籍申请附件(入伍通知书等)列表")
public void export(HttpServletResponse response, RtEnlistmentReserveAttach rtEnlistmentReserveAttach)
{
List<RtEnlistmentReserveAttach> list = rtEnlistmentReserveAttachService.selectRtEnlistmentReserveAttachList(rtEnlistmentReserveAttach);
ExcelUtil<RtEnlistmentReserveAttach> util = new ExcelUtil<RtEnlistmentReserveAttach>(RtEnlistmentReserveAttach.class);
util.exportExcel(response, list, "保留学籍申请附件(入伍通知书等)数据");
}
/**
* 获取保留学籍申请附件(入伍通知书等)详细信息
*/
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserveAttach:query')")
@GetMapping(value = "/{id}")
@ApiOperation("获取保留学籍申请附件(入伍通知书等)详细信息")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(rtEnlistmentReserveAttachService.selectRtEnlistmentReserveAttachById(id));
}
/**
* 新增保留学籍申请附件(入伍通知书等)
*/
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserveAttach:add')")
@Log(title = "保留学籍申请附件(入伍通知书等)", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ApiOperation("新增保留学籍申请附件(入伍通知书等)")
public AjaxResult add(@RequestBody RtEnlistmentReserveAttach rtEnlistmentReserveAttach)
{
return toAjax(rtEnlistmentReserveAttachService.insertRtEnlistmentReserveAttach(rtEnlistmentReserveAttach));
}
/**
* 修改保留学籍申请附件(入伍通知书等)
*/
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserveAttach:edit')")
@Log(title = "保留学籍申请附件(入伍通知书等)", businessType = BusinessType.UPDATE)
@PostMapping("/update")
@ApiOperation("修改保留学籍申请附件(入伍通知书等)")
public AjaxResult edit(@RequestBody RtEnlistmentReserveAttach rtEnlistmentReserveAttach)
{
return toAjax(rtEnlistmentReserveAttachService.updateRtEnlistmentReserveAttach(rtEnlistmentReserveAttach));
}
/**
* 删除保留学籍申请附件(入伍通知书等)
*/
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserveAttach:remove')")
@Log(title = "保留学籍申请附件(入伍通知书等)", businessType = BusinessType.DELETE)
@PostMapping("/{ids}")
@ApiOperation("删除保留学籍申请附件(入伍通知书等)")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(rtEnlistmentReserveAttachService.deleteRtEnlistmentReserveAttachByIds(ids));
}
}

View File

@@ -0,0 +1,110 @@
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;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.*;
import org.springframework.security.access.prepost.PreAuthorize;
import com.srs.routine.domain.RtEnlistmentReserve;
import com.srs.routine.service.IRtEnlistmentReserveService;
import com.srs.common.core.controller.BaseController;
import com.srs.common.core.domain.AjaxResult;
import com.srs.common.utils.poi.ExcelUtil;
import com.srs.common.enums.BusinessType;
import com.srs.common.annotation.Log;
import com.srs.common.core.page.TableDataInfo;
/**
* 应征入伍保留学籍申请Controller
*
* @author srs
* @date 2025-10-31
*/
@RestController
@RequestMapping("/routine/enlistmentReserve")
@Api(value = "应征入伍保留学籍申请管理", tags = "应征入伍保留学籍申请管理")
public class RtEnlistmentReserveController extends BaseController {
@Autowired
private IRtEnlistmentReserveService rtEnlistmentReserveService;
/**
* 查询应征入伍保留学籍申请列表
*/
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserve:list')")
@GetMapping("/list")
@ApiOperation("查询应征入伍保留学籍申请列表")
public TableDataInfo list(RtEnlistmentReserve rtEnlistmentReserve)
{
startPage();
List<RtEnlistmentReserve> list = rtEnlistmentReserveService.selectRtEnlistmentReserveList(rtEnlistmentReserve);
return getDataTable(list);
}
/**
* 导出应征入伍保留学籍申请列表
*/
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserve:export')")
@Log(title = "应征入伍保留学籍申请", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ApiOperation("导出应征入伍保留学籍申请列表")
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, "应征入伍保留学籍申请数据");
}
/**
* 获取应征入伍保留学籍申请详细信息
*/
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserve:query')")
@GetMapping(value = "/{id}")
@ApiOperation("获取应征入伍保留学籍申请详细信息")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(rtEnlistmentReserveService.selectRtEnlistmentReserveById(id));
}
/**
* 新增应征入伍保留学籍申请
*/
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserve:add')")
@Log(title = "应征入伍保留学籍申请", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ApiOperation("新增应征入伍保留学籍申请")
public AjaxResult add(@RequestBody RtEnlistmentReserve rtEnlistmentReserve)
{
return toAjax(rtEnlistmentReserveService.insertRtEnlistmentReserve(rtEnlistmentReserve));
}
/**
* 修改应征入伍保留学籍申请
*/
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserve:edit')")
@Log(title = "应征入伍保留学籍申请", businessType = BusinessType.UPDATE)
@PostMapping("/update")
@ApiOperation("修改应征入伍保留学籍申请")
public AjaxResult edit(@RequestBody RtEnlistmentReserve rtEnlistmentReserve)
{
return toAjax(rtEnlistmentReserveService.updateRtEnlistmentReserve(rtEnlistmentReserve));
}
/**
* 删除应征入伍保留学籍申请
*/
@PreAuthorize("@ss.hasPermi('routine:enlistmentReserve:remove')")
@Log(title = "应征入伍保留学籍申请", businessType = BusinessType.DELETE)
@PostMapping("/{ids}")
@ApiOperation("删除应征入伍保留学籍申请")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(rtEnlistmentReserveService.deleteRtEnlistmentReserveByIds(ids));
}
}