| | |
| | | " " + "where id = " + "'" + examScore.getId() + "';"+ |
| | | "update sys_training_registration set is_exam = " + "'" + trainingRegistration.getIsExam() + "'" + |
| | | ",cancel = " + "'" + trainingRegistration.getCancel() + "'" + |
| | | " " + "where id = " + "'" + trainingRegistration.getId() + "';"+ |
| | | "update blade_user set hold = " + "'" + user.getHold() + "'" + |
| | | ",securitynumber = " + "'" + user.getSecuritynumber() + "'" + |
| | | ",user_type = " + "'" + user.getUserType() + "'" + |
| | | ",is_train = " + "'" + user.getIsTrain() + "'" + |
| | | " " + "where id = " + "'" + user.getId() + "'"; |
| | | " " + "where id = " + "'" + trainingRegistration.getId() + "'"; |
| | | myAsyncService.FTP(s1); |
| | | } |
| | | } |
| | |
| | | //设置为未制证的状态 |
| | | 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); |
| | |
| | | " " + "where id = " + "'" + examScore.getId() + "';"+ |
| | | "update sys_training_registration set is_exam = " + "'" + trainingRegistration.getIsExam() + "'" + |
| | | " " + "where id = " + "'" + trainingRegistration.getId() + "';"+ |
| | | "update blade_user set hold = " + "'" + user.getHold() + "'" + |
| | | ",securitynumber = " + "'" + user.getSecuritynumber() + "'" + |
| | | "update blade_user set hold = " + "'" + 2 + "'" + |
| | | ",securitynumber = " + "'" + "" + "'" + |
| | | ",user_type = " + "'" + user.getUserType() + "'" + |
| | | ",is_train = " + "'" + user.getIsTrain() + "'" + |
| | | " " + "where id = " + "'" + user.getId() + "'"; |