| | |
| | | result=tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //验收(多条)
|
| | | public String check(){
|
| | | List<Battinf_apply> list=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json,new TypeToken<List<Battinf_apply>>(){}.getType() );
|
| | | ServiceModel model=service.check(list);
|
| | | result=tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //申请验收(多条)
|
| | | public String checkPro(){
|
| | | List<Battinf_apply> list=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json,new TypeToken<List<Battinf_apply>>(){}.getType() );
|
| | | ServiceModel model=service.checkPro(list);
|
| | | result=tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //申请人再我的申请页面的修改操作
|
| | | public String updatePro(){
|
| | | List<Battinf_apply> list=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json,new TypeToken<List<Battinf_apply>>(){}.getType() );
|
| | |
| | | result=tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //添加申请
|
| | | //添加申请(新建)
|
| | | public String add(){
|
| | | List<Battinf_apply> list=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json,new TypeToken<List<Battinf_apply>>(){}.getType() );
|
| | | ServiceModel model=service.add(list);
|
| | | result=tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //添加申请(修改旧的)
|
| | | public String addPro(){
|
| | | List<Battinf_apply> list=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json,new TypeToken<List<Battinf_apply>>(){}.getType() );
|
| | | ServiceModel model=service.addPro(list);
|
| | | result=tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //查询出所有需要确认的申请
|
| | | public String serchByCondition(){
|
| | | Page page=ActionUtil.getGson().fromJson(json, Page.class);
|
| | | ServiceModel model=service.serchByCondition(page);
|
| | | Battinf_apply bapply=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Battinf_apply.class);
|
| | | ServiceModel model=service.serchByCondition(bapply);
|
| | | result=tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //申请表中已审批通过的设备连接数
|
| | | public String devCommNum(){
|
| | | ServiceModel model=service.devCommNum();
|
| | | result=tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | |
| | | result=tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | | //根据机房id查询出申请人已审批通过的电池组信息
|
| | | public String serchById(){
|
| | | Battinf_apply bapply=ActionUtil.getGson().fromJson(json, Battinf_apply.class);
|
| | | User_inf uinf=(User_inf) getUser();
|
| | | bapply.setApply_uid(uinf.getUId());
|
| | | ServiceModel model=service.serchById(bapply);
|
| | | result=tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | |
|
| | | public String getResult() {
|
| | | return result;
|