Commit 83e32a2f authored by 霍传世's avatar 霍传世

HaiNa---接口

parent cda9abd9
...@@ -40,7 +40,7 @@ public class LoginController { ...@@ -40,7 +40,7 @@ public class LoginController {
"\tcandidate_exam a join \n" + "\tcandidate_exam a join \n" +
"\tcandidate b on a.id_card = b.id_card \n" + "\tcandidate b on a.id_card = b.id_card \n" +
"WHERE\n" + "WHERE\n" +
"\tb.id_card = ? \n" + "\t a.id_card = ? \n" +
"\tAND a.zkz_num = ? ",new Object[]{candidate.getIdCard(),candidate.getZkzNum()},new BeanPropertyRowMapper<>(CandidateExam.class)); "\tAND a.zkz_num = ? ",new Object[]{candidate.getIdCard(),candidate.getZkzNum()},new BeanPropertyRowMapper<>(CandidateExam.class));
redisTemplate.opsForValue().set(candidateExam.getCandidateConnectCode(),new JSONObject(candidateExam).toString()); redisTemplate.opsForValue().set(candidateExam.getCandidateConnectCode(),new JSONObject(candidateExam).toString());
JSONObject responseData = new JSONObject(); JSONObject responseData = new JSONObject();
...@@ -54,7 +54,7 @@ public class LoginController { ...@@ -54,7 +54,7 @@ public class LoginController {
} }
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("code",500); jsonObject.put("code",500);
jsonObject.put("message","账号密码错误"); jsonObject.put("message","身份证号或准考证号错误");
return ResponseEntity.badRequest().body(jsonObject.toString()); return ResponseEntity.badRequest().body(jsonObject.toString());
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment