| | |
| | |
|
| | | //根据设备id查询系统参数(一定是被管理的)
|
| | | public ServiceModel serchByCondition(Object obj){
|
| | | boolean bl=((Fbs9100_sysparamImpl)dao).replace(obj);
|
| | | if(bl){
|
| | | List list = dao.serchByCondition(obj);
|
| | | if(list!=null && list.size()>0){
|
| | | model.setCode(1);
|
| | |
| | | model.setCode(0);
|
| | | model.setMsg("查询失败!");
|
| | | }
|
| | | return model;
|
| | | }else{
|
| | | model.setCode(0);
|
| | | model.setMsg("查询失败!");
|
| | | }
|
| | |
|
| | |
|
| | | return model;
|
| | | } |
| | | public static void main(String[] args) {
|
| | | Fbs9100_sysparamService fs=new Fbs9100_sysparamService();
|
| | | Fbs9100_sysparam sys=new Fbs9100_sysparam();
|
| | | sys.setDev_id(910000110);
|
| | | ServiceModel model=fs.serchByCondition(sys);
|
| | | System.out.println(model);
|
| | | }
|
| | | }
|