|
|
@@ -11,6 +11,8 @@ import com.sqx.common.utils.PageUtils;
|
|
|
import com.sqx.common.validator.ValidatorUtils;
|
|
|
import com.sqx.modules.app.entity.UserEntity;
|
|
|
import com.sqx.modules.app.service.UserService;
|
|
|
+import com.sqx.modules.common.entity.CommonInfo;
|
|
|
+import com.sqx.modules.common.service.CommonInfoService;
|
|
|
import com.sqx.modules.member.dao.SpecialFavorStudentDao;
|
|
|
import com.sqx.modules.member.dto.SpecialFavorStudentDTO;
|
|
|
import com.sqx.modules.member.dto.SpecialFavorStudentVerifyDTO;
|
|
|
@@ -37,6 +39,7 @@ import java.util.List;
|
|
|
public class SpecialFavorStudentServiceImpl extends ServiceImpl<SpecialFavorStudentDao, SpecialFavorStudent> implements SpecialFavorStudentService {
|
|
|
|
|
|
private final UserService userService;
|
|
|
+ private final CommonInfoService commonInfoService;
|
|
|
private final VipPromoRecordService vipPromoRecordService;
|
|
|
|
|
|
@Override
|
|
|
@@ -136,8 +139,11 @@ public class SpecialFavorStudentServiceImpl extends ServiceImpl<SpecialFavorStud
|
|
|
.build();
|
|
|
vipPromoRecordService.add(recordDTO);
|
|
|
|
|
|
+ // 会员期限(天)
|
|
|
+ CommonInfo vipExpirationDays = commonInfoService.findOne(314);
|
|
|
+
|
|
|
// 更新用户为会员
|
|
|
- userService.updateUserToVip(userId, VipExpirationUtil.getFutureTimeWithDays(30));
|
|
|
+ userService.updateUserToVip(userId, VipExpirationUtil.getFutureTimeWithDays(Integer.valueOf(vipExpirationDays.getValue())));
|
|
|
}
|
|
|
|
|
|
private void checkParam(SpecialFavorStudentDTO dto) {
|