| | |
| | | import com.fgkj.dto.BattInf;
|
| | | import com.fgkj.dto.ServiceModel;
|
| | | import com.fgkj.dto.User_log;
|
| | | import com.fgkj.dto.ram.Fbs9100_battparam;
|
| | | import com.fgkj.dto.ram.Fbs9100_setparam;
|
| | | import com.fgkj.dto.ram.Fbs9100_sysparam;
|
| | | import com.fgkj.services.User_logService;
|
| | |
| | | private Fbs9100_sysparamService service=new Fbs9100_sysparamService();
|
| | | private User_logService uservice=new User_logService();
|
| | | private String json;
|
| | | private String json_msg;
|
| | | private String result;
|
| | |
|
| | | //修改系统参数
|
| | |
| | | result = tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //批量设置系统参数
|
| | | public String updatePro() {
|
| | | List<Fbs9100_sysparam> list=getGson().fromJson(json, new TypeToken<List<Fbs9100_sysparam>>(){}.getType());
|
| | | ServiceModel model = service.updatePro(list);
|
| | | {
|
| | | String msg="批量设置"+json_msg+"的系统参数";
|
| | | User_log ulog=UinfDaoFactory.CreateULog(UinfDaoFactory.Batch, msg);
|
| | | uservice.add(ulog);//将用户的操作记录下来
|
| | | }
|
| | | result = tojson(model); |
| | | return SUCCESS; |
| | | }
|
| | | //批量重启设备
|
| | | public String restartPL_FBS() {
|
| | | List<Fbs9100_sysparam> list=getGson().fromJson(json, new TypeToken<List<Fbs9100_sysparam>>(){}.getType());
|
| | | ServiceModel model = service.restartPL_FBS(list);
|
| | | { String msg="批量重启"+json_msg+"的设备";
|
| | | User_log ulog=UinfDaoFactory.CreateULog(UinfDaoFactory.Batch, msg);
|
| | | uservice.add(ulog);//将用户的操作记录下来
|
| | | }
|
| | | result = tojson(model); |
| | | return SUCCESS; |
| | | }
|
| | | |
| | | //根据设备id查询系统参数(一定是被管理的)
|
| | | public String serchByCondition(){
|
| | | Fbs9100_sysparam sys= getGson().fromJson(json, Fbs9100_sysparam.class);
|
| | |
| | | result = tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | |
| | | //批量设置系统参数时,根据省市区,电池单体型号(伏数),组数筛选出电池组并读取它的实际系统参数
|
| | | public String serchBattinfAndParam() {
|
| | | BattInf binf=getGson().fromJson(json, BattInf.class);
|
| | | ServiceModel model = service.serchBattinfAndParam(binf);
|
| | | result = tojson(model); |
| | | return SUCCESS; |
| | | }
|
| | | //批量读取系统参数
|
| | | public String readPL() {
|
| | | List<Fbs9100_sysparam> list=getGson().fromJson(json, new TypeToken<List<Fbs9100_sysparam>>(){}.getType());
|
| | | ServiceModel model = service.readPL(list);
|
| | | /*{
|
| | | String msg="批量读取"+json_msg+"的电池参数信息";
|
| | | User_log ulog=UinfDaoFactory.CreateULog(UinfDaoFactory.Batch, msg);
|
| | | uservice.add(ulog);//将用户的操作记录下来
|
| | | }*/
|
| | | result = tojson(model); |
| | | return SUCCESS; |
| | | }
|
| | | |
| | | |
| | | public String getResult() {
|
| | | return result;
|
| | | }
|
| | | public void setJson(String json) {
|
| | | this.json = json;
|
| | | }
|
| | | public void setJson_msg(String json_msg) {
|
| | | this.json_msg = json_msg;
|
| | | }
|
| | |
|
| | |
|
| | |
|