|
@ -1,5 +1,6 @@
|
|
|
package com.yihu.jw.care.service.message;
|
|
|
|
|
|
import com.yihu.jw.care.util.DateUtil;
|
|
|
import com.yihu.jw.care.util.DeviceLostMessageUtil;
|
|
|
import com.yihu.jw.care.util.SystemPushMessageUtil;
|
|
|
import com.yihu.jw.care.util.WeatherUtil;
|
|
@ -9,6 +10,7 @@ import com.yihu.jw.hospital.message.dao.SystemMessageDao;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
@ -39,7 +41,7 @@ public class PushWeatherForecastService {
|
|
|
// ,"tem_night":"28","win":"东风","win_speed":"2级","win_meter":"7km\/h","air":"118","pressure":"999","humidity":"50%"}
|
|
|
|
|
|
|
|
|
public void weatherForecastS(){
|
|
|
public void weatherForecast(){
|
|
|
List<SystemMessageDO> messageDOList = new ArrayList<>();
|
|
|
|
|
|
String sql = "SELECT p.id,p.`name`,p.photo FROM base_patient p " +
|
|
@ -68,5 +70,12 @@ public class PushWeatherForecastService {
|
|
|
}
|
|
|
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public void delWeatherForecast(){
|
|
|
//systemMessageDao.delWeatherForecast();
|
|
|
String sql = "delete from base_system_message where type = '995' and create_time<='"+DateUtil.getStringDate()+"'";
|
|
|
jdbcTemplate.update(sql);
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|