新增 对接青海平台 推送充换电站实时功率 接口

This commit is contained in:
Lemon
2024-04-15 13:57:09 +08:00
parent b73a34a75a
commit b961ec7e73
7 changed files with 197 additions and 29 deletions

View File

@@ -3,6 +3,7 @@ package com.jsowell.pile.mapper;
import com.jsowell.pile.domain.PileMerchantInfo;
import com.jsowell.pile.dto.QueryMerchantInfoDTO;
import com.jsowell.pile.vo.web.MerchantSettleInfoVO;
import com.jsowell.pile.vo.web.PileMerchantInfoVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
@@ -119,4 +120,11 @@ public interface PileMerchantInfoMapper {
* @return
*/
List<PileMerchantInfo> selectListByFirstMerchant(@Param("firstMerchantId") String firstMerchantId);
/**
* 根据站点id查询运营商基本信息
* @param stationId
* @return
*/
PileMerchantInfoVO queryMerchantInfoByStationId(String stationId);
}

View File

@@ -5,6 +5,7 @@ import com.jsowell.pile.dto.CreateMerchantDTO;
import com.jsowell.pile.dto.QueryMerchantInfoDTO;
import com.jsowell.pile.vo.base.MerchantInfoVO;
import com.jsowell.pile.vo.web.MerchantSettleInfoVO;
import com.jsowell.pile.vo.web.PileMerchantInfoVO;
import java.util.List;
@@ -140,4 +141,11 @@ public interface PileMerchantInfoService {
// 查询一级运营商下属的二级运营商
List<MerchantInfoVO> selectListByFirstMerchant(String firstMerchantId);
/**
* 通过站点id查询运营商基本信息
* @param stationId
* @return
*/
PileMerchantInfoVO queryMerchantInfoByStationId(String stationId);
}

View File

@@ -18,6 +18,7 @@ import com.jsowell.pile.service.PileMerchantInfoService;
import com.jsowell.pile.util.UserUtils;
import com.jsowell.pile.vo.base.MerchantInfoVO;
import com.jsowell.pile.vo.web.MerchantSettleInfoVO;
import com.jsowell.pile.vo.web.PileMerchantInfoVO;
import com.jsowell.system.service.SysDeptService;
import com.jsowell.system.service.SysUserService;
import lombok.extern.slf4j.Slf4j;
@@ -545,4 +546,14 @@ public class PileMerchantInfoServiceImpl implements PileMerchantInfoService {
return resultList;
}
/**
* 通过站点id查询运营商基本信息
* @param stationId
* @return
*/
@Override
public PileMerchantInfoVO queryMerchantInfoByStationId(String stationId) {
return pileMerchantInfoMapper.queryMerchantInfoByStationId(stationId);
}
}

View File

@@ -0,0 +1,18 @@
package com.jsowell.pile.vo.web;
import lombok.Data;
/**
* TODO
*
* @author Lemon
* @Date 2024/4/15 10:58:58
*/
@Data
public class PileMerchantInfoVO {
private String stationId;
private String merchantId;
private String merchantName;
private String organizationCode;
}