Browse Source

积分核销时积分不能为空

dev_shibei_match
wangchao 5 years ago
parent
commit
25f142eeb4
  1. 5
      epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/service/impl/PointVerificationLogServiceImpl.java
  2. 2
      epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/utils/ModuleConstant.java

5
epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/service/impl/PointVerificationLogServiceImpl.java

@ -239,6 +239,11 @@ public class PointVerificationLogServiceImpl extends BaseServiceImpl<PointVerifi
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public PointVerificationResultDTO verifyPoint(PointVerificationFormDTO verificationParam) { public PointVerificationResultDTO verifyPoint(PointVerificationFormDTO verificationParam) {
PointVerificationResultDTO result = new PointVerificationResultDTO(); PointVerificationResultDTO result = new PointVerificationResultDTO();
if(null == verificationParam.getPoint()){
result.setSuccessFlag(false);
result.setFailureReason(ModuleConstant.VERIFICATED_POINT_CAN_NOT_BE_NULL);
return result;
}
String decodedUserId = pointRedis.checkIfQrCodeExpire(verificationParam.getUserId()); String decodedUserId = pointRedis.checkIfQrCodeExpire(verificationParam.getUserId());
if(StringUtils.isNotBlank(decodedUserId)){ if(StringUtils.isNotBlank(decodedUserId)){
verificationParam.setUserId(decodedUserId); verificationParam.setUserId(decodedUserId);

2
epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/utils/ModuleConstant.java

@ -121,5 +121,5 @@ public interface ModuleConstant extends Constant {
String EVENT_NAME_ADD_LIVE = "添加活动实况"; String EVENT_NAME_ADD_LIVE = "添加活动实况";
String VERIFICATED_POINT_CAN_NOT_BE_NULL = "核销积分不能为空";
} }

Loading…
Cancel
Save