/**
* @Description 查询天气方法
* @author HC
*/
@At("/getWeatherKCDataTime")
public Object getWeatherKCDataTime(@Param("DDATE")String ddate){
List<WeatherData> timekc;
try {
timekc = weatherDataService.query(Cnd.where("DDATE","like",ddate));
return timekc;
} catch (Exception e) {
e.printStackTrace();
return -1;
}
}
报错:ddate从前端取的值拿到了,但是在timekc = weatherDataService.query(Cnd.where("DDATE","like",ddate));报ddate标识符无效