|
|
@@ -967,12 +967,13 @@ public class CmsOrderDonServiceImpl extends ServiceImpl<OrderDonMapper,OrderDon>
|
|
|
|
|
|
newRelation.setExpiryTime(DateUtil.offsetDay(DateTime.now(), recoverRecord.getRemainDays().intValue()));
|
|
|
relationMapper.updateById(newRelation);
|
|
|
+ } else {
|
|
|
+ if (reservedDays != null) {
|
|
|
+ newRelation.setExpiryTime(DateUtil.offsetDay(DateTime.now(), reservedDays));
|
|
|
+ relationMapper.updateById(newRelation);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- if (reservedDays != null) {
|
|
|
- newRelation.setExpiryTime(DateUtil.offsetDay(DateTime.now(), reservedDays));
|
|
|
- relationMapper.updateById(newRelation);
|
|
|
- }
|
|
|
} finally {
|
|
|
if (redisService.hasKey(key)) {
|
|
|
redisService.del(key);
|