| | |
| | | return SUCCESS;
|
| | | }
|
| | | //判断新增的机房是否存在
|
| | | public String judgeBattInOrNot(){
|
| | | public String judgeBatt(){
|
| | | BattInf binf=getGson().fromJson(json, BattInf.class);
|
| | | ServiceModel model = service.judgeBattInOrNot(binf);
|
| | | ServiceModel model = service.judgeBatt(binf);
|
| | | result = ActionUtil.tojson(model);
|
| | | return SUCCESS;
|
| | | }
|
| | |
| | | return model;
|
| | | }
|
| | | //判断新增的机房是否存在
|
| | | public ServiceModel judgeBattInOrNot(Object obj) {
|
| | | Boolean bl=((BattInfImpl)dao).judgeBattInOrNot(obj);
|
| | | if (bl) {
|
| | | public ServiceModel judgeBatt(Object obj) {
|
| | | List list=((BattInfImpl)dao).judgeBatt(obj);
|
| | | if (list != null && list.size() > 0) {
|
| | | model.setCode(1);
|
| | | model.setData(list);
|
| | | model.setMsg("查询成功!");
|
| | | }else{
|
| | | model.setCode(0);
|