修改综合评价达标量不能导出
This commit is contained in:
@@ -47,11 +47,23 @@ public class TeacherEvaluationStatusController extends BaseController {
|
||||
/**
|
||||
* 导出辅导员综合评价状态列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('comprehensive:teacherEvaluationStatus:export')")
|
||||
// @PreAuthorize("@ss.hasPermi('comprehensive:teacherEvaluationStatus:export')")
|
||||
@Log(title = "辅导员综合评价状态", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, TeacherEvaluationStatus teacherEvaluationStatus) {
|
||||
List<TeacherEvaluationStatus> list = teacherEvaluationStatusService.selectTeacherEvaluationStatusList(teacherEvaluationStatus);
|
||||
for (TeacherEvaluationStatus entity : list){
|
||||
if(entity.getIsCompleted()){
|
||||
entity.setCompleted("是");
|
||||
}else{
|
||||
entity.setCompleted("否");
|
||||
}
|
||||
if(entity.getScoreImported()){
|
||||
entity.setIsScoreImported("是");
|
||||
}else{
|
||||
entity.setIsScoreImported("否");
|
||||
}
|
||||
}
|
||||
ExcelUtil<TeacherEvaluationStatus> util = new ExcelUtil<TeacherEvaluationStatus>(TeacherEvaluationStatus.class);
|
||||
util.exportExcel(response, list, "辅导员综合评价状态数据");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user