|
@ -186,7 +186,7 @@ public class SignJob implements Job {
|
|
|
continue;
|
|
|
}
|
|
|
String idCard=signFamily.getIdcard();
|
|
|
if(idCard == null||(idCard.length()==18||idCard.length()==15)) {
|
|
|
if(idCard == null||((idCard.length()!=18&&idCard.length()!=15))) {
|
|
|
errorContent.append("签约code:"+signFamily.getCode()+",签约表中(wlyy_sign_family)中的idCard数据异常");
|
|
|
isAll=false;
|
|
|
errorCount++;
|
|
@ -300,16 +300,26 @@ public class SignJob implements Job {
|
|
|
if (dctorPatientGroupInfo != null && dctorPatientGroupInfo.size() > 0) {
|
|
|
group=dctorPatientGroupInfo.get(0).getGroup();
|
|
|
} else {
|
|
|
errorContent.append("签约code:"+signFamily.getCode()+",患者未分组");
|
|
|
group="1";
|
|
|
}
|
|
|
|
|
|
if(StringUtils.isEmpty(signFamily.getHospital())){
|
|
|
errorContent.append("签约code:"+signFamily.getCode()+",签约表机构hospital为空");
|
|
|
isAll=false;
|
|
|
continue;
|
|
|
}
|
|
|
Hospital hospital = hospitalsMap.get(getOrg(signFamily.getHospital()));//得到患者签约的机构
|
|
|
if(hospital == null) {
|
|
|
errorContent.append("签约code:"+signFamily.getCode()+",签约的全科医生(doctor字段)的所属机构(wlyy_doctor表中的hospital字段)为空或者所属的机构数据有问题");
|
|
|
errorContent.append("签约code:"+signFamily.getCode()+",签约表机构hospital不存在");
|
|
|
isAll=false;
|
|
|
continue;
|
|
|
}
|
|
|
String town = hospital.getTown();
|
|
|
if(StringUtils.isEmpty(town)) {
|
|
|
errorContent.append("签约code:"+signFamily.getCode()+",机构表中的区为空");
|
|
|
isAll=false;
|
|
|
continue;
|
|
|
}
|
|
|
//统计市 现在只有厦门市 默认先写死 后面再改
|
|
|
compute_level2_2(cityGroupMap, group,Constant.city);
|
|
|
cityCount++;
|
|
@ -547,7 +557,7 @@ public class SignJob implements Job {
|
|
|
continue;
|
|
|
}
|
|
|
String idCard=signFamily.getIdcard();
|
|
|
if(idCard == null||(idCard.length()==18||idCard.length()==15)) {
|
|
|
if(idCard == null||((idCard.length()!=18&&idCard.length()!=15))) {
|
|
|
errorContent.append("签约code:"+signFamily.getCode()+",签约表中(wlyy_sign_family)中的idCard数据异常");
|
|
|
isAll=false;
|
|
|
errorCount++;
|
|
@ -682,7 +692,7 @@ public class SignJob implements Job {
|
|
|
continue;
|
|
|
}
|
|
|
String idCard=signFamily.getIdcard();
|
|
|
if(idCard == null||(idCard.length()==18||idCard.length()==15)) {
|
|
|
if(idCard == null||((idCard.length()!=18&&idCard.length()!=15))) {
|
|
|
errorContent.append("签约code:"+signFamily.getCode()+",签约表中(wlyy_sign_family)中的idCard数据异常");
|
|
|
isAll=false;
|
|
|
errorCount++;
|
|
@ -756,7 +766,7 @@ public class SignJob implements Job {
|
|
|
}
|
|
|
|
|
|
private String saveContent(List<SignFamily> signFamilys, Long qkCount, Long orgCount, Long townCount, Long cityCount, boolean isAll, StringBuffer errorContent,Long errorCount) {
|
|
|
StringBuffer string=new StringBuffer("统计"+getYesterday()+" 的已改簽数据完成 ,数据库查询到改签数目:"+signFamilys.size());
|
|
|
StringBuffer string=new StringBuffer("统计"+getYesterday()+" 的签约数据完成 ,数据库查询到签约数目:"+signFamilys.size());
|
|
|
string.append(",过滤的脏数据数目:"+errorCount);
|
|
|
string.append(",统计到市的数据总数:"+cityCount);
|
|
|
string.append(",统计到区的数据总数:"+townCount);
|