|
@@ -1,9 +1,11 @@
|
|
package com.zjugis.module.adm.dal.mysql.noticeAndLearn;
|
|
package com.zjugis.module.adm.dal.mysql.noticeAndLearn;
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.zjugis.framework.common.pojo.PageResult;
|
|
import com.zjugis.framework.common.pojo.PageResult;
|
|
import com.zjugis.framework.mybatis.core.mapper.BaseMapperX;
|
|
import com.zjugis.framework.mybatis.core.mapper.BaseMapperX;
|
|
import com.zjugis.framework.mybatis.core.query.LambdaQueryWrapperX;
|
|
import com.zjugis.framework.mybatis.core.query.LambdaQueryWrapperX;
|
|
|
|
+import com.zjugis.framework.mybatis.core.query.QueryWrapperX;
|
|
import com.zjugis.module.adm.controller.admin.noticeLearn.vo.NoticeAndLearnCreateReqVO;
|
|
import com.zjugis.module.adm.controller.admin.noticeLearn.vo.NoticeAndLearnCreateReqVO;
|
|
import com.zjugis.module.adm.controller.admin.noticeLearn.vo.NoticeAndLearnPageReqVO;
|
|
import com.zjugis.module.adm.controller.admin.noticeLearn.vo.NoticeAndLearnPageReqVO;
|
|
import com.zjugis.module.adm.controller.admin.noticeLearn.vo.NoticeAndLearnRespVO;
|
|
import com.zjugis.module.adm.controller.admin.noticeLearn.vo.NoticeAndLearnRespVO;
|
|
@@ -46,8 +48,10 @@ public interface NoticeAndLearnMapper extends BaseMapperX<NoticeAndLearnDO> {
|
|
return NoticeAndLearnConvert.INSTANCE.convert(selectPage(reqVO, queryWrapperX));
|
|
return NoticeAndLearnConvert.INSTANCE.convert(selectPage(reqVO, queryWrapperX));
|
|
}
|
|
}
|
|
|
|
|
|
- default List<NoticeAndLearnRespVO> selectByAll(){
|
|
|
|
- return NoticeAndLearnConvert.INSTANCE.convert(selectList());
|
|
|
|
|
|
+ default List<NoticeAndLearnRespVO> selectByAll(Integer type){
|
|
|
|
+ LambdaQueryWrapperX<NoticeAndLearnDO> queryWrapperX = new LambdaQueryWrapperX<>();
|
|
|
|
+ queryWrapperX.eqIfPresent(NoticeAndLearnDO::getType, type);
|
|
|
|
+ return NoticeAndLearnConvert.INSTANCE.convert(selectList(queryWrapperX));
|
|
}
|
|
}
|
|
|
|
|
|
default List<NoticeAndLearnRespVO> selectByList(NoticeAndLearnPageReqVO reqVO){
|
|
default List<NoticeAndLearnRespVO> selectByList(NoticeAndLearnPageReqVO reqVO){
|