@ -220,7 +220,6 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
Emr_Dictionary dictionary = new Emr_Dictionary ( ) ;
dictionary . setTypecode ( "dept_code" ) ;
List < Emr_Dictionary > dictionaries = dictionaryMapper . dicByTypeCode ( dictionary ) ;
StringBuilder patientIdStr = new StringBuilder ( ) ;
for ( Archive_Master_Vo masterVo : list ) {
//科室名称编码转名称
deptNameCode2Name ( dictionaries , masterVo ) ;
@ -231,23 +230,6 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
} else if ( status . equals ( EnumVerify . DocState . CallBacked . getCode ( ) ) ) {
masterVo . setStatus ( EnumVerify . DocState . CallBacked . getName ( ) ) ;
}
if ( StringUtils . isNotBlank ( patientIdStr ) ) {
patientIdStr . append ( "," ) ;
}
masterVo . setPrintStatus ( "否" ) ;
patientIdStr . append ( masterVo . getPatientId ( ) ) ;
}
//设置打印状态
List < TUuPrint > tUuPrints = tUuPrintMapper . selectAllByPatientId ( patientIdStr . toString ( ) ) ;
if ( ! CollectionUtils . isEmpty ( tUuPrints ) ) {
for ( Archive_Master_Vo masterVo : list ) {
for ( TUuPrint tUuPrint : tUuPrints ) {
if ( tUuPrint . getPatientId ( ) . equals ( masterVo . getPatientId ( ) ) ) {
masterVo . setPrintStatus ( "是" ) ;
break ;
}
}
}
}
}
return list ;
@ -290,10 +272,9 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
//组织完整性字段并完整的更新archive_master表的完整性字段值为完整LockInfo='完整'
//updateMasterBySuccess(list);
//转换科室与赋值超期天数
String patientIds = selectByColumnChange( list ) ;
selectByColumnChange( list ) ;
//根据状态code转换状态及判断显示按钮
if ( null ! = list & & ! list . isEmpty ( ) ) {
List < TUuPrint > tUuPrints = tUuPrintMapper . selectAllByPatientId ( patientIds ) ;
//查询流转角色集合
List < ArchiveFlowRole > flowRoles = flowRoleMapper . selectAll ( ) ;
//计算属于哪种审核角色
@ -318,17 +299,6 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
masterVo . setBtns ( btns ) ;
}
}
//定义打印状态
String printStatus = "否" ;
if ( ! CollectionUtils . isEmpty ( tUuPrints ) ) {
for ( TUuPrint tUuPrint : tUuPrints ) {
if ( tUuPrint . getPatientId ( ) . equals ( masterVo . getPatientId ( ) ) ) {
printStatus = "是" ;
break ;
}
}
}
masterVo . setPrintStatus ( printStatus ) ;
}
}
}