| | |
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import javax.servlet.http.HttpServletResponse;
|
| | |
|
| | | import com.fgkj.dao.impl.BattInfImpl;
|
| | | import com.fgkj.dto.BattInf;
|
| | | import com.fgkj.dto.Batt_Maint_Dealarm;
|
| | |
| | | BattInf binf= getGson("yyyy-MM-dd").fromJson(json, BattInf.class);
|
| | | //System.out.println(binf);
|
| | | ServiceModel model = service.updateIp(binf);
|
| | | result = tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //设置电池组充电电流阈值
|
| | | public String update_charge() {
|
| | | BattInf binf= getGson("yyyy-MM-dd").fromJson(json, BattInf.class);
|
| | | ServiceModel model = service.update_charge(binf);
|
| | | result = tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | |
| | | result = ActionUtil.tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //首页上根据stationid查询电池组的机历卡
|
| | | public String serchBattAllInfoByStationId(){
|
| | | BattInf binf=getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattInf.class);
|
| | | ServiceModel model = service.serchBattAllInfoByStationId(binf);
|
| | | result = ActionUtil.tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | |
| | | //跨域访问获取所有电池组的信息<-------跨域----------->
|
| | | public String searchInform_ky(){
|
| | | //isAllowHeaders(); //允许跨域访问
|
| | | ServiceModel model = new ServiceModel();
|
| | | model = service.searchInform_ky(); |
| | | result = ActionUtil.tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //首页上显示已安装数和全部基站数
|
| | | public String serchDevice(){
|
| | | User_inf uinf=(User_inf) getUser();
|
| | | ServiceModel model = service.serchDevice(uinf);
|
| | | result = ActionUtil.tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //头部查出已安装的所有机房
|
| | | public String serchByDeviceId(){
|
| | | User_inf uinf=(User_inf) getUser();
|
| | | ServiceModel model = service.serchByDeviceId(uinf);
|
| | | result = ActionUtil.tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //头部查出已安装的电池单体
|
| | | public String serchByInstall_count(){
|
| | | User_inf uinf=(User_inf) getUser();
|
| | | ServiceModel model = service.serchByInstall_count(uinf);
|
| | | result = ActionUtil.tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | public BattInf getBif() {
|
| | | return bif;
|
| | | }
|