mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-11 10:49:52 +08:00
update 电单车协议
This commit is contained in:
@@ -61,7 +61,6 @@ import com.jsowell.pile.service.programlogic.ProgramLogicFactory;
|
|||||||
import com.jsowell.pile.thirdparty.CommonParamsDTO;
|
import com.jsowell.pile.thirdparty.CommonParamsDTO;
|
||||||
import com.jsowell.pile.transaction.dto.OrderTransactionDTO;
|
import com.jsowell.pile.transaction.dto.OrderTransactionDTO;
|
||||||
import com.jsowell.pile.transaction.service.TransactionService;
|
import com.jsowell.pile.transaction.service.TransactionService;
|
||||||
import com.jsowell.pile.service.PileSnGenerateService;
|
|
||||||
import com.jsowell.pile.vo.base.MemberWalletVO;
|
import com.jsowell.pile.vo.base.MemberWalletVO;
|
||||||
import com.jsowell.pile.vo.base.PileInfoVO;
|
import com.jsowell.pile.vo.base.PileInfoVO;
|
||||||
import com.jsowell.pile.vo.uniapp.customer.CurrentTimePriceDetails;
|
import com.jsowell.pile.vo.uniapp.customer.CurrentTimePriceDetails;
|
||||||
@@ -108,7 +107,7 @@ import java.text.SimpleDateFormat;
|
|||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
@ActiveProfiles("dev")
|
@ActiveProfiles("pre")
|
||||||
@SpringBootTest(classes = JsowellApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
@SpringBootTest(classes = JsowellApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||||
@RunWith(SpringRunner.class)
|
@RunWith(SpringRunner.class)
|
||||||
public class SpringBootTestController {
|
public class SpringBootTestController {
|
||||||
@@ -265,6 +264,15 @@ public class SpringBootTestController {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private ZDLService zdlService;
|
private ZDLService zdlService;
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void selectPileDetailByPileSnTest() {
|
||||||
|
String pileSn = "13273881";
|
||||||
|
// 查询桩信息
|
||||||
|
PileDetailVO pileDetailVO = pileBasicInfoService.selectPileDetailByPileSn(pileSn);
|
||||||
|
System.out.println(pileDetailVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void thirdPartyTest() {
|
public void thirdPartyTest() {
|
||||||
QueryStationInfoDTO dto = new QueryStationInfoDTO();
|
QueryStationInfoDTO dto = new QueryStationInfoDTO();
|
||||||
|
|||||||
@@ -179,9 +179,11 @@ public class PileRemoteService {
|
|||||||
String chargePortType = pileDetailVO.getChargePortType();
|
String chargePortType = pileDetailVO.getChargePortType();
|
||||||
if (StringUtils.equals(chargePortType, Constants.THREE)) {
|
if (StringUtils.equals(chargePortType, Constants.THREE)) {
|
||||||
// 发送电动自行车桩停止充电指令
|
// 发送电动自行车桩停止充电指令
|
||||||
|
log.info("发送电单车桩停止充电指令, chargePortType:{}", chargePortType);
|
||||||
eBikeSendCommandService.sendStopChargingCommand(command);
|
eBikeSendCommandService.sendStopChargingCommand(command);
|
||||||
} else {
|
} else {
|
||||||
// 发送电动汽车桩停止充电指令
|
// 发送电动汽车桩停止充电指令
|
||||||
|
log.info("发送汽车桩停止充电指令, chargePortType:{}", chargePortType);
|
||||||
ykcPushCommandService.pushStopChargingCommand(command);
|
ykcPushCommandService.pushStopChargingCommand(command);
|
||||||
}
|
}
|
||||||
log.info("remoteStopCharging success, pileConnectorCode:{}, transactionCode:{}", pileSn + connectorCode, transactionCode);
|
log.info("remoteStopCharging success, pileConnectorCode:{}, transactionCode:{}", pileSn + connectorCode, transactionCode);
|
||||||
|
|||||||
@@ -58,11 +58,6 @@ public class PileDetailVO {
|
|||||||
*/
|
*/
|
||||||
private String merchantId;
|
private String merchantId;
|
||||||
|
|
||||||
/**
|
|
||||||
* 设备类型(1-快充,2-慢充,3-电单车)
|
|
||||||
*/
|
|
||||||
private String pileType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 枪数量
|
* 枪数量
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -435,7 +435,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
t1.sim_id AS simId,
|
t1.sim_id AS simId,
|
||||||
t5.iccid AS iccid ,
|
t5.iccid AS iccid ,
|
||||||
t5.sim_supplier as simSupplier,
|
t5.sim_supplier as simSupplier,
|
||||||
IF(t4.charger_pile_type = '2','3',(IF(t4.speed_type = '1','1','2'))) AS pileType,
|
IF(t4.charger_pile_type = '2','3',(IF(t4.speed_type = '1','1','2'))) AS chargePortType,
|
||||||
t5.operator
|
t5.operator
|
||||||
FROM
|
FROM
|
||||||
pile_basic_info t1
|
pile_basic_info t1
|
||||||
|
|||||||
Reference in New Issue
Block a user