|
@@ -27,12 +27,8 @@ import com.zhongzheng.modules.goods.domain.Goods;
|
|
|
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.ClassGradeGoods;
|
|
|
-import com.zhongzheng.modules.grade.domain.ClassGradeSys;
|
|
|
-import com.zhongzheng.modules.grade.domain.ClassGradeUser;
|
|
|
-import com.zhongzheng.modules.grade.service.IClassGradeGoodsService;
|
|
|
-import com.zhongzheng.modules.grade.service.IClassGradeSysService;
|
|
|
-import com.zhongzheng.modules.grade.service.IClassGradeUserService;
|
|
|
+import com.zhongzheng.modules.grade.domain.*;
|
|
|
+import com.zhongzheng.modules.grade.service.*;
|
|
|
import com.zhongzheng.modules.grade.vo.*;
|
|
|
import com.zhongzheng.modules.inform.bo.InformUserAddBo;
|
|
|
import com.zhongzheng.modules.inform.service.IInformRemindService;
|
|
@@ -66,9 +62,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.github.pagehelper.Page;
|
|
|
-import com.zhongzheng.modules.grade.domain.ClassGrade;
|
|
|
import com.zhongzheng.modules.grade.mapper.ClassGradeMapper;
|
|
|
-import com.zhongzheng.modules.grade.service.IClassGradeService;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.io.IOException;
|
|
@@ -149,6 +143,9 @@ public class ClassGradeServiceImpl extends ServiceImpl<ClassGradeMapper, ClassGr
|
|
|
@Autowired
|
|
|
private IClassGradeGoodsService iClassGradeGoodsService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IClassGradeInterfaceService iClassGradeInterfaceService;
|
|
|
+
|
|
|
@Autowired
|
|
|
private ISysOldOrgService iSysOldOrgService;
|
|
|
|
|
@@ -404,6 +401,13 @@ public class ClassGradeServiceImpl extends ServiceImpl<ClassGradeMapper, ClassGr
|
|
|
if (StringUtils.isNotBlank(gradeGrade.getOfficialName())){
|
|
|
update.setRegisterCode(gradeGrade.getOfficialName());
|
|
|
}
|
|
|
+ //二建/二造官方信息推送开关打开
|
|
|
+ List<ClassGradeInterface> interfaceList = iClassGradeInterfaceService
|
|
|
+ .list(new LambdaQueryWrapper<ClassGradeInterface>()
|
|
|
+ .eq(ClassGradeInterface::getType, 1).last("limit 1"));
|
|
|
+ if (CollectionUtils.isNotEmpty(interfaceList)){
|
|
|
+ update.setInterfacePushId(interfaceList.get(0).getId());
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -500,6 +504,7 @@ public class ClassGradeServiceImpl extends ServiceImpl<ClassGradeMapper, ClassGr
|
|
|
.set(ClassGrade::getClassEndTime,update.getClassEndTime())
|
|
|
.set(ClassGrade::getClassStatus,update.getClassStatus())
|
|
|
.set(ClassGrade::getLearningStatus,update.getLearningStatus())
|
|
|
+ .set(ClassGrade::getInterfacePushId,update.getInterfacePushId())
|
|
|
.in(ClassGrade::getGradeId,list.stream().map(ClassGrade::getGradeId).collect(Collectors.toList())));
|
|
|
}
|
|
|
//官方班级开班通知旧系统
|