| | |
| | | package com.vci.web.service.impl; |
| | | |
| | | import com.vci.client.common.providers.ClientServiceProvider; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.omd.etm.EnumItem; |
| | | import com.vci.corba.omd.etm.EnumType; |
| | |
| | | /** |
| | | * 平台调用客户端 |
| | | */ |
| | | //@Autowired |
| | | @Autowired |
| | | private PlatformClientUtil platformClientUtil; |
| | | |
| | | /** |
| | |
| | | public List<OsEnumVO> selectAllEnum() { |
| | | //后面两个参数居然完全没有作用 |
| | | try { |
| | | return enumDO2VOs(Arrays.stream(ClientServiceProvider.getOMDService().getEnumService().getEnumTypes("",1,1)).collect(Collectors.toList())); |
| | | return enumDO2VOs(Arrays.stream(platformClientUtil.getEnumService().getEnumTypes("",1,1)).collect(Collectors.toList())); |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | |
| | | VciBaseUtil.alertNotNull(oid,"业务数据的主键",btmname,"业务类型"); |
| | | com.vci.client.bof.ClientBusinessObject cbo = boService.selectCBOByOid(oid, btmname); |
| | | String secret = cbo.getAttributeValue("secretGrade"); |
| | | //secret = DataSecretEnum.SECRET.getValue() + ""; |
| | | if(StringUtils.isBlank(secret)){ |
| | | return new ArrayList<>(); |
| | | }else{ |
| | |
| | | if(!CollectionUtils.isEmpty(enumItemList)){ |
| | | enumItemList.stream().forEach(enumItem -> { |
| | | try { |
| | | ClientServiceProvider.getOMDService().getEnumService().addEnumType(enumItem); |
| | | platformClientUtil.getEnumService().addEnumType(enumItem); |
| | | } catch (PLException e) { |
| | | throw WebUtil.getVciBaseException(e); |
| | | } |
| | |
| | | if(!CollectionUtils.isEmpty(enumItemList)){ |
| | | enumItemList.stream().forEach(enumItem -> { |
| | | try { |
| | | // ServiceProvider.getOMDService().getEnumService().modifyEmItem(enumItem); |
| | | ClientServiceProvider.getOMDService().getEnumService().modifyEnumType(enumItem); |
| | | platformClientUtil.getEnumService().modifyEnumType(enumItem); |
| | | } catch (PLException e) { |
| | | throw WebUtil.getVciBaseException(e); |
| | | } |