|
@@ -2,6 +2,7 @@ package com.zhongzheng.modules.grade.service.impl;
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
import cn.hutool.core.convert.Convert;
|
|
import cn.hutool.core.convert.Convert;
|
|
|
|
+import cn.hutool.core.lang.Validator;
|
|
import cn.hutool.core.util.StrUtil;
|
|
import cn.hutool.core.util.StrUtil;
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|
@@ -34,6 +35,7 @@ import com.zhongzheng.modules.inform.service.IInformRemindService;
|
|
import com.zhongzheng.modules.inform.service.IInformUserService;
|
|
import com.zhongzheng.modules.inform.service.IInformUserService;
|
|
import com.zhongzheng.modules.inform.vo.InformRemindBusinessVo;
|
|
import com.zhongzheng.modules.inform.vo.InformRemindBusinessVo;
|
|
import com.zhongzheng.modules.inform.vo.InformRemindVo;
|
|
import com.zhongzheng.modules.inform.vo.InformRemindVo;
|
|
|
|
+import com.zhongzheng.modules.order.mapper.OrderMapper;
|
|
import com.zhongzheng.modules.system.domain.SysConfig;
|
|
import com.zhongzheng.modules.system.domain.SysConfig;
|
|
import com.zhongzheng.modules.user.bo.SubjectStudyRecordQueryBo;
|
|
import com.zhongzheng.modules.user.bo.SubjectStudyRecordQueryBo;
|
|
import com.zhongzheng.modules.user.bo.UserUpdateQueryBo;
|
|
import com.zhongzheng.modules.user.bo.UserUpdateQueryBo;
|
|
@@ -107,6 +109,9 @@ public class ClassGradeServiceImpl extends ServiceImpl<ClassGradeMapper, ClassGr
|
|
@Autowired
|
|
@Autowired
|
|
private IUserService iUserService;
|
|
private IUserService iUserService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private OrderMapper orderMapper;
|
|
|
|
+
|
|
@Autowired
|
|
@Autowired
|
|
private com.zhongzheng.modules.alisms.service.IAliSmsService IAliSmsService;
|
|
private com.zhongzheng.modules.alisms.service.IAliSmsService IAliSmsService;
|
|
|
|
|
|
@@ -381,6 +386,9 @@ public class ClassGradeServiceImpl extends ServiceImpl<ClassGradeMapper, ClassGr
|
|
UserUpdateQueryBo userUpdateQueryBo = new UserUpdateQueryBo();
|
|
UserUpdateQueryBo userUpdateQueryBo = new UserUpdateQueryBo();
|
|
userUpdateQueryBo.setUserId(classGradeStudentVo.getUserId());
|
|
userUpdateQueryBo.setUserId(classGradeStudentVo.getUserId());
|
|
classGradeStudentVo.setUserUpdates(iUserUpdateService.queryList(userUpdateQueryBo));
|
|
classGradeStudentVo.setUserUpdates(iUserUpdateService.queryList(userUpdateQueryBo));
|
|
|
|
+ if(Validator.isNotEmpty(classGradeStudentVo.getRebuyOrderGoodsId())&&classGradeStudentVo.getRebuyOrderGoodsId().longValue()>0){
|
|
|
|
+ classGradeStudentVo.setRebuy(orderMapper.getGradePeriod(classGradeStudentVo.getRebuyOrderGoodsId(),classGradeStudentVo.getUserId()));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
return classGradeStudentVos;
|
|
return classGradeStudentVos;
|
|
}
|
|
}
|