| | |
| | | import org.springblade.modules.system.entity.User; |
| | | import org.springblade.modules.system.service.IRoleService; |
| | | import org.springblade.modules.system.service.IUserService; |
| | | import org.springblade.modules.system.service.MyAsyncService; |
| | | import org.springblade.modules.system.vo.UserVO; |
| | | import org.springblade.modules.training.entity.TrainingRegistration; |
| | | import org.springblade.modules.training.service.TrainingRegistrationService; |
| | |
| | | |
| | | /** |
| | | * 考试成绩服务实现类 |
| | | * |
| | | * @author zhongrj |
| | | */ |
| | | @Service |
| | |
| | | |
| | | @Autowired |
| | | private IInformationService informationService; |
| | | |
| | | @Autowired |
| | | private MyAsyncService myAsyncService; |
| | | |
| | | |
| | | /** |
| | | * 自定义分页数据 |
| | | * |
| | | * @param page 分页条件 |
| | | * @param examScore 考试成绩对象 |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 详情 |
| | | * |
| | | * @param examScore 考试成绩信息对象 |
| | | */ |
| | | @Override |
| | |
| | | |
| | | /** |
| | | * 保存考试成绩 |
| | | * |
| | | * @param examScore 考试成绩信息对象 |
| | | * @return |
| | | */ |
| | |
| | | String s = |
| | | "update sys_apply set is_exam = " + apply1.getIsExam() + " " +"where id = " + "'" + apply1.getId() + "';" + |
| | | "update blade_user set is_apply = " + user.getIsApply() + " " +"where id = " + "'" + user.getId() + "'"; |
| | | FtpUtil.sqlFileUpload(s); |
| | | //FtpUtil.sqlFileUpload(s); |
| | | myAsyncService.FTP(s); |
| | | |
| | | } |
| | | //模拟考试 |
| | |
| | | String s = |
| | | "update sys_training_registration set is_exam = " + trainingRegistration1.getIsExam() + " " +"where id = " + "'" + trainingRegistration1.getId() + "';" + |
| | | "update blade_user set is_train = " + user.getIsTrain() + " " +"where id = " + "'" + user.getId() + "'"; |
| | | FtpUtil.sqlFileUpload(s); |
| | | //FtpUtil.sqlFileUpload(s); |
| | | myAsyncService.FTP(s); |
| | | } |
| | | |
| | | //设置考试ID |
| | |
| | | ",exam_end_time = " + "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:dd").format(examScore.getExamEndTime()) + "'" + |
| | | ",qualified = " + "'" + examScore.getQualified() + "'" + |
| | | " " +"where id = " + "'" + examScore.getId() + "'"; |
| | | FtpUtil.sqlFileUpload(s1); |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.FTP(s1); |
| | | |
| | | if (i>0){ |
| | | //返回结果 |
| | |
| | | |
| | | /** |
| | | * 导入实操成绩 |
| | | * |
| | | * @param examScoreExcelList |
| | | * @param isCovered 是否覆盖 |
| | | */ |
| | |
| | | // ",update_time = " + "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(user.getUpdateTime()) + "'" + |
| | | // ",user_type = " + "'" + user.getUserType() + "'" + |
| | | // " " + "where id = " + "'" + user.getId() + "'"; |
| | | FtpUtil.sqlFileUpload(s1); |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.FTP(s1); |
| | | } |
| | | } |
| | | } else { |
| | |
| | | ",all_grade = " + "'" + examScore.getAllGrade() + "'" + |
| | | ",qualified = " + "'" + examScore.getQualified() + "'" + |
| | | " " + "where id = " + "'" + examScore.getId() + "'"; |
| | | FtpUtil.sqlFileUpload(s1); |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.FTP(s1); |
| | | //更新成绩数据 |
| | | baseMapper.updateById(examScore); |
| | | }else { |
| | |
| | | public List<Map<String, Object>> scoreStatistics(String deptid,String jurisdiction) { |
| | | return baseMapper.scoreStatistics(deptid,jurisdiction); |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> scoreStatisticssc(String deptid,String jurisdiction) { |
| | | return baseMapper.scoreStatisticssc(deptid,jurisdiction); |
| | |
| | | |
| | | /** |
| | | * 修改成绩信息 |
| | | * |
| | | * @param examScore |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 考试成绩及状态修改 |
| | | * |
| | | * @param updateParamVo |
| | | */ |
| | | @Override |
| | |
| | | |
| | | /** |
| | | * 考试重置 |
| | | * |
| | | * @param updateParamVo |
| | | * @return |
| | | */ |
| | |
| | | "update blade_user set is_train = " + "'" + user.getIsTrain() + "'" + |
| | | " " + "where id = " + "'" + user.getId() + "';"+ |
| | | "delete from exam_score where id = " + "'" + updateParamVo.getScoreId() + "'"; |
| | | FtpUtil.sqlFileUpload(s1); |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.FTP(s1); |
| | | |
| | | return true; |
| | | } |
| | |
| | | "update blade_user set is_train = " + "'" + user.getIsTrain() + "'" + |
| | | " " + "where id = " + "'" + user.getId() + "';"+ |
| | | "delete from exam_score where id = " + "'" + updateParamVo.getScoreId() + "'"; |
| | | FtpUtil.sqlFileUpload(s1); |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.FTP(s1); |
| | | |
| | | return true; |
| | | } |
| | |
| | | |
| | | /** |
| | | * 按条件查询成绩数据 |
| | | * |
| | | * @param examScoreVO |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 考试状态修改,考试成绩恢复 |
| | | * |
| | | * @param |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 点击了开始考试后超过60分钟后再考试的,计算之前的考试成绩 |
| | | * |
| | | * @param examScore |
| | | * @return |
| | | */ |
| | |
| | | String s = |
| | | "update sys_training_registration set is_exam = " + trainingRegistration1.getIsExam() + " " +"where id = " + "'" + trainingRegistration1.getId() + "';" + |
| | | "update blade_user set is_train = " + user.getIsTrain() + " " +"where id = " + "'" + user.getId() + "'"; |
| | | FtpUtil.sqlFileUpload(s); |
| | | //FtpUtil.sqlFileUpload(s); |
| | | myAsyncService.FTP(s); |
| | | |
| | | //设置理论得分 |
| | | score.setTheoryGrade(count); |
| | |
| | | ",exam_end_time = " + "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:dd").format(new Date()) + "'" + |
| | | ",qualified = " + "'" + score.getQualified() + "'" + |
| | | " " +"where id = " + "'" + score.getId() + "'"; |
| | | FtpUtil.sqlFileUpload(s1); |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.FTP(s1); |
| | | |
| | | if (i>0){ |
| | | //返回结果 |
| | |
| | | |
| | | /** |
| | | * 考试情况统计,按月统计各个培训学校考试合格人数和不合格人数 |
| | | * |
| | | * @param |
| | | */ |
| | | @Override |