Commit 5c75076d by “Kongxiangkun”

增加积分商城相关代码

parent 8790e2c5
......@@ -224,10 +224,11 @@ public class TrExamOnlineReadOverController {
Integer score = (Integer) resultMap.get("score");
Integer qualifiedScore = (Integer) resultMap.get("qualifiedScore");
String examId = (String) resultMap.get("examId");
Long accountId = (Long) resultMap.get("accountId");
//考试交卷后根据分数增加积分
if(score.intValue() >= qualifiedScore.intValue()) {
log.info("考试合格发放积分:{}", JSONUtil.toJsonStr(resultMap));
pointApiFeignClients.addPoint(markStudentVO.getAccountId(), "point_exam", examId + "|" + score);
pointApiFeignClients.addPoint(accountId, "point_exam", examId + "|" + score);
}
return score;
} catch (Exception e) {
......
......@@ -398,6 +398,7 @@ public class TrExamOnlineReadOverServiceImpl extends ServiceImpl<TrExamOnlineRea
result.put("examId", exam.getId().toString());
result.put("qualifiedScore", exam.getQualifiedScore());
result.put("accountId", trExamAnswer1.getAccountId());
if (trExamAnswer1.getAccountId() != null) {
taskExecutor.asynExecute(new AbstractTaskHandler() {
......
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