|
@ -49,7 +49,7 @@ public class FamilyLianQianService {
|
|
|
JSONObject object = new JSONObject();
|
|
|
List<FamilyLianQian> familyLianQians = new ArrayList<>();
|
|
|
String signSql = "select * from wlyy_sign_family_lianqian WHERE status = "+status+" " +
|
|
|
"and sign_year= '"+year+"' and hospital_name = '" +hospitalName+"'";
|
|
|
"and sign_year= '"+year+"' and hospital_name = '" +hospitalName+"' limit 0,100";
|
|
|
List<SignFamily> signFamilyList = jdbcTemplate.query(signSql,new BeanPropertyRowMapper(SignFamily.class));
|
|
|
|
|
|
if (signFamilyList != null && signFamilyList.size() != 0){
|
|
@ -79,6 +79,7 @@ public class FamilyLianQianService {
|
|
|
}else{
|
|
|
j=1;
|
|
|
}
|
|
|
logger.info("residence:"+residenceInfo1.getPersonid());
|
|
|
String signSql1 = "select * from wlyy_sign_family_lianqian WHERE status = " + status + " " +
|
|
|
"and sign_year= '" + year + "' and idcard = '" + demographicInfo1.getCardid() + "' and hospital_name = '" + hospitalName + "'";
|
|
|
List<SignFamily> signFamilyList1 = jdbcTemplate.query(signSql1, new BeanPropertyRowMapper(SignFamily.class));
|
|
@ -115,8 +116,21 @@ public class FamilyLianQianService {
|
|
|
familyLianQian.setName(demographicInfo1.getName());
|
|
|
familyLianQian.setStatus(signFamily1.getStatus().toString());
|
|
|
familyDao.save(familyLianQian);
|
|
|
++i;
|
|
|
}else{
|
|
|
familyLianQian.setName(demographicInfo1.getName());
|
|
|
familyLianQian.setStatus("-5");
|
|
|
familyLianQian.setSex(Integer.parseInt(demographicInfo1.getSex()));
|
|
|
familyLianQian.setIdcard(demographicInfo1.getCardid());
|
|
|
FoundationMedicalSystemParam param = tblsysParamDao.findByParamnameAndCode("Relaholder", residenceInfo1.getRelaholder());
|
|
|
familyLianQian.setRelaholder(param.getParamchina());
|
|
|
familyLianQian.setSignType("0");
|
|
|
familyLianQian.setHighBloodPressure(0);
|
|
|
familyLianQian.setDiabetes(0);
|
|
|
familyLianQian.setBind(0);
|
|
|
familyDao.save(familyLianQian);
|
|
|
|
|
|
}
|
|
|
++i;
|
|
|
}
|
|
|
if (i == residenceInfoList.size()&& j==0) {
|
|
|
FamilyLianQian familyLianQian = new FamilyLianQian();
|