| | |
| | | } |
| | | |
| | | //批量设置Actm均衡仪参数 |
| | | public Object setActmParamPl(ActmResDto param) { |
| | | public Object setActmParamPl2(ActmResDto param) { |
| | | Map<Integer,Object> map=new HashMap<>(); |
| | | int size=param.getDevIds().size(); |
| | | try { |
| | |
| | | poolExecutor.execute(() -> { |
| | | param.setDevId(devId); |
| | | ResultA200Dto dto= (ResultA200Dto) setActmParam(param); |
| | | map.put(param.getDevId(),dto); |
| | | map.put(devId,dto); |
| | | latch.countDown(); |
| | | }); |
| | | } |
| | | latch.await(10, TimeUnit.MINUTES); |
| | | } catch (InterruptedException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return new Response().setII(1,true,map,"批量设置Actm均衡仪参数"); |
| | | } |
| | | |
| | | //批量设置Actm均衡仪参数 |
| | | public Object setActmParamPl(ActmResDto param) { |
| | | Map<Integer,Object> map=new HashMap<>(); |
| | | int size=param.getDevIds().size(); |
| | | for (Integer devId:param.getDevIds()) { |
| | | param.setDevId(devId); |
| | | ResultA200Dto dto= (ResultA200Dto) setActmParam(param); |
| | | map.put(devId,dto); |
| | | } |
| | | return new Response().setII(1,true,map,"批量设置Actm均衡仪参数"); |
| | | } |
| | |
| | | |
| | | |
| | | //批量控制Actm均衡仪 |
| | | public Response controllActmParamPl(List<ActmPlContDto> actmPlContDtos) { |
| | | public Response controllActmParamPl2(List<ActmPlContDto> actmPlContDtos) { |
| | | Map<Integer,Object> map=new HashMap<>(); |
| | | try { |
| | | ThreadPoolExecutor poolExecutor = ThreadPoolExecutorFactory.getPoolExecutor(); |
| | |
| | | return new Response().set(1,true,"批量设置Actm均衡仪参数"); |
| | | } |
| | | |
| | | //批量控制Actm均衡仪 |
| | | public Response controllActmParamPl(List<ActmPlContDto> actmPlContDtos) { |
| | | Map<Integer,Object> map=new HashMap<>(); |
| | | for (ActmPlContDto actmPlContDto:actmPlContDtos) { |
| | | ResultActmDto dto= (ResultActmDto) controllerActmParam(actmPlContDto.getDevId(),actmPlContDto.getIndex(),actmPlContDto.getType()); |
| | | map.put(actmPlContDto.getDevId(),dto); |
| | | } |
| | | return new Response().set(1,true,"批量设置Actm均衡仪参数"); |
| | | } |
| | | |
| | | //将dto拷贝至param |
| | | private void copyActmDTO(Object data, DevActmTestparam actmParam) { |
| | | ActmResDto dto= (ActmResDto) data; |