forked from liweijie/education
添加一个复职的功能,页面操作列按钮分成两行展示,添加根据离职过滤
This commit is contained in:
@@ -79,6 +79,11 @@ public interface FacultyService {
|
||||
*/
|
||||
void disableJYB(String jYBH);
|
||||
|
||||
/**
|
||||
* 复职(还原离职状态)教员
|
||||
*/
|
||||
void enableJYB(String jYBH);
|
||||
|
||||
/**
|
||||
* 更新教员基本信息
|
||||
*/
|
||||
|
||||
+17
@@ -299,6 +299,23 @@ public class FacultyServiceImpl implements FacultyService {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void enableJYB(String jybh) {
|
||||
JYB before = jybMapper.selectById(jybh);
|
||||
JYB entity = new JYB();
|
||||
entity.setJybh(jybh);
|
||||
entity.setLzzt(0);
|
||||
jybMapper.updateById(entity);
|
||||
// 复职同步启用关联账号
|
||||
if (before != null) {
|
||||
JYB after = new JYB();
|
||||
after.setJybh(jybh);
|
||||
after.setLzzt(0);
|
||||
orgSyncService.syncTeacherAccount(before, after);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void updateJYB(JYB entity) {
|
||||
|
||||
Reference in New Issue
Block a user