|
|
@ -24,8 +24,10 @@ import com.ibeetl.admin.core.util.TimeTool;
|
|
|
|
import com.ibeetl.admin.core.web.JsonResult;
|
|
|
|
import com.ibeetl.admin.core.web.JsonResult;
|
|
|
|
import com.ibeetl.jlw.dao.SchoolClassDao;
|
|
|
|
import com.ibeetl.jlw.dao.SchoolClassDao;
|
|
|
|
import com.ibeetl.jlw.entity.*;
|
|
|
|
import com.ibeetl.jlw.entity.*;
|
|
|
|
|
|
|
|
import com.ibeetl.jlw.entity.dto.ApplicationUseLogsAnalysisDTO;
|
|
|
|
import com.ibeetl.jlw.entity.dto.StudentBatchImportAdminDTO;
|
|
|
|
import com.ibeetl.jlw.entity.dto.StudentBatchImportAdminDTO;
|
|
|
|
import com.ibeetl.jlw.entity.dto.StudentBatchImportUniAdminDTO;
|
|
|
|
import com.ibeetl.jlw.entity.dto.StudentBatchImportUniAdminDTO;
|
|
|
|
|
|
|
|
import com.ibeetl.jlw.entity.vo.ApplicationUseLogsAnalysisVO;
|
|
|
|
import com.ibeetl.jlw.entity.vo.StudentLogAnalysisVO;
|
|
|
|
import com.ibeetl.jlw.entity.vo.StudentLogAnalysisVO;
|
|
|
|
import com.ibeetl.jlw.entity.vo.StudentLoginLogVO;
|
|
|
|
import com.ibeetl.jlw.entity.vo.StudentLoginLogVO;
|
|
|
|
import com.ibeetl.jlw.entity.vo.StudentUseLogVO;
|
|
|
|
import com.ibeetl.jlw.entity.vo.StudentUseLogVO;
|
|
|
@ -3009,4 +3011,39 @@ public class StudentController extends BaseController{
|
|
|
|
listener.putFailMessage(e.getMessage());
|
|
|
|
listener.putFailMessage(e.getMessage());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 分页查询使用记录,院校级别的统计。不关心哪个用户
|
|
|
|
|
|
|
|
* TODO 理想 这里还没写完。
|
|
|
|
|
|
|
|
* @param dto
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@PostMapping(MODEL + "/applicationUseLogsAnalysis.json")
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public JsonResult applicationUseLogsAnalysis(ApplicationUseLogsAnalysisDTO dto, @SCoreUser CoreUser coreUser) {
|
|
|
|
|
|
|
|
return JsonResult.success(studentService.applicationUseLogsAnalysis(dto.getPageQuery()));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 功能描述: <br>
|
|
|
|
|
|
|
|
* 学生登录日志 导出
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param condition
|
|
|
|
|
|
|
|
* @param coreUser
|
|
|
|
|
|
|
|
* @Author: lx
|
|
|
|
|
|
|
|
* @Date: 2022/12/17 3:34
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@GetMapping(MODEL + "/applicationUseLogsAnalysisExport.json")
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public String applicationUseLogsAnalysisExport(ApplicationUseLogsAnalysisDTO condition, @SCoreUser CoreUser coreUser) throws IOException {
|
|
|
|
|
|
|
|
Assert.isFalse(coreUser.isStudent(), "暂无权限访问!");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
condition.setPage(1); condition.setLimit(Integer.MAX_VALUE + 0L);
|
|
|
|
|
|
|
|
PageQuery<ApplicationUseLogsAnalysisVO> page = studentService.applicationUseLogsAnalysis(condition.getPageQuery());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String filename = StrUtil.format("院校使用日志导出{}.xlsx", System.currentTimeMillis());
|
|
|
|
|
|
|
|
write(response, filename, "Sheet1", ApplicationUseLogsAnalysisVO.class, page.getList());
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|