1.辅导员导出去向填写记录

2.学院查看 导出去向填写记录 导出返校情况 查看 导出预计离校情况 查看 导出学生到家情况
This commit is contained in:
zhy
2025-09-30 09:52:23 +08:00
parent 79ba38fc3f
commit fb522488a8
7 changed files with 602 additions and 164 deletions

View File

@@ -9,8 +9,11 @@ import com.srs.comprehensive.domain.ViewStuInfo;
import com.srs.survey.domain.dto.LeaveExport;
import com.srs.survey.domain.dto.LeaveRes;
import com.srs.survey.domain.dto.ReturnRes;
import com.srs.survey.domain.dto.XwReturnRes;
import com.srs.survey.domain.vo.SurItineraryStatisticsVo;
import com.srs.survey.service.ISurSurveyService;
import com.srs.system.domain.SysDeptMap;
import com.srs.system.service.ISysDeptMapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import io.swagger.annotations.*;
@@ -40,6 +43,30 @@ public class SurItineraryController extends BaseController {
@Autowired
private ISurSurveyService surSurveyService;
@PreAuthorize("@ss.hasPermi('survey:itinerary:listFdyAll')")
@Log(title = "辅导员导出学生假期填写记录", businessType = BusinessType.EXPORT)
@PostMapping("/fdyExport")
@ApiOperation("辅导员导出学生假期填写记录")
public void fdyExport(HttpServletResponse response, SurItinerary param)
{
param.tNo = getUsername();
List<SurItinerary> list = surItineraryService.listView(param);
ExcelUtil<SurItinerary> util = new ExcelUtil<SurItinerary>(SurItinerary.class);
util.exportExcel(response, list, "学生假期返校数据");
}
@PreAuthorize("@ss.hasPermi('survey:itinerary:listFdyAll')")
@GetMapping("/listFdyAll")
@ApiOperation("辅导员查询待审核")
public TableDataInfo listFdyAll(SurItinerary param){
param.tNo = getUsername();
startPage();
List<SurItinerary> list = surItineraryService.listView(param);
return getDataTable(list);
}
@GetMapping("/countFdyClassWillLeave/{surveyId}")
@ApiOperation("统计预计离校")
public AjaxResult countFdyClassWillLeave(@PathVariable Long surveyId) {
@@ -209,11 +236,97 @@ public class SurItineraryController extends BaseController {
return surItineraryService.leaveAudit(param);
}
@PreAuthorize("@ss.hasPermi('survey:itinerary:listFdyAll')")
@GetMapping("/listFdyAll")
@ApiOperation("辅导员查询待审核")
public TableDataInfo listFdyAll(SurItinerary param){
param.tNo = getUsername();
@Autowired
ISysDeptMapService _deptMap;
@PreAuthorize("@ss.hasPermi('survey:itinerary:listXw')")
@GetMapping("/listXwReturnRes1/{surveyId}")
@ApiOperation("学务列出学生返校情况")
public AjaxResult listXwReturnRes1(@PathVariable Long surveyId) {
Long oldId = getDeptId();
SysDeptMap dept = _deptMap.getOldDeptByNewId(oldId);
Long deptId = null;
if (dept != null) {
deptId = dept.getOldDeptId();
}
List<Map<String, Object>> list = surItineraryService.listXwReturnRes1(surveyId,deptId);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('survey:itinerary:listXw')")
@GetMapping("/listXwSubmitRes/{surveyId}")
@ApiOperation("学务列出到家人数")
public AjaxResult listXwSubmitRes(@PathVariable Long surveyId) {
Long oldId = getDeptId();
SysDeptMap dept = _deptMap.getOldDeptByNewId(oldId);
Long deptId = null;
if (dept != null) {
deptId = dept.getOldDeptId();
}
List<Map<String, Object>> list = surItineraryService.listXwSubmitRes(surveyId,deptId);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('survey:itinerary:listXw')")
@GetMapping("/countXwWillLeave/{surveyId}")
@ApiOperation("学院统计预计离校")
public AjaxResult countXwWillLeave(@PathVariable Long surveyId) {
Long oldId = getDeptId();
SysDeptMap dept = _deptMap.getOldDeptByNewId(oldId);
Long deptId = null;
if (dept != null) {
deptId = dept.getOldDeptId();
}
List<Map<String, Object>> list = surItineraryService.countXwWillLeave(surveyId,deptId);
return AjaxResult.success(list);
}
@PreAuthorize("@ss.hasPermi('survey:itinerary:listXw')")
@PostMapping("/exportXwReturnRes")
@ApiOperation("学务导出学生假期返校结果")
public void exportXwReturnRes(HttpServletResponse response, SurItinerary param)
{
Long oldId = getDeptId();
SysDeptMap dept = _deptMap.getOldDeptByNewId(oldId);
Long deptId = null;
if (dept != null) {
deptId = dept.getOldDeptId();
}
param.setDeptId(deptId);
List<XwReturnRes> list = surItineraryService.listXwReturnRes(param);
ExcelUtil<XwReturnRes> util = new ExcelUtil<XwReturnRes>(XwReturnRes.class);
util.exportExcel(response, list, "学生假期返校结果");
}
@PreAuthorize("@ss.hasPermi('survey:itinerary:listXw')")
@Log(title = "学务导出学生假期填写记录", businessType = BusinessType.EXPORT)
@PostMapping("/xwExport")
@ApiOperation("学务导出学生假期填写记录")
public void xwExport(HttpServletResponse response, SurItinerary param)
{
Long oldId = getDeptId();
SysDeptMap dept = _deptMap.getOldDeptByNewId(oldId);
Long deptId = null;
if (dept != null) {
deptId = dept.getOldDeptId();
}
param.setDeptId(deptId);
List<SurItinerary> list = surItineraryService.listView(param);
ExcelUtil<SurItinerary> util = new ExcelUtil<SurItinerary>(SurItinerary.class);
util.exportExcel(response, list, "学生假期返校数据");
}
@PreAuthorize("@ss.hasPermi('survey:itinerary:listXw')")
@GetMapping("/listXw")
@ApiOperation("学院数据")
public TableDataInfo listXw(SurItinerary param){
Long oldId = getDeptId();
SysDeptMap dept = _deptMap.getOldDeptByNewId(oldId);
Long deptId = null;
if (dept != null) {
deptId = dept.getOldDeptId();
}
param.setDeptId(deptId);
startPage();
List<SurItinerary> list = surItineraryService.listView(param);
return getDataTable(list);