|
|
@@ -6,7 +6,9 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.github.yulichang.base.MPJBaseServiceImpl;
|
|
|
+import com.github.yulichang.wrapper.MPJLambdaWrapper;
|
|
|
import com.xjrsoft.common.enums.*;
|
|
|
+import com.xjrsoft.common.utils.VoToColumnUtil;
|
|
|
import com.xjrsoft.module.base.entity.BaseClass;
|
|
|
import com.xjrsoft.module.base.mapper.BaseClassMapper;
|
|
|
import com.xjrsoft.module.organization.entity.User;
|
|
|
@@ -277,8 +279,11 @@ public class BaseStudentSchoolRollServiceImpl extends MPJBaseServiceImpl<BaseStu
|
|
|
userMapper.updateById(user);
|
|
|
|
|
|
//将学籍信息改为在读
|
|
|
- BaseStudentSchoolRoll schoolRoll = this.getOne(
|
|
|
- new QueryWrapper<BaseStudentSchoolRoll>().lambda()
|
|
|
+ BaseStudentSchoolRoll schoolRoll = this.baseMapper.selectOne(
|
|
|
+ new MPJLambdaWrapper<BaseStudentSchoolRoll>()
|
|
|
+ .disableLogicDel()
|
|
|
+ .select(BaseStudentSchoolRoll::getId)
|
|
|
+ .select(BaseStudentSchoolRoll.class, x -> VoToColumnUtil.fieldsToColumns(BaseStudentSchoolRoll.class).contains(x.getProperty()))
|
|
|
.eq(BaseStudentSchoolRoll::getUserId, userId)
|
|
|
);
|
|
|
schoolRoll.setDeleteMark(DeleteMark.NODELETE.getCode());
|