| | |
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import javax.servlet.http.HttpServletResponse;
|
| | |
|
| | | import com.fgkj.actions.ActionUtil;
|
| | | import com.fgkj.dto.BattInf;
|
| | | import com.fgkj.dto.ServiceModel;
|
| | |
| | | result = tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //批量设置放电参数时查询出当前放电的电池组(1u/2u分开)
|
| | | public String seachDischarge(){
|
| | | BattInf binf=getGson().fromJson(json, BattInf.class);
|
| | | User_inf uinf=(User_inf) getUser();
|
| | | binf.setBattGroupId(uinf.getUId());
|
| | | ServiceModel model = service.seachDischarge(binf);
|
| | | result = tojson(model);
|
| | | return SUCCESS; |
| | | }
|
| | | //实时刷新批量设置放电参数
|
| | | public String freshenDischarge(){
|
| | | List list=getGson().fromJson(json,new TypeToken<List<BattInf>>(){}.getType());
|
| | | ServiceModel model = service.freshenDischarge(list);
|
| | | result = tojson(model);
|
| | | return SUCCESS; |
| | | }
|
| | | //11.1FBS9100设备通信状态查询 <-- 跨域 -->
|
| | | public String serchByCondition_ky(){ |
| | | //isAllowHeaders(); //允许跨域访问
|
| | | ServiceModel model = new ServiceModel();
|
| | | model = service.serchByCondition_ky(); |
| | | result = tojson(model);
|
| | | return SUCCESS; |
| | | }
|
| | | |
| | | |
| | | public String getResult() {
|
| | | return result;
|
| | | }
|