|
|
@@ -13,6 +13,7 @@ import com.kym.service.admin.EquipmentRelationService;
|
|
|
import com.kym.service.enplus.EnPlusService;
|
|
|
import com.kym.service.miniapp.AccountService;
|
|
|
import com.kym.service.miniapp.ChargeOrderService;
|
|
|
+import com.kym.service.miniapp.ChargeService;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -27,7 +28,7 @@ import java.math.BigDecimal;
|
|
|
* @date 2023-07-29 14:24
|
|
|
*/
|
|
|
@Service
|
|
|
-public class ChargeServiceImpl {
|
|
|
+public class ChargeServiceImpl implements ChargeService {
|
|
|
private static final Logger LOGGER = LoggerFactory.getLogger(ChargeServiceImpl.class);
|
|
|
|
|
|
|
|
|
@@ -52,7 +53,13 @@ public class ChargeServiceImpl {
|
|
|
@Value("${en-plus.operator-id}")
|
|
|
private String operatorId;
|
|
|
|
|
|
- String startCharge(String connectorId) {
|
|
|
+ /**
|
|
|
+ * 启动充电
|
|
|
+ * @param connectorId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public String startCharge(String connectorId) {
|
|
|
var userId = StpUtil.getSession().getLong("userId");
|
|
|
if (connectorId.length() == 6) {
|
|
|
// 查询EN+设备SN
|