|
@@ -44,6 +44,7 @@ import com.zhongzheng.modules.goods.service.IGoodsService;
|
|
|
import com.zhongzheng.modules.goods.vo.GoodsVo;
|
|
|
import com.zhongzheng.modules.grade.bo.*;
|
|
|
import com.zhongzheng.modules.grade.domain.ClassGrade;
|
|
|
+import com.zhongzheng.modules.grade.domain.ClassGradeInterface;
|
|
|
import com.zhongzheng.modules.grade.domain.StudyCountLog;
|
|
|
import com.zhongzheng.modules.grade.service.*;
|
|
|
import com.zhongzheng.modules.grade.vo.*;
|
|
@@ -127,6 +128,9 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
@Autowired
|
|
|
private IClassGradeService iClassGradeService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IClassGradeInterfaceService iClassGradeInterfaceService;
|
|
|
+
|
|
|
@Autowired
|
|
|
private IGoodsService iGoodsService;
|
|
|
|
|
@@ -540,8 +544,13 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
if (Validator.isEmpty(userVo)) {
|
|
|
return "用户不存在";
|
|
|
}
|
|
|
- if (Validator.isEmpty(userVo.getInterfacePushId()) || !userVo.getInterfacePushId().equals(1L)) {
|
|
|
+ if (Validator.isEmpty(userVo.getInterfacePushId())) {
|
|
|
return "没开通信息推送";
|
|
|
+ }else {
|
|
|
+ ClassGradeInterface gradeInterface = iClassGradeInterfaceService.getById(userVo.getInterfacePushId());
|
|
|
+ if (gradeInterface.getType() != 1){
|
|
|
+ return "没开通信息推送";
|
|
|
+ }
|
|
|
}
|
|
|
if (Validator.isEmpty(userVo.getOfficialName())) {
|
|
|
return "没配置班号";
|