|
@ -180,6 +180,7 @@ public class PatientHealthGuidanceService extends BaseService {
|
|
|
Date currentTime = new Date();
|
|
|
long h24 = 60*60*24;
|
|
|
for(Map<String, Object> one :list){
|
|
|
if((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){//有效干预
|
|
@ -189,6 +190,8 @@ public class PatientHealthGuidanceService extends BaseService {
|
|
|
}
|
|
|
jdbcTemplate.execute(tempSql);
|
|
|
}
|
|
|
String tempSql="update wlyy.wlyy_message a set a.has_read = 0,a.over='0' where a.tz_code in ("+tzCode+") and a.type=2 ";
|
|
|
jdbcTemplate.execute(tempSql);
|
|
|
}
|
|
|
|
|
|
return guidance;
|