|
|
@ -516,7 +516,7 @@ public class DockServiceImpl implements DockService { |
|
|
pmsPatient = pmsPatients.get(0); |
|
|
pmsPatient = pmsPatients.get(0); |
|
|
disposePmsPatient(dockPatientBaseInfo, pmsPatient); |
|
|
disposePmsPatient(dockPatientBaseInfo, pmsPatient); |
|
|
pmsPatient.setHospitalId(hospitalId); |
|
|
pmsPatient.setHospitalId(hospitalId); |
|
|
pmsPatient.setUserId(CollUtil.isEmpty(sysUserList) ? null : sysUserList.get(0).getUserId()); |
|
|
pmsPatient.setCreateBy(CollUtil.isEmpty(sysUserList) ? null : sysUserList.get(0).getUserName()); |
|
|
pmsPatientMapper.updateByPrimaryKeySelective(pmsPatient); |
|
|
pmsPatientMapper.updateByPrimaryKeySelective(pmsPatient); |
|
|
} else { |
|
|
} else { |
|
|
//不存在则插入
|
|
|
//不存在则插入
|
|
|
@ -524,7 +524,7 @@ public class DockServiceImpl implements DockService { |
|
|
pmsPatient.setId(IdUtil.getSnowflake().nextId()); |
|
|
pmsPatient.setId(IdUtil.getSnowflake().nextId()); |
|
|
disposePmsPatient(dockPatientBaseInfo, pmsPatient); |
|
|
disposePmsPatient(dockPatientBaseInfo, pmsPatient); |
|
|
pmsPatient.setHospitalId(hospitalId); |
|
|
pmsPatient.setHospitalId(hospitalId); |
|
|
pmsPatient.setUserId(CollUtil.isEmpty(sysUserList) ? null : sysUserList.get(0).getUserId()); |
|
|
pmsPatient.setCreateBy(CollUtil.isEmpty(sysUserList) ? null : sysUserList.get(0).getUserName()); |
|
|
pmsPatientMapper.insertSelective(pmsPatient); |
|
|
pmsPatientMapper.insertSelective(pmsPatient); |
|
|
} |
|
|
} |
|
|
//修改同步表数据的状态
|
|
|
//修改同步表数据的状态
|
|
|
|