智慧保安后台管理-外网-验收版本
Administrator
2021-07-18 60a09b74e2091c49da33c000c9e4b61e2cdd237b
报名考试查询接口修改
3 files modified
13 ■■■■ changed files
src/main/java/org/springblade/modules/apply/controller/ApplyController.java 4 ●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/apply/mapper/ApplyMapper.xml 4 ●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/apply/vo/ApplyVO.java 5 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/apply/controller/ApplyController.java
@@ -87,6 +87,8 @@
        if (null==apply.getId()){
            //去生成准考证
            apply.setCandidateNo(getCandidateNo(apply));
            //默认通过
            apply.setApplyStatus(2);
        }
        return R.status(applyService.saveOrUpdate(apply));
    }
@@ -128,7 +130,7 @@
            String examName
                = examPaper.getExamName().replaceAll("\\s*", "").replaceAll("[^(\\u4e00-\\u9fa5)]", "").substring(0,1);
            //前缀
            //前缀 = 年的最后两位  + 月份(两位) + 考试名称(中文拼音)首字母(去除数字,字母) + 考试类型 + 季度拼音首字母大写(春季就是 C)
            String result = year
                            + months
                            + toFirstChar(examName).toUpperCase()
src/main/java/org/springblade/modules/apply/mapper/ApplyMapper.xml
@@ -5,7 +5,9 @@
    <!--考试报名分页信息-->
    <select id="selectApplyPage" resultType="org.springblade.modules.apply.vo.ApplyVO">
        SELECT
            sa.*,ke.total_score paperScore,ke.exam_type examType,ke.start_time startTime
            sa.id,sa.user_id userId,sa.candidate_no candidateNo,apply_time,exam_id examId,
            ke.total_score paperScore,ke.exam_type examType,ke.start_time examTime,ke.exam_name examName,
            bu.real_name name
        FROM
            sys_apply sa
        left join
src/main/java/org/springblade/modules/apply/vo/ApplyVO.java
@@ -50,4 +50,9 @@
    private Integer examType;
    /**
     * 考试名称
     */
    private String examName;
}