|
|
@@ -376,11 +376,24 @@ public class ClassGradeUserServiceImpl extends ServiceImpl<ClassGradeUserMapper,
|
|
|
if(Validator.isEmpty(userVo)){
|
|
|
throw new CustomException("用户不存在");
|
|
|
}
|
|
|
+ if(Validator.isEmpty(userVo.getInterfacePushId())||userVo.getInterfacePushId().equals(1L)){
|
|
|
+ throw new CustomException("没开通信息推送");
|
|
|
+ }
|
|
|
+ if(Validator.isEmpty(userVo.getInterfacePushId())||userVo.getInterfacePushId().equals(1L)){
|
|
|
+ throw new CustomException("没开通信息推送");
|
|
|
+ }
|
|
|
+ if(Validator.isEmpty(userVo.getClassName())){
|
|
|
+ throw new CustomException("没配置班号");
|
|
|
+ }
|
|
|
+ if(Validator.isEmpty(userVo.getClassStatus())||userVo.getClassStatus()!=1){
|
|
|
+ throw new CustomException("未开班");
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
Map<String, String> params = new HashMap<>();
|
|
|
params.put("zh",OFFICIALPUSH_INFOACCOUNT);
|
|
|
- params.put("bh",userVo.getCode());
|
|
|
- params.put("xm","何建林");
|
|
|
+ params.put("bh",userVo.getClassName());
|
|
|
+ params.put("xm",userVo.getRealName());
|
|
|
params.put("sfz",userVo.getIdCard());
|
|
|
params.put("dh",userVo.getTelPhone());
|
|
|
params.put("bmrq","2022-11-11");
|