|
@@ -1,7 +1,12 @@
|
|
|
package com.xjrsoft.module.student.service.impl;
|
|
|
|
|
|
+import cn.hutool.core.bean.BeanUtil;
|
|
|
+import cn.hutool.core.date.DateUtil;
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.github.yulichang.base.MPJBaseServiceImpl;
|
|
|
+import com.xjrsoft.common.model.result.RT;
|
|
|
+import com.xjrsoft.module.student.dto.UpdateBaseStudentCadreDto;
|
|
|
import com.xjrsoft.module.student.entity.BaseStudent;
|
|
|
import com.xjrsoft.module.student.entity.BaseStudentCadre;
|
|
|
import com.xjrsoft.module.student.mapper.BaseStudentCadreMapper;
|
|
@@ -9,6 +14,8 @@ import com.xjrsoft.module.student.service.IBaseStudentCadreService;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
+
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.Objects;
|
|
|
import java.util.stream.Collectors;
|
|
@@ -41,4 +48,15 @@ public class BaseStudentCadreServiceImpl extends MPJBaseServiceImpl<BaseStudentC
|
|
|
baseStudentCadreMapper.insert(baseStudentCadre);
|
|
|
return true;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 修改学生干部状态(离职、复职)移动端
|
|
|
+ * @param dto
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public Boolean editMobileStatus(UpdateBaseStudentCadreDto dto) {
|
|
|
+ BaseStudentCadre baseStudentCadre = BeanUtil.toBean(dto, BaseStudentCadre.class);
|
|
|
+ return updateById(baseStudentCadre);
|
|
|
+ }
|
|
|
}
|