|
@@ -396,8 +396,8 @@ public class MqLogicServiceImpl implements MqLogicService {
|
|
|
@Transactional
|
|
|
public void execMqFaceVerifySaveLogic(MqDto mqDto, String key) {
|
|
|
Map<String, Object> param = (Map<String, Object>) mqDto.getBody();
|
|
|
- Long id = (Long) param.get(SystemConstant.ID);
|
|
|
- Long recordId = (Long) param.get(SystemConstant.RECORD_ID);
|
|
|
+ Long id = Long.parseLong(String.valueOf(param.get(SystemConstant.ID)));
|
|
|
+ Long recordId = Long.parseLong(String.valueOf(param.get(SystemConstant.RECORD_ID)));
|
|
|
String type = (String) param.get(SystemConstant.TYPE);
|
|
|
String photoUrl = (String) param.get("photoUrl");
|
|
|
Integer faceCount = (Integer) param.get("faceCount");
|
|
@@ -547,8 +547,8 @@ public class MqLogicServiceImpl implements MqLogicService {
|
|
|
@Transactional
|
|
|
public void execMqLivenessVerifySaveLogic(MqDto mqDto, String key) {
|
|
|
Map<String, Object> param = (Map<String, Object>) mqDto.getBody();
|
|
|
- Long id = (Long) param.get(SystemConstant.ID);
|
|
|
- Long recordId = (Long) param.get(SystemConstant.RECORD_ID);
|
|
|
+ Long id = Long.parseLong(String.valueOf(param.get(SystemConstant.ID)));
|
|
|
+ Long recordId = Long.parseLong(String.valueOf(param.get(SystemConstant.RECORD_ID)));
|
|
|
String type = (String) param.get(SystemConstant.TYPE);
|
|
|
String actions = (String) param.get("actions");
|
|
|
Integer retry = (Integer) param.get("retry");
|
|
@@ -680,8 +680,8 @@ public class MqLogicServiceImpl implements MqLogicService {
|
|
|
@Transactional
|
|
|
public void execMqRecordPersistedLogic(MqDto mqDto, String key) {
|
|
|
Map<String, Object> param = (Map<String, Object>) mqDto.getBody();
|
|
|
- Long recordId = (Long) param.get(SystemConstant.RECORD_ID);
|
|
|
- Long studentId = (Long) param.get(SystemConstant.STUDENT_ID);
|
|
|
+ Long recordId = Long.parseLong(String.valueOf(param.get(SystemConstant.RECORD_ID)));
|
|
|
+ Long studentId = Long.parseLong(String.valueOf(param.get(SystemConstant.STUDENT_ID)));
|
|
|
commonService.persisted(recordId, studentId);
|
|
|
tmRocketMessageService.saveMqMessageSuccess(mqDto, key);
|
|
|
}
|
|
@@ -831,8 +831,8 @@ public class MqLogicServiceImpl implements MqLogicService {
|
|
|
@Override
|
|
|
public void execMqCalculateScoreLogic(MqDto mqDto, String key) {
|
|
|
Map<String, Object> param = (Map<String, Object>) mqDto.getBody();
|
|
|
- Long examId = (Long) param.get(SystemConstant.EXAM_ID);
|
|
|
- Long taskId = (Long) param.get(SystemConstant.TASK_ID);
|
|
|
+ Long examId = Long.parseLong(String.valueOf(param.get(SystemConstant.EXAM_ID)));
|
|
|
+ Long taskId = Long.parseLong(String.valueOf(param.get(SystemConstant.TASK_ID)));
|
|
|
teExamService.calculateScore(examId, taskId);
|
|
|
tmRocketMessageService.saveMqMessageSuccess(mqDto, key);
|
|
|
}
|