Quellcode durchsuchen

Merge branch 'dev' of liuwenbin/patient-co-management into dev

trick9191 vor 7 Jahren
Ursprung
Commit
7fa7b30bf8

+ 3 - 0
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/health/PatientHealthGuidanceService.java

@ -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;