智慧保安后台管理-外网
Administrator
2022-06-21 2be0348e415c77dbecaae59277ed769943078523
制证批量审批修改
2 files modified
27 ■■■■ changed files
src/main/java/org/springblade/modules/exam/service/impl/ScoreAuditRecordsServiceImpl.java 26 ●●●● patch | view | raw | blame | history
src/main/resources/application.yml 1 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/exam/service/impl/ScoreAuditRecordsServiceImpl.java
@@ -268,13 +268,13 @@
                        //设置为未制证的状态
                        user.setUserType(7);
                        //如果已有保安证编号,不更保安证编号信息
//                        if (null == user.getSecuritynumber() || user.getSecuritynumber().equals("")) {
//                            //去内网生成保安证编号,由内网生成,无需返回
//                            //数据推送
//                            Map<String, Object> map = new HashMap<>(1);
//                            map.put("key",examScore);
//                            myAsyncService.FTPSecurityNumberBit(map);
//                        }
                        if (null == user.getSecuritynumber() || user.getSecuritynumber().equals("")) {
                            //去内网生成保安证编号,由内网生成,无需返回
                            //数据推送
                            Map<String, Object> map = new HashMap<>(1);
                            map.put("key",examScore);
                            myAsyncService.FTPSecurityNumberBit(map);
                        }
                    } else {
                        //不合格
                        examScore.setQualified(1);
@@ -306,12 +306,12 @@
                            ",qualified = " + "'" + examScore.getQualified() + "'" +
                            " " + "where id = " + "'" + examScore.getId() + "';"+
                        "update sys_training_registration set is_exam = " + "'" + trainingRegistration.getIsExam() + "'" +
                            " " + "where id = " + "'" + trainingRegistration.getId() + "';"+
                        "update blade_user set hold = " + "'" + 2 + "'" +
                            ",securitynumber = " + "'" + "" + "'" +
                            ",user_type = " + "'" + user.getUserType() + "'" +
                            ",is_train = " + "'" + user.getIsTrain() + "'" +
                            " " + "where id = " + "'" + user.getId() + "'";
                            " " + "where id = " + "'" + trainingRegistration.getId() + "'";
//                        "update blade_user set hold = " + "'" + 2 + "'" +
//                            ",securitynumber = " + "'" + "" + "'" +
//                            ",user_type = " + "'" + user.getUserType() + "'" +
//                            ",is_train = " + "'" + user.getIsTrain() + "'" +
//                            " " + "where id = " + "'" + user.getId() + "'";
                    myAsyncService.FTP(s1);
                }
            }
src/main/resources/application.yml
@@ -237,6 +237,7 @@
      - /examScore/examScoreSync
      - /securityPaper/import-security-paper
      - /examScore/clearPaper
      - /sql/async
    #授权认证配置
    auth: