Commit 1de4a673 by “Kongxiangkun”

增加积分商城相关代码

parent 89ed60c3
...@@ -308,44 +308,44 @@ public class ExamOnlineReadOverController { ...@@ -308,44 +308,44 @@ public class ExamOnlineReadOverController {
LOGGER.info("阅卷完毕发放积分失败,没找到答卷信息"); LOGGER.info("阅卷完毕发放积分失败,没找到答卷信息");
} }
if (over != null) { // if (over != null) {
LOGGER.info("阅卷完毕发放积分,开始"); // LOGGER.info("阅卷完毕发放积分,开始");
//
//考试通过发放积分 // //考试通过发放积分
try { // try {
PointParamVO pointParamVO = new PointParamVO(); // PointParamVO pointParamVO = new PointParamVO();
pointParamVO.setEventName(PointEventEnum.POINTEXAM.getKey()); // pointParamVO.setEventName(PointEventEnum.POINTEXAM.getKey());
pointParamVO.setActivityType("考试阅卷通过积分发放"); // pointParamVO.setActivityType("考试阅卷通过积分发放");
pointParamVO.setActivitySource("考试"); // pointParamVO.setActivitySource("考试");
pointParamVO.setActivityName(over.getExamName()); // pointParamVO.setActivityName(over.getExamName());
pointParamVO.setScore(over.getSumScore().intValue()); // pointParamVO.setScore(over.getSumScore().intValue());
pointParamVO.setReleaseCondition("范围发放"); // pointParamVO.setReleaseCondition("范围发放");
pointParamVO.setReleaseRules("按照范围取积分"); // pointParamVO.setReleaseRules("按照范围取积分");
pointParamVO.setCreatePointTime(time); // pointParamVO.setCreatePointTime(time);
pointParamVO.setSourceId(over.getExamId()); // pointParamVO.setSourceId(over.getExamId());
pointParamVO.setOperatingPoint(point); // pointParamVO.setOperatingPoint(point);
pointParamVO.setAccountId(over.getAccountId()); // pointParamVO.setAccountId(over.getAccountId());
pointParamVO.setAccountName(over.getAccountName()); // pointParamVO.setAccountName(over.getAccountName());
pointParamVO.setOrgId(requestContext.getOrgId()); // pointParamVO.setOrgId(requestContext.getOrgId());
pointParamVO.setSiteId(requestContext.getSiteId()); // pointParamVO.setSiteId(requestContext.getSiteId());
pointParamVO.setCompanyId(requestContext.getCompanyId()); // pointParamVO.setCompanyId(requestContext.getCompanyId());
String sitePointId = null; // String sitePointId = null;
if (null != point && point > 0) { // if (null != point && point > 0) {
sitePointId = pointRedisFeignClients.addPointRedis(pointParamVO); // sitePointId = pointRedisFeignClients.addPointRedis(pointParamVO);
} // }
//
String sitePointId1 = pointRedisFeignClients.addPointRedis(pointParamVO); // String sitePointId1 = pointRedisFeignClients.addPointRedis(pointParamVO);
if (null != sitePointId) { // if (null != sitePointId) {
//amqpTemplate.convertAndSend(MQqueuesEnum.EXAM.getKey(), sitePointId); // //amqpTemplate.convertAndSend(MQqueuesEnum.EXAM.getKey(), sitePointId);
} // }
if (null != sitePointId1) { // if (null != sitePointId1) {
//amqpTemplate.convertAndSend(MQqueuesEnum.EXPERIENCEEXAM.getKey(), sitePointId1); // //amqpTemplate.convertAndSend(MQqueuesEnum.EXPERIENCEEXAM.getKey(), sitePointId1);
} // }
LOGGER.info("阅卷完毕发放积分,成功"); // LOGGER.info("阅卷完毕发放积分,成功");
} catch (Exception ep) { // } catch (Exception ep) {
LOGGER.error("阅卷积分发放失败:", ep); // LOGGER.error("阅卷积分发放失败:", ep);
} // }
} // }
// 阅卷完成,考试通过向培训项目发送消息,告知业务已经完成 // 阅卷完成,考试通过向培训项目发送消息,告知业务已经完成
try { try {
......
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