| | |
| | | package com.vci.web.service.impl; |
| | | |
| | | import com.vci.client.common.providers.ServiceProvider; |
| | | import com.vci.client.common.providers.ClientServiceProvider; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.omd.stm.StatePool; |
| | | import com.vci.starter.web.annotation.log.VciUnLog; |
| | |
| | | public List<OsStatusVO> selectAllStatus() { |
| | | try { |
| | | // return statusDO2VOs(Arrays.stream(platformClientUtil.getStatePoolService().getStatePools()).collect(Collectors.toList())); |
| | | return statusDO2VOs(Arrays.stream(ServiceProvider.getOMDService().getStateService().getStatePools()).collect(Collectors.toList())); |
| | | return statusDO2VOs(Arrays.stream(ClientServiceProvider.getOMDService().getStateService().getStatePools()).collect(Collectors.toList())); |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | |
| | | statePool.name = statusDTO.getId(); |
| | | statePool.description = statusDTO.getDescription()==null?"":statusDTO.getDescription(); |
| | | String userId = VciBaseUtil.getCurrentUserId(); |
| | | long now = VciDateUtil.getTime(VciDateUtil.getNow()); |
| | | long now = VciDateUtil.getNowTime(); |
| | | statePool.creator = userId; |
| | | statePool.createTime = now; |
| | | statePool.modifier = userId; |