|
|
@ -1403,7 +1403,7 @@ public class TeacherServiceImpl implements TeacherService {
|
|
|
|
if (ptTeacherInfo != null) {
|
|
|
|
if (ptTeacherInfo != null) {
|
|
|
|
operations.set("/identity", teacherDto.getIdentity());
|
|
|
|
operations.set("/identity", teacherDto.getIdentity());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ptTeacherRepository.save(id, PK.buildOf(PK.PTTEACHER, teacherDto.getTmdId()), PtTeacherInfo.class, operations);
|
|
|
|
ptTeacherRepository.save(id, PK.buildOf(teacherDto.getCode(), teacherDto.getTmdId()), PtTeacherInfo.class, operations);
|
|
|
|
} catch (Exception ex) {
|
|
|
|
} catch (Exception ex) {
|
|
|
|
throw new ServiceException(ErrorCode.SYSTEM_ERROR.getCode(), "数据更新失败: " + ex.getMessage());
|
|
|
|
throw new ServiceException(ErrorCode.SYSTEM_ERROR.getCode(), "数据更新失败: " + ex.getMessage());
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1413,7 +1413,7 @@ public class TeacherServiceImpl implements TeacherService {
|
|
|
|
public Map<String, Object> findIdentityByTmdId(TeacherDto teacherDto) {
|
|
|
|
public Map<String, Object> findIdentityByTmdId(TeacherDto teacherDto) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
String id = teacherDto.getTmdId();
|
|
|
|
String id = teacherDto.getTmdId();
|
|
|
|
String code = String.format(PK.PTTEACHER, id);
|
|
|
|
String code = String.format(teacherDto.getCode(), id);
|
|
|
|
PtTeacherInfo ptTeacherInfo = ptTeacherRepository.findByIdAndCode(id, code);
|
|
|
|
PtTeacherInfo ptTeacherInfo = ptTeacherRepository.findByIdAndCode(id, code);
|
|
|
|
if (ptTeacherInfo != null) {
|
|
|
|
if (ptTeacherInfo != null) {
|
|
|
|
Map<String, Object> result = new HashMap<>();
|
|
|
|
Map<String, Object> result = new HashMap<>();
|
|
|
|