导入修改
This commit is contained in:
parent
b54fee7a77
commit
4c137c636e
@ -440,9 +440,7 @@ public class PatientInfoServiceImpl implements IPatientInfoService {
|
||||
deptAliasVO.setSn(sn);
|
||||
deptAliasVO.setDeptAlias(patientInfoImport.getDeptAlias());
|
||||
deptAliasVOS.add(deptAliasVO);
|
||||
|
||||
//?????
|
||||
// 20241209 注释掉,没什么用用,zyk 貌似用于下面重复判断
|
||||
// patientInfoImportList为总数据,新增patient_info_import需要
|
||||
patientInfoImportList.add(patientInfoImport);
|
||||
}
|
||||
if (CollectionUtils.isEmpty(patientInfoImportList)) {
|
||||
@ -465,7 +463,6 @@ public class PatientInfoServiceImpl implements IPatientInfoService {
|
||||
log.info("缓存表新增失败!");
|
||||
return AjaxResult.error("数据导入失败!");
|
||||
}
|
||||
//导入记录主表
|
||||
//region 导入记录主表
|
||||
PatientInfoImportMain patientInfoImportMain = new PatientInfoImportMain();
|
||||
patientInfoImportMain.setCreateBy(SecurityUtils.getUsername());
|
||||
@ -482,7 +479,6 @@ public class PatientInfoServiceImpl implements IPatientInfoService {
|
||||
if (CollectionUtils.isNotEmpty(deptAliasVOS)) {
|
||||
return AjaxResult.error("科室名称不存在", patientInfoImportVO);
|
||||
} else {
|
||||
//新增居民表
|
||||
//region 新增居民表
|
||||
patientInfoImportList.forEach(item ->
|
||||
{
|
||||
@ -563,7 +559,6 @@ public class PatientInfoServiceImpl implements IPatientInfoService {
|
||||
patientInfo.setPatientVisitRecordId(patientVisitRecord.getId());
|
||||
patientInfoMapper.updatePatientInfoSelective(patientInfo);
|
||||
}
|
||||
|
||||
//endregion
|
||||
}
|
||||
PatientInfoImportMain patientInfoImportMainSn = new PatientInfoImportMain();
|
||||
|
||||
@ -238,6 +238,7 @@
|
||||
|
||||
<select id="selectResidentInfoByPhoneList" resultType="com.xinelu.manage.domain.residentinfo.ResidentInfo">
|
||||
select
|
||||
id,
|
||||
patient_name,
|
||||
patient_phone
|
||||
from resident_info
|
||||
|
||||
Loading…
Reference in New Issue
Block a user