|
|
|
@ -5,12 +5,14 @@ import com.ann.demo.entity.filing.ArchiveMaster;
|
|
|
|
|
import com.ann.demo.interfaces.HomepageDictionary;
|
|
|
|
|
import com.ann.demo.service.ArchiveDetailService;
|
|
|
|
|
import com.ann.demo.service.ArchiveMasterService;
|
|
|
|
|
import com.google.common.base.Objects;
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
|
|
|
|
|
import javax.jws.WebService;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
@ -75,31 +77,42 @@ public class HomepageDictionaryImpl implements HomepageDictionary {
|
|
|
|
|
List<String> types = Arrays.asList(mustCheckDataArray);
|
|
|
|
|
String typeIsExits = archiveDetailService.getTypeNotExits(types, masterId);
|
|
|
|
|
if (typeIsExits != null) {
|
|
|
|
|
sb.append(typeIsExits + "缺失");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查申请单
|
|
|
|
|
if (!checkReportType.equals("")) {
|
|
|
|
|
String[] checkReportTypeArray = checkReportType.split(",");
|
|
|
|
|
List<String> types = Arrays.asList(checkReportTypeArray);
|
|
|
|
|
String checkReportNotExits = archiveDetailService.getCheckReportNotExits(types, masterId);
|
|
|
|
|
if (checkReportNotExits != null) {
|
|
|
|
|
if (sb.length() != 0) {
|
|
|
|
|
sb.append(";");
|
|
|
|
|
}
|
|
|
|
|
sb.append(checkReportNotExits);
|
|
|
|
|
}else{
|
|
|
|
|
String typeIsExits1 = archiveDetailService.getCheckReportNotExits1(types, masterId);
|
|
|
|
|
if (typeIsExits1 != null) {
|
|
|
|
|
if (sb.length() != 0) {
|
|
|
|
|
sb.append(";");
|
|
|
|
|
//----------------单独处理出院记录
|
|
|
|
|
List list = new ArrayList<String>();
|
|
|
|
|
list.add("113");
|
|
|
|
|
String dischargeType = archiveDetailService.getTypeNotExits(list, masterId);
|
|
|
|
|
if(dischargeType != null){
|
|
|
|
|
if(Objects.equal( archiveMaster.getDeathFlag(),"1" ) ){
|
|
|
|
|
sb.append(typeIsExits +",死亡记录缺失");
|
|
|
|
|
}else{
|
|
|
|
|
sb.append(typeIsExits + ",出院记录缺失");
|
|
|
|
|
}
|
|
|
|
|
sb.append(typeIsExits1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//----------------单独处理出院记录
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// // 检查申请单
|
|
|
|
|
// if (!checkReportType.equals("")) {
|
|
|
|
|
// String[] checkReportTypeArray = checkReportType.split(",");
|
|
|
|
|
// List<String> types = Arrays.asList(checkReportTypeArray);
|
|
|
|
|
// String checkReportNotExits = archiveDetailService.getCheckReportNotExits(types, masterId);
|
|
|
|
|
// if (checkReportNotExits != null) {
|
|
|
|
|
// if (sb.length() != 0) {
|
|
|
|
|
// sb.append(";");
|
|
|
|
|
// }
|
|
|
|
|
// sb.append(checkReportNotExits);
|
|
|
|
|
// }else{
|
|
|
|
|
// String typeIsExits1 = archiveDetailService.getCheckReportNotExits1(types, masterId);
|
|
|
|
|
// if (typeIsExits1 != null) {
|
|
|
|
|
// if (sb.length() != 0) {
|
|
|
|
|
// sb.append(";");
|
|
|
|
|
// }
|
|
|
|
|
// sb.append(typeIsExits1);
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// 检验申请单
|
|
|
|
|
if (!inspectionReportType.equals("")) {
|
|
|
|
|
String[] inspectionReportTypeArray = inspectionReportType.split(",");
|
|
|
|
|