|
@@ -1,11 +1,10 @@
|
|
|
package com.citu.module.menduner.system.dal.mysql.eduexp;
|
|
|
|
|
|
import com.citu.framework.common.pojo.PageResult;
|
|
|
-import com.citu.framework.mybatis.core.query.LambdaQueryWrapperX;
|
|
|
import com.citu.framework.mybatis.core.mapper.BaseMapperX;
|
|
|
+import com.citu.framework.mybatis.core.query.LambdaQueryWrapperX;
|
|
|
import com.citu.module.menduner.system.controller.base.eduexp.EduExpPageReqVO;
|
|
|
import com.citu.module.menduner.system.dal.dataobject.eduexp.EduExpDO;
|
|
|
-import com.citu.module.menduner.system.dal.dataobject.job.JobInterestedDO;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
import java.util.List;
|
|
@@ -29,7 +28,7 @@ public interface EduExpMapper extends BaseMapperX<EduExpDO> {
|
|
|
.likeRightIfPresent(EduExpDO::getMajor, reqVO.getMajor())
|
|
|
.eqIfPresent(EduExpDO::getContent, reqVO.getContent())
|
|
|
.betweenIfPresent(EduExpDO::getCreateTime, reqVO.getCreateTime())
|
|
|
- .orderByDesc(EduExpDO::getId));
|
|
|
+ .orderByDesc(EduExpDO::getStartTime));
|
|
|
}
|
|
|
|
|
|
|
|
@@ -39,7 +38,7 @@ public interface EduExpMapper extends BaseMapperX<EduExpDO> {
|
|
|
.eqIfPresent(EduExpDO::getUserId, userId));
|
|
|
}
|
|
|
|
|
|
- default void deleteByIdAndUserId(Long id, Long userId){
|
|
|
+ default void deleteByIdAndUserId(Long id, Long userId) {
|
|
|
delete(new LambdaQueryWrapperX<EduExpDO>()
|
|
|
.eqIfPresent(EduExpDO::getId, id)
|
|
|
.eqIfPresent(EduExpDO::getUserId, userId));
|
|
@@ -47,6 +46,8 @@ public interface EduExpMapper extends BaseMapperX<EduExpDO> {
|
|
|
|
|
|
default List<EduExpDO> selectByUserIdList(Long userId) {
|
|
|
return selectList(new LambdaQueryWrapperX<EduExpDO>()
|
|
|
- .eqIfPresent(EduExpDO::getUserId, userId));
|
|
|
+ .eqIfPresent(EduExpDO::getUserId, userId)
|
|
|
+ .orderByDesc(EduExpDO::getStartTime)
|
|
|
+ );
|
|
|
}
|
|
|
}
|