java110
2023-06-13 ae42d2da37fe9d161e7058b51367b95f24c3d97a
service-common/src/main/java/com/java110/common/cmd/chargeMachine/ListChargeMachinePortCmd.java
@@ -26,7 +26,7 @@
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;
@@ -74,7 +74,7 @@
            chargeMachinePortDtos = chargeMachinePortV1InnerServiceSMOImpl.queryChargeMachinePorts(chargeMachinePortDto);
            //调用 第三方查询 插槽状态
            queryPortState(chargeMachinePortDtos);
           // queryPortState(chargeMachinePortDtos);
        } else {
            chargeMachinePortDtos = new ArrayList<>();
        }
@@ -86,14 +86,14 @@
        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("空闲");
//        }
//    }
}