| | |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import com.java110.dto.chargeMachinePort.ChargeMachinePortDto; |
| | | import com.java110.dto.chargeMachine.ChargeMachinePortDto; |
| | | |
| | | import java.util.List; |
| | | import java.util.ArrayList; |
| | |
| | | chargeMachinePortDtos = chargeMachinePortV1InnerServiceSMOImpl.queryChargeMachinePorts(chargeMachinePortDto); |
| | | |
| | | //调用 第三方查询 插槽状态 |
| | | queryPortState(chargeMachinePortDtos); |
| | | // queryPortState(chargeMachinePortDtos); |
| | | } else { |
| | | chargeMachinePortDtos = new ArrayList<>(); |
| | | } |
| | |
| | | cmdDataFlowContext.setResponseEntity(responseEntity); |
| | | } |
| | | |
| | | private void queryPortState(List<ChargeMachinePortDto> chargeMachinePortDtos) { |
| | | if (chargeMachinePortDtos == null || chargeMachinePortDtos.size() < 1) { |
| | | return; |
| | | |
| | | } |
| | | |
| | | for (ChargeMachinePortDto chargeMachinePortDto : chargeMachinePortDtos) { |
| | | chargeMachinePortDto.setStateName("空闲"); |
| | | } |
| | | } |
| | | // private void queryPortState(List<ChargeMachinePortDto> chargeMachinePortDtos) { |
| | | // if (chargeMachinePortDtos == null || chargeMachinePortDtos.size() < 1) { |
| | | // return; |
| | | // |
| | | // } |
| | | // |
| | | // for (ChargeMachinePortDto chargeMachinePortDto : chargeMachinePortDtos) { |
| | | // chargeMachinePortDto.setStateName("空闲"); |
| | | // } |
| | | // } |
| | | } |