|
@ -1908,9 +1908,16 @@ public class ConsultTeamService extends ConsultService {
|
|
String SQL = "SELECT t.id FROM wlyy_sign_family_renew t " +
|
|
String SQL = "SELECT t.id FROM wlyy_sign_family_renew t " +
|
|
" WHERE (t.doctor ='"+code+"' OR t.doctor_health ='"+code+"' ) " +
|
|
" WHERE (t.doctor ='"+code+"' OR t.doctor_health ='"+code+"' ) " +
|
|
" AND t.sign_year ='"+DateUtil.getSignYear()+"' AND t.patient ='"+uid+"' ";
|
|
" AND t.sign_year ='"+DateUtil.getSignYear()+"' AND t.patient ='"+uid+"' ";
|
|
|
|
|
|
|
|
String SQL2 ="SELECT t.id FROM wlyy_sign_family t " +
|
|
|
|
" WHERE (t.doctor ='"+code+"' OR t.doctor_health ='"+code+"' ) " +
|
|
|
|
" AND t.sign_year ='"+(DateUtil.getSignYear()-1)+"' AND t.patient ='"+uid+"' AND t.status>0 AND t.expenses_status ='1' ";
|
|
List<Map<String,Object>> isExits = jdbcTemplate.queryForList(SQL);
|
|
List<Map<String,Object>> isExits = jdbcTemplate.queryForList(SQL);
|
|
if(isExits!=null&&isExits.size()>0){
|
|
|
|
indexs.add(i);
|
|
|
|
|
|
List<Map<String,Object>> isExitsSign = jdbcTemplate.queryForList(SQL2);
|
|
|
|
if(isExitsSign==null){
|
|
|
|
if(isExits!=null&&isExits.size()>0){
|
|
|
|
indexs.add(i);
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(indexs!=null&&indexs.size()>0){
|
|
if(indexs!=null&&indexs.size()>0){
|
|
@ -1930,9 +1937,16 @@ public class ConsultTeamService extends ConsultService {
|
|
String SQL = "SELECT t.id FROM wlyy_sign_family_renew t " +
|
|
String SQL = "SELECT t.id FROM wlyy_sign_family_renew t " +
|
|
" WHERE (t.doctor ='"+code+"' OR t.doctor_health ='"+code+"' ) " +
|
|
" WHERE (t.doctor ='"+code+"' OR t.doctor_health ='"+code+"' ) " +
|
|
" AND t.sign_year ='"+DateUtil.getSignYear()+"' AND t.patient ='"+uid+"' ";
|
|
" AND t.sign_year ='"+DateUtil.getSignYear()+"' AND t.patient ='"+uid+"' ";
|
|
|
|
|
|
|
|
String SQL2 ="SELECT t.id FROM wlyy_sign_family t " +
|
|
|
|
" WHERE (t.doctor ='"+code+"' OR t.doctor_health ='"+code+"' ) " +
|
|
|
|
" AND t.sign_year ='"+(DateUtil.getSignYear()-1)+"' AND t.patient ='"+uid+"' AND t.status>0 AND t.expenses_status ='1' ";
|
|
List<Map<String,Object>> isExits = jdbcTemplate.queryForList(SQL);
|
|
List<Map<String,Object>> isExits = jdbcTemplate.queryForList(SQL);
|
|
if(isExits!=null&&isExits.size()>0){
|
|
|
|
indexs.add(i);
|
|
|
|
|
|
List<Map<String,Object>> isExitsSign = jdbcTemplate.queryForList(SQL2);
|
|
|
|
if(isExitsSign==null){
|
|
|
|
if(isExits!=null&&isExits.size()>0){
|
|
|
|
indexs.add(i);
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(indexs!=null&&indexs.size()>0){
|
|
if(indexs!=null&&indexs.size()>0){
|