|
@@ -33,7 +33,13 @@ public class VipCardRecordServiceImpl extends ServiceImpl<VipCardRecordDao, VipC
|
|
|
|
|
|
@Override
|
|
|
public VipCardRecordVo detail(Long id) {
|
|
|
- VipCardRecordVo detail = baseMapper.detail(id);
|
|
|
+ VipCardRecordVo detail = baseMapper.detail(id, null);
|
|
|
+ return detail;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public VipCardRecordVo detail(Long id, Long userId) {
|
|
|
+ VipCardRecordVo detail = baseMapper.detail(id, userId);
|
|
|
return detail;
|
|
|
}
|
|
|
|
|
@@ -59,7 +65,7 @@ public class VipCardRecordServiceImpl extends ServiceImpl<VipCardRecordDao, VipC
|
|
|
record.setUpdateTime(new Date());
|
|
|
|
|
|
VipCardRecord vipCardRecord = new VipCardRecord();
|
|
|
- BeanUtils.copyProperties(record,vipCardRecord);
|
|
|
+ BeanUtils.copyProperties(record, vipCardRecord);
|
|
|
baseMapper.updateById(vipCardRecord);
|
|
|
}
|
|
|
|
|
@@ -78,7 +84,7 @@ public class VipCardRecordServiceImpl extends ServiceImpl<VipCardRecordDao, VipC
|
|
|
record.setUpdateTime(new Date());
|
|
|
|
|
|
VipCardRecord vipCardRecord = new VipCardRecord();
|
|
|
- BeanUtils.copyProperties(record,vipCardRecord);
|
|
|
+ BeanUtils.copyProperties(record, vipCardRecord);
|
|
|
baseMapper.updateById(vipCardRecord);
|
|
|
}
|
|
|
|
|
@@ -92,7 +98,7 @@ public class VipCardRecordServiceImpl extends ServiceImpl<VipCardRecordDao, VipC
|
|
|
try {
|
|
|
String url = sysMessageService.selectConfigUrl(MessageTypeEnum.VIP_EXPIRE_THIRTY_DAY.getCode());
|
|
|
sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.JIGUANG, MessageTypeEnum.VIP_EXPIRE_THIRTY_DAY,
|
|
|
- receivers, null, 0, url, ClientEnum.STUDENT.getCode());
|
|
|
+ receivers, null, 0, url, ClientEnum.STUDENT.getCode());
|
|
|
} catch (Exception e) {
|
|
|
log.error("会员到期3天极光消息推送异常,userId={}", userId);
|
|
|
}
|
|
@@ -100,7 +106,7 @@ public class VipCardRecordServiceImpl extends ServiceImpl<VipCardRecordDao, VipC
|
|
|
try {
|
|
|
String url = sysMessageService.selectConfigUrl(MessageTypeEnum.SMS_VIP_EXPIRE_THIRTY_DAY.getCode());
|
|
|
sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.AWSMS, MessageTypeEnum.SMS_VIP_EXPIRE_THIRTY_DAY,
|
|
|
- receivers, null, 0, null, ClientEnum.STUDENT.getCode() ,url);
|
|
|
+ receivers, null, 0, null, ClientEnum.STUDENT.getCode(), url);
|
|
|
} catch (Exception e) {
|
|
|
log.error("会员到期3天短信消息推送异常,userId={}", userId);
|
|
|
}
|
|
@@ -121,7 +127,7 @@ public class VipCardRecordServiceImpl extends ServiceImpl<VipCardRecordDao, VipC
|
|
|
try {
|
|
|
String url = sysMessageService.selectConfigUrl(MessageTypeEnum.SMS_VIP_EXPIRE.getCode());
|
|
|
sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.AWSMS, MessageTypeEnum.SMS_VIP_EXPIRE,
|
|
|
- receivers, null, 0, null, ClientEnum.STUDENT.getCode(),url);
|
|
|
+ receivers, null, 0, null, ClientEnum.STUDENT.getCode(), url);
|
|
|
} catch (Exception e) {
|
|
|
log.error("会员到期3天短信消息推送异常,userId={}", userId);
|
|
|
}
|