bug
This commit is contained in:
@@ -911,7 +911,8 @@ public class BuyOrderController {
|
|||||||
UserCourseBuyEntity userCourseBuyEntity = userCourseBuyEntities.get(0);
|
UserCourseBuyEntity userCourseBuyEntity = userCourseBuyEntities.get(0);
|
||||||
Calendar calendar = Calendar.getInstance();
|
Calendar calendar = Calendar.getInstance();
|
||||||
calendar.setTime(userCourseBuyEntity.getEndTime());
|
calendar.setTime(userCourseBuyEntity.getEndTime());
|
||||||
calendar.add(Calendar.DAY_OF_MONTH,180);
|
calendar.add(Calendar.DAY_OF_MONTH,s.getDays());
|
||||||
|
userCourseBuyEntity.setDays(userCourseBuyEntity.getDays()+s.getDays());
|
||||||
userCourseBuyEntity.setEndTime(calendar.getTime());
|
userCourseBuyEntity.setEndTime(calendar.getTime());
|
||||||
userCourseBuyDao.updateById(userCourseBuyEntity);
|
userCourseBuyDao.updateById(userCourseBuyEntity);
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -232,7 +232,8 @@ public class AliPayServiceImpl implements AliPayService {
|
|||||||
UserCourseBuyEntity userCourseBuyEntity = userCourseBuyEntities.get(0);
|
UserCourseBuyEntity userCourseBuyEntity = userCourseBuyEntities.get(0);
|
||||||
Calendar calendar = Calendar.getInstance();
|
Calendar calendar = Calendar.getInstance();
|
||||||
calendar.setTime(userCourseBuyEntity.getEndTime());
|
calendar.setTime(userCourseBuyEntity.getEndTime());
|
||||||
calendar.add(Calendar.DAY_OF_MONTH,180);
|
calendar.add(Calendar.DAY_OF_MONTH,s.getDays());
|
||||||
|
userCourseBuyEntity.setDays(userCourseBuyEntity.getDays()+s.getDays());
|
||||||
userCourseBuyEntity.setEndTime(calendar.getTime());
|
userCourseBuyEntity.setEndTime(calendar.getTime());
|
||||||
userCourseBuyDao.updateById(userCourseBuyEntity);
|
userCourseBuyDao.updateById(userCourseBuyEntity);
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -161,7 +161,8 @@ public class WxpayServiceImpl extends ServiceImpl<PayWechatOrderDao, PayWechatOr
|
|||||||
UserCourseBuyEntity userCourseBuyEntity = userCourseBuyEntities.get(0);
|
UserCourseBuyEntity userCourseBuyEntity = userCourseBuyEntities.get(0);
|
||||||
Calendar calendar = Calendar.getInstance();
|
Calendar calendar = Calendar.getInstance();
|
||||||
calendar.setTime(userCourseBuyEntity.getEndTime());
|
calendar.setTime(userCourseBuyEntity.getEndTime());
|
||||||
calendar.add(Calendar.DAY_OF_MONTH,180);
|
calendar.add(Calendar.DAY_OF_MONTH,s.getDays());
|
||||||
|
userCourseBuyEntity.setDays(userCourseBuyEntity.getDays()+s.getDays());
|
||||||
userCourseBuyEntity.setEndTime(calendar.getTime());
|
userCourseBuyEntity.setEndTime(calendar.getTime());
|
||||||
userCourseBuyDao.updateById(userCourseBuyEntity);
|
userCourseBuyDao.updateById(userCourseBuyEntity);
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
Reference in New Issue
Block a user