Commit 063ee36f authored by alex yao's avatar alex yao

fix: 初始化权益NPE

parent e23dcd9d
......@@ -95,7 +95,7 @@ public class MemberEquityServiceImpl implements MemberEquityService {
@Override
@Transactional
@Transactional(rollbackFor = Exception.class)
public String addPoint(Long memberId, Long pointNum, EquityEnum.VALIDITY_UNIT validityUnit, ModifyEventEnum modifyEventEnum, ModifyEventInfo modifyEventInfo) throws Exception {
Date expireDate = getExpiredDateTime(validityUnit.name());
// 需要检查支付订单是否已发放
......@@ -122,7 +122,7 @@ public class MemberEquityServiceImpl implements MemberEquityService {
@Override
@Transactional
@Transactional(rollbackFor = Exception.class)
public String reducePoint(Long memberId, Long pointNum, ModifyEventEnum modifyEventEnum, ModifyEventInfo modifyEventInfo) throws Exception {
if (pointNum <= 0) {
return "";
......@@ -179,7 +179,7 @@ public class MemberEquityServiceImpl implements MemberEquityService {
}
@Override
@Transactional
@Transactional(rollbackFor = Exception.class)
public void rollbackPoint(String transactionSn) throws Exception {
if (StringUtils.isBlank(transactionSn)) {
logger.error("-----交易号为空,无法回滚-----");
......@@ -226,7 +226,7 @@ public class MemberEquityServiceImpl implements MemberEquityService {
}
@Override
@Transactional
@Transactional(rollbackFor = Exception.class)
public String changeEquityLevel(Long memberId, ModifyEventEnum modifyEventEnum, EquityEnum.TYPE type, EquityEnum.VALIDITY_UNIT validityUnit, ModifyEventInfo modifyEventInfo) throws Exception {
BizMemberEquityEntity memberEquityEntity = bizMemberEquityService.getByMemberId(memberId);
// 检查是否已发放
......
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