|
@ -6,6 +6,8 @@ import com.yihu.jw.care.util.MessageUtil;
|
|
import com.yihu.jw.care.util.WeatherUtil;
|
|
import com.yihu.jw.care.util.WeatherUtil;
|
|
import com.yihu.jw.entity.care.weather.BaseWeatherDayDO;
|
|
import com.yihu.jw.entity.care.weather.BaseWeatherDayDO;
|
|
import com.yihu.jw.entity.care.weather.BaseWeatherWeekDO;
|
|
import com.yihu.jw.entity.care.weather.BaseWeatherWeekDO;
|
|
|
|
import com.yihu.jw.entity.hospital.consult.WlyyHospitalSysDictDO;
|
|
|
|
import com.yihu.jw.hospital.dict.WlyyHospitalSysDictDao;
|
|
import com.yihu.jw.restmodel.web.Envelop;
|
|
import com.yihu.jw.restmodel.web.Envelop;
|
|
import com.yihu.jw.restmodel.web.ListEnvelop;
|
|
import com.yihu.jw.restmodel.web.ListEnvelop;
|
|
import com.yihu.jw.restmodel.web.ObjEnvelop;
|
|
import com.yihu.jw.restmodel.web.ObjEnvelop;
|
|
@ -20,6 +22,7 @@ import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.http.MediaType;
|
|
import org.springframework.http.MediaType;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
@ -36,7 +39,23 @@ public class CommonController extends EnvelopRestEndpoint {
|
|
private WeatherUtil weatherUtil;
|
|
private WeatherUtil weatherUtil;
|
|
@Autowired
|
|
@Autowired
|
|
private PatientMessageService patientMessageService;
|
|
private PatientMessageService patientMessageService;
|
|
|
|
@Resource
|
|
|
|
private WlyyHospitalSysDictDao wlyyHospitalSysDictDao;
|
|
|
|
|
|
|
|
@GetMapping(value = "open/getCloudCareUrl")
|
|
|
|
@ApiOperation(value = "获取云照护url")
|
|
|
|
public ObjEnvelop getCloudCareUrl() {
|
|
|
|
try {
|
|
|
|
String url = "";
|
|
|
|
WlyyHospitalSysDictDO dictDO = wlyyHospitalSysDictDao.findById("getCloudCareUrl");
|
|
|
|
if(dictDO!=null){
|
|
|
|
url = dictDO.getDictValue();
|
|
|
|
}
|
|
|
|
return ObjEnvelop.getSuccess("获取成功",url);
|
|
|
|
} catch (Exception e) {
|
|
|
|
return failedObjEnvelopException2(e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "weather")
|
|
@GetMapping(value = "weather")
|
|
@ApiOperation(value = "获取天气数据")
|
|
@ApiOperation(value = "获取天气数据")
|