|
@ -177,13 +177,12 @@ public class PatientHealthGuidanceService extends BaseService {
|
|
|
if(StringUtils.isNotEmpty(tzCode)&&!"undefined".equals(tzCode)){
|
|
|
String sql = " select * from device.wlyy_patient_health_index where id in ("+tzCode+")";
|
|
|
List<Map<String, Object>> list = jdbcTemplate.queryForList(sql);
|
|
|
Date currentTime = new Date();
|
|
|
long h24 = 60*60*60*24;
|
|
|
long h24 = 60*60*60*24+10;
|
|
|
for(Map<String, Object> one :list){
|
|
|
if(one.get("manage_result")!=null&&((Integer)one.get("manage_result")==1||(Integer)one.get("manage_result")==2))continue;
|
|
|
String tempSql="";
|
|
|
Date temp =(Date)one.get("czrq");
|
|
|
if(currentTime.getTime()-temp.getTime()<=h24){//有效干预
|
|
|
if(new Date().getTime()-temp.getTime()<=h24){//有效干预
|
|
|
tempSql = "update device.wlyy_patient_health_index set manage_result=1 where id="+one.get("id");
|
|
|
}else{//无效干预
|
|
|
tempSql = "update device.wlyy_patient_health_index set manage_result=2 where id="+one.get("id");
|