| | |
| | |
|
| | | import com.fgkj.dto.Batt_endurance;
|
| | | import com.fgkj.dto.ServiceModel;
|
| | | import com.fgkj.dto.User_inf;
|
| | | import com.fgkj.services.Batt_enduranceService;
|
| | |
|
| | | public class Batt_enduranceAction extends ActionUtil{
|
| | |
| | | //续航时间的查询
|
| | | public String serchByCondition() {
|
| | | Batt_endurance bendurance=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Batt_endurance.class);
|
| | | User_inf uinf=(User_inf) getUser();
|
| | | bendurance.setNum(uinf.getUId());
|
| | | ServiceModel model=service.serchByCondition(bendurance);
|
| | | result=tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | |
|
| | | //续航不足1小时,2小时等的饼状图
|
| | | public String serchByState_xuhang() {
|
| | | User_inf uinf=(User_inf) getUser();
|
| | | ServiceModel model=service.serchByState_xuhang(uinf);
|
| | | result=tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | |
|
| | | |
| | | //导航上续航不足3小时的个数
|
| | | public String serchxuhangNotInThree() {
|
| | | User_inf uinf=(User_inf) getUser();
|
| | | ServiceModel model=service.serchxuhangNotInThree(uinf);
|
| | | result=tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | |
|
| | | public String getResult() {
|
| | | return result;
|