Commit 1de4a673 by “Kongxiangkun”

增加积分商城相关代码

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