| | |
| | | List<ThStudentBatch> updateThStudentBatchList = new ArrayList<>(); |
| | | for (ThStudentReqDTO studentReqDTO : saveStudentReqDTOList) { |
| | | //学生表中过滤 |
| | | List<ThStudent> collect = students.stream().filter(s -> s.getIdcard().equals(studentReqDTO.getIdcard())).collect(Collectors.toList()); |
| | | List<ThStudent> collect = students.stream().filter(s -> s.getIdcard().equals(studentReqDTO.getIdcard()) && s.getInstitutionId().equals(institutionUser.getId()) ).collect(Collectors.toList()); |
| | | if(collect.size() > 0){ |
| | | ThStudent student = collect.get(0); |
| | | //修改 |
| | |
| | | select a.*,b.batch_name from th_cert a |
| | | left join th_batch b on a.batch_uuid=b.uuid |
| | | <where> |
| | | and a.del_flag=0 |
| | | and a.del_flag=0 and b.del_flag =0 |
| | | <if test="institutionName!=null and institutionName!=''"> |
| | | and a.institution_name =#{institutionName} |
| | | </if> |
| | |
| | | LEFT JOIN th_student s ON s.idcard = e.idcard |
| | | LEFT JOIN th_batch b ON b.uuid = e.batch_uuid |
| | | WHERE |
| | | e.del_flag = 0 |
| | | e.del_flag = 0 and s.del_flag = 0 and b.del_flag = 0 |
| | | <if test="query.idcard != null and query.idcard != ''"> |
| | | and e.idcard = #{query.idcard} |
| | | </if> |
| | |
| | | </update> |
| | | |
| | | <select id="getStudentBatchVOByBatchUuid" resultType="com.gkhy.exam.institutionalaccess.model.vo.ThStudentBatchVO"> |
| | | select sb.*, b.batch_lesson_num from th_student_batch sb INNER JOIN th_batch b ON sb.batch_uuid = b.uuid where sb.del_flag = 0 and sb.batch_uuid = #{batchUuid} |
| | | select sb.*, b.batch_lesson_num from th_student_batch sb INNER JOIN th_batch b ON sb.batch_uuid = b.uuid where sb.del_flag = 0 and b.del_flag=0 and sb.batch_uuid = #{batchUuid} |
| | | </select> |
| | | |
| | | <select id="getByIdCards" resultType="com.gkhy.exam.institutionalaccess.entity.ThStudentBatch" > |
| | |
| | | </if> |
| | | <if test="query.status == 0"></if> |
| | | <if test="query.status == 1"> |
| | | and TIMESTAMPDIFF(SECOND, start_time, finish_time) = d.duration |
| | | and (d.duration - TIMESTAMPDIFF(SECOND, start_time, finish_time)) <= 30 |
| | | </if> |
| | | <if test="query.status == 2"> |
| | | and TIMESTAMPDIFF(SECOND, start_time, finish_time) < d.duration |
| | | and (d.duration-TIMESTAMPDIFF(SECOND, start_time, finish_time)) > 30 |
| | | </if> |
| | | ORDER BY |
| | | d.id DESC |