打印日志

This commit is contained in:
2024-05-09 09:16:06 +08:00
parent cba6df4ef5
commit 33c3a6e85e

View File

@@ -135,15 +135,15 @@ public class YKCPushCommandServiceImpl implements YKCPushCommandService {
String connectorCode = command.getConnectorCode();
String transactionCode = command.getTransactionCode();
if (StringUtils.isEmpty(pileSn) || StringUtils.isEmpty(connectorCode) ) {
log.warn("远程启动充电, 充电桩编号和枪口号不能为空");
log.error("远程启动充电, 充电桩编号和枪口号不能为空");
return;
}
if (StringUtils.isEmpty(transactionCode)) {
log.warn("远程启动充电, 交易流水号不能为空");
log.error("远程启动充电, 交易流水号不能为空");
return;
}
if (command.getChargeAmount() == null || BigDecimal.ZERO.equals(command.getChargeAmount())) {
log.warn("远程启动充电, 充电金额不能为0");
log.error("远程启动充电, 充电金额不能为0");
return;
}