|
@@ -213,11 +213,20 @@ public class InformRemindServiceImpl extends ServiceImpl<InformRemindMapper, Inf
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = Exception.class)
|
|
|
public InformRemindVo getQueryByName(String name) {
|
|
|
return queryByName(name);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = Exception.class)
|
|
|
+ public InformRemindVo getQueryByNameTenant(String name, Long id) {
|
|
|
+ InformRemind db = getOne(new LambdaQueryWrapper<InformRemind>().eq(InformRemind::getRemind, name).eq(InformRemind::getTenantId,id).last("limit 1"));
|
|
|
+ InformRemindVo informRemindVo = BeanUtil.toBean(db, InformRemindVo.class);
|
|
|
+ List<InformRemindBusinessVo> informRemindBusinessVos = iInformRemindBusinessService.selectBusiness(informRemindVo.getId());
|
|
|
+ informRemindVo.setInformRemindBusiness(informRemindBusinessVos);
|
|
|
+ return informRemindVo;
|
|
|
+ }
|
|
|
+
|
|
|
private List<CourseUserEducationTypeVo> entity2EducationVo(Collection<CourseEducationTypeVo> collection) {
|
|
|
List<CourseUserEducationTypeVo> voList = collection.stream()
|
|
|
.map(any -> BeanUtil.toBean(any, CourseUserEducationTypeVo.class))
|